Tagged articles
71 articles
Page 1 of 1
Deepin Linux
Deepin Linux
Oct 1, 2025 · Fundamentals

Why Deque Beats Vector and List: Inside the Double‑Ended Queue’s Magic

This article explains how the C++ deque combines the random‑access speed of a vector with the constant‑time double‑ended insertions of a list by using a segmented storage architecture, detailing its internal map, iterator mechanics, core operations, performance comparisons, practical use cases, and common pitfalls.

Data Structurealgorithmc++
0 likes · 47 min read
Why Deque Beats Vector and List: Inside the Double‑Ended Queue’s Magic
Deepin Linux
Deepin Linux
Jul 10, 2025 · Fundamentals

Mastering LRUCache: How to Build a High‑Performance Cache in C++

Explore the principles behind Least Recently Used (LRU) caching, understand why it outperforms FIFO and LFU strategies, and follow a step‑by‑step C++ implementation using hash tables and doubly linked lists, complete with detailed code, testing, and performance optimization tips.

CacheData StructureLRUCache
0 likes · 24 min read
Mastering LRUCache: How to Build a High‑Performance Cache in C++
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
May 5, 2025 · Frontend Development

Design and Implementation Considerations for Building a Rich Text Editor from Scratch

This article explores the motivations, architectural choices, zero‑width character handling, data‑structure design, and implementation strategies—including execCommand, ContentEditable, and Canvas approaches—for creating a custom rich‑text editor that balances flexibility, performance, and browser compatibility.

Data Structurecontenteditablerich-text-editor
0 likes · 29 min read
Design and Implementation Considerations for Building a Rich Text Editor from Scratch
Java Tech Enthusiast
Java Tech Enthusiast
Apr 2, 2025 · Backend Development

Understanding the Underlying Mechanism of Java HashMap

Java’s HashMap stores entries in a hash‑based array where a key’s hash determines the bucket index, resolves collisions with linked lists that become red‑black trees for long chains, resizes when the load factor exceeds 0.75, and requires ConcurrentHashMap for safe multithreaded updates, a core concept often asked in interviews.

BackendData StructureHashMap
0 likes · 6 min read
Understanding the Underlying Mechanism of Java HashMap
php Courses
php Courses
Apr 2, 2025 · Fundamentals

Implementing a Queue Using Two Stacks in PHP

This article explains the principles of queues and stacks, demonstrates how to simulate a FIFO queue using two LIFO stacks in PHP, provides full source code, usage examples, complexity analysis, and discusses practical applications and possible extensions.

Data StructurePHPQueue
0 likes · 5 min read
Implementing a Queue Using Two Stacks in PHP
Test Development Learning Exchange
Test Development Learning Exchange
Feb 26, 2025 · Fundamentals

Understanding Python Tuples: Definition, Features, and Practical Examples

This article introduces Python tuples, explaining their immutable ordered nature, core characteristics, and provides eleven practical code examples ranging from basic definition and indexing to unpacking, concatenation, using tuples as dictionary keys, and converting them to lists, illustrating common use cases and best practices.

Data StructureImmutablecoding
0 likes · 8 min read
Understanding Python Tuples: Definition, Features, and Practical Examples
Deepin Linux
Deepin Linux
Dec 21, 2024 · Fundamentals

Understanding Linux Kernel Bitmap Data Structure and Its APIs

This article explains the Linux kernel bitmap data structure, its definition, macro-based declarations, related assembly instructions, core bitmap APIs such as set_bit and test_bit, various bit‑operation functions, and practical applications ranging from PID allocation to device management and file‑system indexing.

BitmapData StructureLinux
0 likes · 27 min read
Understanding Linux Kernel Bitmap Data Structure and Its APIs
Liangxu Linux
Liangxu Linux
Jul 27, 2024 · Fundamentals

Master Linked Lists in C: From Arrays to Circular Lists

