Tag

load factor

1 views collected around this technical thread.

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.

collision resolutiondata structuresdictionary
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
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.

HashMapJavaPoisson distribution
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
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.

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