Tagged articles
10 articles
Page 1 of 1
Python Programming Learning Circle
Python Programming Learning Circle
Apr 7, 2022 · Fundamentals

Understanding Hash Tables and Implementing Them in Python

This article explains the concept of hashing and hash tables, describes their characteristics and collision‑resolution strategies, showcases practical Python implementations with load‑factor handling and resizing, and highlights common applications such as dictionaries and network session tables.

Data StructuresPythoncollision-resolution
0 likes · 13 min read
Understanding Hash Tables and Implementing Them in Python
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
Java Interview Crash Guide
Java Interview Crash Guide
Feb 28, 2022 · Fundamentals

Understanding Java HashMap: Collision Resolution and Performance

This article explains the internal structure of Java's HashMap, how it computes hash codes, resolves collisions using chaining, the impact of load factor and capacity on performance, and provides detailed source code analysis of its key methods such as put, get, resize, and entry handling.

CollisionData StructureHashMap
0 likes · 22 min read
Understanding Java HashMap: Collision Resolution and Performance
Architect's Tech Stack
Architect's Tech Stack
Oct 17, 2021 · Fundamentals

Understanding Why HashMap Uses a Load Factor of 0.75 and How It Resolves Collisions

This article explains the purpose of HashMap's load factor, the trade‑offs between space utilization and collision probability, describes common collision‑resolution techniques such as open addressing, rehashing and chaining, and shows why the default load factor of 0.75 is chosen based on Poisson‑distribution analysis.

Data StructuresHashMapJava
0 likes · 12 min read
Understanding Why HashMap Uses a Load Factor of 0.75 and How It Resolves Collisions
Top Architect
Top Architect
Mar 21, 2021 · Fundamentals

Why HashMap Uses a Load Factor of 0.75 and How It Handles Collisions

This article explains the purpose of HashMap's load factor, why the default value is 0.75, and describes various collision‑resolution techniques such as open addressing, linear and quadratic probing, rehashing, overflow areas, and chaining, supported by code examples and a Poisson‑distribution analysis.

HashMapJavaPoisson distribution
0 likes · 11 min read
Why HashMap Uses a Load Factor of 0.75 and How It Handles Collisions
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
Top Architect
Top Architect
Jul 16, 2020 · Fundamentals

Why HashMap Uses a Load Factor of 0.75: Load Factor, Collision Resolution, and the Poisson Distribution

This article explains why Java's HashMap adopts a default load factor of 0.75, describing the concept of load factor, various collision‑resolution strategies such as open addressing and chaining, and how Poisson‑distribution analysis justifies the 0.75 threshold as a balanced trade‑off between space utilization and lookup cost.

HashMapJavaPoisson distribution
0 likes · 11 min read
Why HashMap Uses a Load Factor of 0.75: Load Factor, Collision Resolution, and the Poisson Distribution
Java Backend Technology
Java Backend Technology
Jul 1, 2020 · Fundamentals

Why Does Java’s HashMap Use a 0.75 Load Factor? The Math Behind It

This article explains why HashMap relies on a 0.75 load factor, how load factor balances space utilization and collision probability, the various collision‑resolution strategies, and the statistical reasoning—particularly Poisson distribution—that led to choosing 0.75 over other values.

HashMapJavacollision-resolution
0 likes · 12 min read
Why Does Java’s HashMap Use a 0.75 Load Factor? The Math Behind It
Programmer DD
Programmer DD
Jun 27, 2020 · Fundamentals

Why Does Java’s HashMap Use a 0.75 Load Factor? The Math Behind It

This article explains why Java's HashMap adopts a default load factor of 0.75, covering hash table basics, collision‑resolution strategies, the Poisson‑distribution analysis that justifies the value, and the trade‑offs between space efficiency and lookup performance.

Data StructuresHashMapJava
0 likes · 11 min read
Why Does Java’s HashMap Use a 0.75 Load Factor? The Math Behind It
Selected Java Interview Questions
Selected Java Interview Questions
May 6, 2020 · Fundamentals

Understanding HashMap Internals: Table Initialization, Resizing, and Load Factor

This article explains the inner workings of Java's HashMap, covering its array‑plus‑linked‑list (or red‑black tree) structure, lazy table initialization, default capacity and threshold, resizing mechanics, the rationale behind power‑of‑two table lengths, index calculation using bitwise AND, and the significance of the 0.75 load factor.

Data StructuresHashMapJava
0 likes · 18 min read
Understanding HashMap Internals: Table Initialization, Resizing, and Load Factor