This article explains the differences between array‑based sequential storage and pointer‑based linked storage, introduces singly, doubly and circular linked lists, and provides complete C implementations for creation, insertion, deletion, and traversal with clear diagrams and step‑by‑step code examples.

ArrayData Structurealgorithm
0 likes · 25 min read
Master Linked Lists in C: From Arrays to Circular Lists
Java Tech Enthusiast
Java Tech Enthusiast
May 12, 2024 · Fundamentals

Hash Table Showdown: How Different Languages Resolve Collisions and Resize

A whimsical yet technical dialogue among Go, C++, Python, Java, and C# representatives reveals the storage structures, collision‑resolution strategies, hash‑to‑index mapping techniques, and resizing policies used in their hash table implementations, highlighting trade‑offs and design choices.

Data Structurecapacitycollision-resolution
0 likes · 9 min read
Hash Table Showdown: How Different Languages Resolve Collisions and Resize
Java Tech Enthusiast
Java Tech Enthusiast
Feb 1, 2024 · Fundamentals

Understanding Bloom Filters: Theory, Implementation, and Applications

Bloom filters are space‑efficient probabilistic structures that test set membership using multiple hash functions, offering fast, low‑memory checks with a controllable false‑positive rate, and can be implemented manually in Java, via Guava’s library, or deployed at scale with RedisBloom for distributed applications.

Data StructureGuavabloom-filter
0 likes · 14 min read
Understanding Bloom Filters: Theory, Implementation, and Applications
Architects Research Society
Architects Research Society
Nov 27, 2023 · Databases

Formal Naming of Data Schemas, Structures, and Models: Distinctions and Methodology

The article explains the differences between data schemas, data structures, and data models, proposes a systematic naming approach, and outlines a five‑schema architecture—including business, view, logical, deployment, and physical schemas—while addressing terminology challenges and normalization processes.

Data StructureDatabase designdata modeling
0 likes · 12 min read
Formal Naming of Data Schemas, Structures, and Models: Distinctions and Methodology
Su San Talks Tech
Su San Talks Tech
Apr 15, 2023 · Fundamentals

Mastering Bloom Filters: Theory, Java Guava & Redisson Implementations

This article explores Bloom filters—how they efficiently test set membership, their underlying principles, error rates, and practical usage in Java via Guava and Redisson, including code examples, configuration tips, handling cache penetration, and strategies for element deletion and periodic rebuilding.

CacheData StructureGuava
0 likes · 18 min read
Mastering Bloom Filters: Theory, Java Guava & Redisson Implementations
NiuNiu MaTe
NiuNiu MaTe
Mar 2, 2023 · Databases

Master Redis Lists: Commands, Encoding, and QUICKLIST Explained

This article introduces Redis List as a linked collection of strings, explains its size limits, common CRUD commands, read operations, and dives into the underlying encodings—ZIPLIST, LINKEDLIST, and the hybrid QUICKLIST—highlighting when each is used.

Data StructureListcommands
0 likes · 8 min read
Master Redis Lists: Commands, Encoding, and QUICKLIST Explained
Tencent Cloud Developer
Tencent Cloud Developer
Dec 30, 2022 · Backend Development

Implementation and Optimization of Generic Skip List in Go (stl4go)

stl4go provides a generic Go 1.18 container library that implements an optimized skip‑list‑based ordered map, using adaptive levels, efficient random‑level generation, type‑specific paths, and cache‑friendly node structures to achieve near‑C++ performance, surpassing existing Go generic collections.

Data StructureGenericsGo
0 likes · 18 min read
Implementation and Optimization of Generic Skip List in Go (stl4go)
Sohu Tech Products
Sohu Tech Products
Oct 12, 2022 · Fundamentals

Understanding the Underlying Principles of Java HashMap

This article explains how Java's HashMap stores key‑value pairs using an array of nodes, how hash functions map keys to array indices, how collisions are handled with linked lists and red‑black trees, and why proper hashCode implementations are crucial for performance.

