Tag

Red-Black Tree

0 views collected around this technical thread.

Mike Chen's Internet Architecture
Mike Chen's Internet Architecture
Aug 11, 2024 · Fundamentals

Understanding the Underlying Data Structure of Java HashMap

This article explains the internal architecture of Java's HashMap, covering its array of buckets, linked‑list handling of hash collisions, and the conversion to red‑black trees for high‑collision scenarios, supplemented with code examples and visual diagrams.

Data StructureHashMapJava
0 likes · 5 min read
Understanding the Underlying Data Structure of Java HashMap
Deepin Linux
Deepin Linux
May 17, 2024 · Fundamentals

Comprehensive Overview of epoll Data Structures and Implementation in Linux

This article systematically explains epoll's core data structures—including a red‑black tree and a doubly linked ready list—its three main APIs, the kernel implementation details, thread‑safety mechanisms, ET vs. LT behavior, and how it improves over select/poll for high‑concurrency network programming.

I/O multiplexingLinux KernelRed-Black Tree
0 likes · 68 min read
Comprehensive Overview of epoll Data Structures and Implementation in Linux
Deepin Linux
Deepin Linux
Nov 18, 2023 · Fundamentals

Linux Kernel Data Structures: Linked Lists, Queues, Maps, and Red‑Black Trees with Practical C Examples

This article explains the core Linux kernel data structures—including doubly linked lists, kfifo queues, IDR mappings, and red‑black trees—detailing their design, key macros like container_of and offsetof, and providing complete C code samples for initialization, insertion, traversal, and deletion.

C++Data StructuresLinked List
0 likes · 55 min read
Linux Kernel Data Structures: Linked Lists, Queues, Maps, and Red‑Black Trees with Practical C Examples
Java Architect Essentials
Java Architect Essentials
Feb 3, 2023 · Databases

Understanding B+ Trees: From Binary Search Trees to MySQL Indexes

This article explains the evolution of tree-based index structures—from basic binary search trees through AVL and red‑black trees to B‑trees and B+‑trees—highlighting their trade‑offs and why MySQL adopts B+‑trees for efficient disk‑based indexing.

AVLB+ TreeB-Tree
0 likes · 10 min read
Understanding B+ Trees: From Binary Search Trees to MySQL Indexes
Sohu Tech Products
Sohu Tech Products
Oct 7, 2022 · Fundamentals

Understanding the Underlying Principles of Java HashMap

This article explains how Java's HashMap stores key‑value pairs using an array‑plus‑linked‑list structure, details the hash function, index calculation, collision handling, resizing, and the conditions under which linked lists are replaced by red‑black trees, illustrated with concrete code examples.

Data StructuresHashMapJava
0 likes · 20 min read
Understanding the Underlying Principles of Java HashMap
Java Captain
Java Captain
Mar 13, 2022 · Fundamentals

Understanding the Underlying Data Structure and Mechanics of Java HashMap

This article explains Java HashMap's internal structure, including the array‑linked list and red‑black tree design, load factor, collision resolution methods, resizing process, key selection, thread‑safety concerns, and the hash calculation algorithm, providing detailed insights for developers.

Data StructureHashMapJDK
0 likes · 17 min read
Understanding the Underlying Data Structure and Mechanics of Java HashMap
JD Tech
JD Tech
Mar 8, 2022 · Fundamentals

Fundamentals of Data Structures and Algorithms

This article provides a comprehensive overview of fundamental data structures and algorithms, covering basic concepts, complexity analysis, case studies, and detailed examinations of structures such as HashMap, Bloom filter, SkipList, AVL, Red‑Black, B+Tree, and HashTree, while discussing their advantages, disadvantages, and typical use cases.

AVL TreeAlgorithmsBloom Filter
0 likes · 23 min read
Fundamentals of Data Structures and Algorithms
Full-Stack Internet Architecture
Full-Stack Internet Architecture
May 13, 2021 · Fundamentals

Understanding Trees, Binary Trees, AVL Trees, and Red-Black Trees: Concepts, Properties, and Operations

This article explains the fundamentals of tree data structures—including general trees, binary trees, AVL balanced trees, and red‑black trees—covering their definitions, node types, properties, rotation techniques, and insertion and deletion algorithms with illustrative code examples.

AlgorithmsBinary TreeData Structures
0 likes · 17 min read
Understanding Trees, Binary Trees, AVL Trees, and Red-Black Trees: Concepts, Properties, and Operations
Top Architect
Top Architect
Mar 22, 2021 · Fundamentals

Understanding Red‑Black Trees and Related Balanced Tree Structures

This article explains the concepts, properties, and operations of binary trees, binary search trees, AVL trees, 2‑3 and 2‑3‑4 trees, B‑trees, and especially red‑black trees, illustrating how they maintain balance through rotations and why they are widely used in ordered data storage.

AlgorithmsBalanced TreesBinary Search Tree
0 likes · 12 min read
Understanding Red‑Black Trees and Related Balanced Tree Structures
Code Ape Tech Column
Code Ape Tech Column
Mar 16, 2021 · Fundamentals

Understanding Red-Black Trees and Related Balanced Binary Search Trees

This article introduces binary trees, binary search trees, and various self‑balancing trees such as AVL, 2‑3, 2‑3‑4, B‑trees, and explains the structure, properties, rotations, and common applications of red‑black trees in a clear, illustrated manner.

AlgorithmsBalanced TreeBinary Search Tree
0 likes · 12 min read
Understanding Red-Black Trees and Related Balanced Binary Search Trees
Architecture Digest
Architecture Digest
Oct 10, 2020 · Fundamentals

