Tagged articles
6 articles
Page 1 of 1
Java Captain
Java Captain
Feb 4, 2024 · Fundamentals

Implementing an AVL Self-Balancing Binary Search Tree in Java

This article explains the concept of AVL self‑balancing binary search trees, outlines their height‑balancing property, and provides step‑by‑step Java code examples defining a Node class implementing Comparable and an AVLTree class with height, balance factor calculations, and rotation methods for insertion and deletion.

AVL treeBinary Search TreeData Structures
0 likes · 4 min read
Implementing an AVL Self-Balancing Binary Search Tree in Java
JD Cloud Developers
JD Cloud Developers
Jan 11, 2024 · Fundamentals

Why Red-Black Trees Beat AVL: Insertion, Deletion, and Java TreeMap

This article explores the classic implementation of red‑black trees, comparing them with AVL trees, detailing their 2‑3‑4 tree correspondence, and walking through Java TreeMap insertion and deletion algorithms, including node definitions, rotation cases, and rebalancing procedures, while analyzing their time complexities.

AVL treeData StructuresJava TreeMap
0 likes · 20 min read
Why Red-Black Trees Beat AVL: Insertion, Deletion, and Java TreeMap
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 treeData StructuresHashMap
0 likes · 23 min read
Fundamentals of Data Structures and Algorithms
Java Architect Essentials
Java Architect Essentials
Mar 5, 2018 · Fundamentals

Common Data Structures in Java: Arrays, Lists, Queues, Stacks, Sets, Maps, Trees, and Heaps

This article introduces fundamental data structures such as arrays, linked lists, queues, stacks, sets, maps, various tree types including binary and AVL trees, and heaps, explaining their characteristics, time complexities, Java implementations like ArrayList, LinkedList, HashSet, TreeMap, and providing illustrative diagrams and code snippets.

AVL treeAlgorithmsHashMap
0 likes · 23 min read
Common Data Structures in Java: Arrays, Lists, Queues, Stacks, Sets, Maps, Trees, and Heaps