CollisionData StructureHashMap
0 likes · 20 min read
Understanding the Underlying Principles of Java HashMap
Tencent Cloud Developer
Tencent Cloud Developer
Aug 18, 2022 · Fundamentals

Perfect Hash Functions and Their Use in High‑Performance HashMaps

The article explains perfect hash functions, their collision‑free construction methods such as FCH, CHD, and PTHash, compares them to conventional hash tables, reviews common and cryptographic hash functions, and shows how read‑only perfect‑hash maps deliver faster lookups and lower memory use for static key sets.

Data Structurealgorithmbenchmark
0 likes · 21 min read
Perfect Hash Functions and Their Use in High‑Performance HashMaps
Top Architect
Top Architect
May 18, 2022 · Backend Development

Designing Efficient Read/Unread Tracking for Group Chat Messages Using Bitmaps

The article analyzes the memory inefficiency of storing per‑user read/unread lists for group chat messages, proposes a bitmap‑based solution with user‑to‑map ID mapping, discusses handling of member exits, and evaluates the storage savings and scalability of the new design.

BitmapData StructureScalability
0 likes · 7 min read
Designing Efficient Read/Unread Tracking for Group Chat Messages Using Bitmaps
Selected Java Interview Questions
Selected Java Interview Questions
Apr 2, 2022 · Databases

Advanced Redis Bit Operations: Commands, Underlying Data Structures, Complexity, Storage Calculation, and Use Cases

This article explains Redis bitmap (bit) operations, covering command syntax for SETBIT, GETBIT, BITCOUNT, and BITOP, analyzing the underlying SDS data structure, detailing time‑complexity and storage calculations, and presenting practical application scenarios such as user sign‑in tracking and online status monitoring.

BITCOUNTBITOPBitmap
0 likes · 8 min read
Advanced Redis Bit Operations: Commands, Underlying Data Structures, Complexity, Storage Calculation, and Use Cases
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
Top Architect
Top Architect
Mar 5, 2022 · Fundamentals

Understanding Skip Lists and Their Implementation in Redis

This article explains the concept of skip lists as an ordered random data structure, illustrates how Redis uses skip lists for sorted sets, and provides a complete Java implementation with detailed code examples and analysis of their performance characteristics.

Data StructureSkip Listalgorithm
0 likes · 13 min read
Understanding Skip Lists and Their Implementation in Redis
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
TAL Education Technology
TAL Education Technology
Dec 23, 2021 · Databases

Understanding Redis Sorted‑Set Implementation: From Linked List to Skiplist

This article explains how Redis implements its Sorted‑Set data type by starting from a basic ordered singly linked list, analyzing its insertion and query complexities, introducing the skiplist structure, deriving its O(log N) performance, and detailing the underlying C source code for creation, insertion, lookup, and deletion.

Data StructureSorted Setc++
0 likes · 32 min read
Understanding Redis Sorted‑Set Implementation: From Linked List to Skiplist
New Oriental Technology
New Oriental Technology
Mar 8, 2021 · Fundamentals

Circuit Analysis in Classroom Learning

The article discusses methods for teaching circuit fault diagnosis in a classroom setting, focusing on modeling circuit components as edges and using a linked list to manage break points dynamically.

Classroom LearningData StructurePhysics
0 likes · 5 min read
Circuit Analysis in Classroom Learning
php Courses
php Courses
Feb 24, 2021 · Backend Development

Converting Arrays to Tree Structures and Back in PHP

This article demonstrates how to transform a flat array into a hierarchical tree structure and reverse the process in PHP, providing step‑by‑step code examples for building a tree using parent‑child relationships and converting the tree back into a flat list.

Array to TreeData StructurePHP
0 likes · 3 min read
Converting Arrays to Tree Structures and Back in PHP
Tencent Cloud Developer
Tencent Cloud Developer
Jan 26, 2021 · Databases

Understanding Redis Sorted Sets and Their Skiplist Implementation