Understanding Binary Trees, BSTs, AVL, 2‑3‑4, B‑Tree and Red‑Black Tree

This article explains the concepts, properties, and operations of binary trees, binary search trees, AVL trees, 2‑3 and 2‑3‑4 trees, B‑trees, and red‑black trees, illustrating how they maintain balance, avoid degeneration, and are applied in modern software systems.

AVL TreeB+ TreeBalanced Tree
0 likes · 10 min read
Understanding Binary Trees, BSTs, AVL, 2‑3‑4, B‑Tree and Red‑Black Tree
Selected Java Interview Questions
Selected Java Interview Questions
Aug 1, 2020 · Fundamentals

Deep Dive into Java TreeMap: Structure, Red‑Black Tree, and Core Operations

This article explains Java's TreeMap implementation, detailing its underlying red‑black tree structure, the essential fields and inner Entry class, and step‑by‑step analyses of the put, get, and remove methods along with their self‑balancing algorithms and traversal techniques.

AlgorithmsData StructuresJava
0 likes · 20 min read
Deep Dive into Java TreeMap: Structure, Red‑Black Tree, and Core Operations
Selected Java Interview Questions
Selected Java Interview Questions
Jul 28, 2020 · Fundamentals

Understanding Java HashMap: Structure, Operations, and Internals

This article explains the internal structure and behavior of Java's HashMap, covering its node and tree node classes, default parameters, hash calculation, resizing mechanism, and the conditions under which linked lists are transformed into red‑black trees, along with code examples and performance considerations.

Data StructureHashMapJava
0 likes · 22 min read
Understanding Java HashMap: Structure, Operations, and Internals
Sohu Tech Products
Sohu Tech Products
May 20, 2020 · Fundamentals

Understanding Red‑Black Tree Insertion Cases and Rotations

This article provides a comprehensive tutorial on red‑black trees, covering binary search tree fundamentals, the five classic insertion cases, recoloring rules, left and right rotations, and a step‑by‑step example of inserting a new node while preserving all red‑black properties.

AlgorithmsData StructuresRed-Black Tree
0 likes · 8 min read
Understanding Red‑Black Tree Insertion Cases and Rotations
Full-Stack Internet Architecture
Full-Stack Internet Architecture
May 15, 2020 · Fundamentals

Understanding Red-Black Tree Insertion Operations

This article provides a comprehensive, step‑by‑step explanation of red‑black tree insertion, covering binary search tree basics, red‑black properties, the five insertion cases, color changes, left and right rotations, and detailed visual examples to help readers fully master the data structure.

BalancingData StructuresRed-Black Tree
0 likes · 8 min read
Understanding Red-Black Tree Insertion Operations
政采云技术
政采云技术
Apr 6, 2020 · Fundamentals

Red-Black Tree Deletion Explained (Part 2)

This article provides a comprehensive, step‑by‑step explanation of red‑black tree deletion, covering node search, replacement strategies, nine deletion cases with detailed rotations and recoloring, accompanying JavaScript code, and real‑world applications in Java, Nginx, and Linux kernels.

AlgorithmsData StructuresJavaScript
0 likes · 20 min read
Red-Black Tree Deletion Explained (Part 2)
政采云技术
政采云技术
Dec 22, 2019 · Fundamentals

A Beginner-Friendly Illustrated Guide to Red-Black Trees (Part 1)

This article provides a clear, illustrated introduction to red‑black trees, covering their definition, fundamental properties, binary search tree background, traversal methods, rotation and recoloring techniques, and detailed insertion scenarios with JavaScript code examples, preparing readers for further study of deletions.

AlgorithmsBinary Search TreeData Structures
0 likes · 19 min read
A Beginner-Friendly Illustrated Guide to Red-Black Trees (Part 1)
Architecture Digest
Architecture Digest
Dec 18, 2019 · Fundamentals

Understanding Red‑Black Trees: Principles, Insertion, Deletion, Rotations and Java TreeMap Implementation

This article provides a comprehensive overview of red‑black trees, covering the underlying concepts of binary trees, binary search trees, balanced trees such as AVL, the five red‑black properties, insertion and deletion algorithms with color changes and rotations, and a detailed Java TreeMap source‑code illustration.

BalancingData StructuresJava
0 likes · 23 min read
Understanding Red‑Black Trees: Principles, Insertion, Deletion, Rotations and Java TreeMap Implementation
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Oct 20, 2019 · Fundamentals

Understanding the Differences Between TreeSet, HashSet, HashMap, TreeMap, and Red-Black Trees in Java

An interview-style dialogue explains the distinctions between TreeSet and HashSet, the underlying implementations of HashMap versus TreeMap, and how red‑black trees provide balanced performance, covering hash collisions, treeification, and thread‑safety considerations in Java collections.

CollectionsData StructuresHashMap
0 likes · 6 min read
Understanding the Differences Between TreeSet, HashSet, HashMap, TreeMap, and Red-Black Trees in Java
Java Captain
Java Captain
Aug 27, 2019 · Fundamentals

Understanding Red-Black Trees: Concepts, Operations, and Insertion Examples

This article explains the fundamentals of red‑black trees, a self‑balancing binary search tree, covering their properties, recolor and rotation operations, step‑by‑step insertion cases, and practical questions such as Java 8 HashMap usage and deletion rules.

AlgorithmsBinary Search TreeData Structures
0 likes · 8 min read
Understanding Red-Black Trees: Concepts, Operations, and Insertion Examples