Redis sorted sets (zsets) combine a hash table with a skiplist that provides O(log N) search, insertion, and deletion, using forward, backward, and span pointers to maintain element order and rank, enabling fast score‑based queries, leaderboards, and range operations via commands such as ZADD, ZRANK, and ZRANGE.

C ProgrammingData StructureSorted Set
0 likes · 15 min read
Understanding Redis Sorted Sets and Their Skiplist Implementation
Top Architect
Top Architect
Jan 2, 2021 · Fundamentals

Understanding Bitmap, BitSet, and Bloom Filter: Memory‑Efficient Data Structures for Large‑Scale Data

This article explains the bitmap concept, demonstrates how to store and query billions of integers using bitwise operations, introduces BitSet and Bloom Filter implementations, and provides practical Java code snippets for adding, removing, and checking elements while highlighting their memory‑saving advantages.

BitmapBitsetData Structure
0 likes · 12 min read
Understanding Bitmap, BitSet, and Bloom Filter: Memory‑Efficient Data Structures for Large‑Scale Data
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Oct 8, 2020 · Fundamentals

Understanding the JDK Stack Implementation and Its Practical Applications

This article explains the meaning of "stack" in Java, examines the JDK's Stack class implementation—including its inheritance from Vector and core methods—provides full source code, demonstrates array manipulation with System.arraycopy, and explores common stack applications such as browser navigation, function call stacks, and complexity analysis.

ArrayData StructureJDK
0 likes · 8 min read
Understanding the JDK Stack Implementation and Its Practical Applications
Liangxu Linux
Liangxu Linux
Aug 31, 2020 · Fundamentals

Understanding PNG: Types, Data Structure, and Compression Mechanics

This article explains the PNG image format, covering its full name, lossless compression, size advantages, transparency support, the three main PNG types, the file’s chunk‑based data structure, hexadecimal header details, factors that affect compression efficiency, and the two‑stage prediction‑and‑deflate compression process.

DEFLATEData StructureFile Format
0 likes · 10 min read
Understanding PNG: Types, Data Structure, and Compression Mechanics
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 StructureHashMapRed-Black Tree
0 likes · 22 min read
Understanding Java HashMap: Structure, Operations, and Internals
Programmer DD
Programmer DD
Jun 2, 2020 · Backend Development

Mastering Java HashMap & ConcurrentHashMap: Internals, Performance, and Best Practices

This article explains the internal structure and working principles of Java's HashMap and ConcurrentHashMap, covering hash calculations, collision handling, resizing, the transition to red‑black trees, differences with TreeMap, LinkedHashMap, Hashtable, and performance‑related lock mechanisms in JDK 7 and JDK 8.

ConcurrentHashMapData StructureHashMap
0 likes · 14 min read
Mastering Java HashMap & ConcurrentHashMap: Internals, Performance, and Best Practices
Selected Java Interview Questions
Selected Java Interview Questions
Mar 25, 2020 · Backend Development

Comprehensive Guide to Java HashMap: Structure, Operations, Concurrency Issues, and Interview Insights

This article provides an in‑depth explanation of Java's HashMap, covering its array‑plus‑linked‑list (and tree) structure, default capacity and load factor, constructors, put/get workflows, concurrency pitfalls, differences between Java 7 and 8, and key points to ace interview questions.

Data StructureHashMapJava7
0 likes · 8 min read
Comprehensive Guide to Java HashMap: Structure, Operations, Concurrency Issues, and Interview Insights
Java Captain
Java Captain
May 13, 2019 · Fundamentals

Implementing Sensitive Word Filtering with Trie Trees

This article explains how to use a trie (prefix tree) to efficiently filter sensitive words in a text, covering the basic concepts, construction steps, traversal algorithm, complexity analysis, and a Java implementation using HashMap.

Data StructureSensitive Word FilteringTrie
0 likes · 9 min read
Implementing Sensitive Word Filtering with Trie Trees
Architect's Tech Stack
Architect's Tech Stack
Mar 1, 2019 · Fundamentals

Understanding Arrays: Random Access, Insertion, Deletion, and Efficiency

This article explains what arrays are, how they enable O(1) random access through address calculation, the time‑complexities of insertion and deletion operations, techniques for improving array efficiency, and why zero‑based indexing is used, comparing arrays with dynamic containers like ArrayList.

ArrayData StructureDeletion
0 likes · 6 min read
Understanding Arrays: Random Access, Insertion, Deletion, and Efficiency
Big Data Technology & Architecture
Big Data Technology & Architecture
Feb 16, 2019 · Backend Development

Understanding Java's ConcurrentLinkedQueue: Implementation, Principles, and Usage

This article explains the thread‑safe ConcurrentLinkedQueue in Java, covering its lock‑free linked‑list structure, core methods such as add, offer, and poll, detailed source‑code analysis, and a multithreaded example demonstrating its behavior in high‑concurrency scenarios.

ConcurrentLinkedQueueData Structureconcurrency
0 likes · 12 min read
Understanding Java's ConcurrentLinkedQueue: Implementation, Principles, and Usage
Big Data Technology & Architecture
Big Data Technology & Architecture
Feb 15, 2019 · Fundamentals

Understanding Java's ConcurrentSkipListMap: Overview, Principles, API, Source Analysis, and Example Usage

This article provides a comprehensive guide to Java's ConcurrentSkipListMap, covering its purpose as a thread‑safe ordered map, the underlying skip‑list data structure, a detailed list of its public methods, in‑depth source‑code analysis for add, remove, and get operations, and a multithreaded example demonstrating its correct behavior compared with TreeMap.

ConcurrentSkipListMapData StructureSkip List
0 likes · 20 min read
Understanding Java's ConcurrentSkipListMap: Overview, Principles, API, Source Analysis, and Example Usage
Big Data Technology & Architecture
Big Data Technology & Architecture
Feb 14, 2019 · Fundamentals

In‑Depth Analysis of Java HashMap Implementation and Usage

This article provides a comprehensive overview of Java's HashMap, covering its purpose as a key‑value store, the evolution of its internal data structures from JDK 1.7 to JDK 1.8, detailed explanations of core methods such as hash, put, get, resize, and practical example code illustrating common operations.

CollectionsData StructureHashMap
0 likes · 18 min read
In‑Depth Analysis of Java HashMap Implementation and Usage
Java Captain
Java Captain
Aug 22, 2017 · Fundamentals

Understanding Java HashMap: Overview, Data Structure, and Source Code Analysis

This article explains Java's HashMap implementation, covering its inheritance, thread‑safety options, key parameters such as initial capacity and load factor, internal array‑plus‑linked‑list structure, core source‑code snippets, and the algorithms for hashing, indexing, insertion, resizing, and iteration.

Data StructureHashMap
0 likes · 25 min read
Understanding Java HashMap: Overview, Data Structure, and Source Code Analysis
Hujiang Technology
Hujiang Technology
Jun 13, 2017 · Frontend Development

Designing Data Structures for a Visual H5 Page Editor (Web IDE)

The article explains how to design a data‑driven architecture for a visual H5 page editor, detailing the abstraction of pages, elements, and history into structured objects, and showing how front‑end developers can map complex UI interactions to clean, editable data models.

Data StructureH5Visual Editor
0 likes · 14 min read
Designing Data Structures for a Visual H5 Page Editor (Web IDE)
JavaScript
JavaScript
Feb 7, 2017 · Fundamentals

Master JavaScript Stacks: Build, Use, and Apply Stack Operations

This article explains the concept of a stack as a LIFO data structure, shows how to implement a Stack class in JavaScript with essential methods like push, pop, size, empty, peek, and clear, and demonstrates practical usage through recursive and iterative factorial calculations.

Data StructureJavaScriptStack
0 likes · 4 min read
Master JavaScript Stacks: Build, Use, and Apply Stack Operations