专题索引
文章索引
Balanced Binary Tree Explained
1. Definition of Balanced Binary Tree
Binary Search Tree (BST) Explained
1. Definition
C Language Strings Explained
1. What Is a String
Data Structures 01 - Linear List
打开「Data Structures 01 - Linear List」查看完整内容与上下文。
Data Structures 02 - Singly Linked List
Code Display
Data Structures 03 - Doubly Linked List
Running Result
Data Structures 04 - Static Linked List
Running Result
Data Structures 05 - Polynomial Addition
打开「Data Structures 05 - Polynomial Addition」查看完整内容与上下文。
Data Structures 06 - Stack
打开「Data Structures 06 - Stack」查看完整内容与上下文。
Data Structures 07 - Bracket Matching
打开「Data Structures 07 - Bracket Matching」查看完整内容与上下文。
Data Structures 08 - Tower of Hanoi
打开「Data Structures 08 - Tower of Hanoi」查看完整内容与上下文。
Data Structures 09 - Linked Queue
打开「Data Structures 09 - Linked Queue」查看完整内容与上下文。
Data Structures 10 - Circular Queue
打开「Data Structures 10 - Circular Queue」查看完整内容与上下文。
Data Structures 11 - Two-Dimensional Arrays and Matrix Multiplication
打开「Data Structures 11 - Two-Dimensional Arrays and Matrix Multiplication」查看完整内容与上下文。
Data Structures 12 - Binary Tree Construction and Traversal
打开「Data Structures 12 - Binary Tree Construction and Traversal」查看完整内容与上下文。
Data Structures 13 - Huffman Tree
打开「Data Structures 13 - Huffman Tree」查看完整内容与上下文。
Data Structures 14 - N-Queens Problem
打开「Data Structures 14 - N-Queens Problem」查看完整内容与上下文。
Data Structures 15 - Graph Traversal
打开「Data Structures 15 - Graph Traversal」查看完整内容与上下文。
Data Structures 16 - Graph Traversal: Prim's and Dijkstra's Algorithms
Prim's Algorithm
Data Structures 17 - Sequential Search and Binary Search
Below, we provide a detailed introduction to sequential search and binary search in C, with particular attention to key-value pair scenarios. We will cover basic concepts, data structures, implementation methods, and code examples in a systematic manner.
Data Structures 18 - Hash Table
A hash table is a highly efficient data structure primarily used for fast lookup, insertion, and deletion operations. It maps keys to specific positions in the table via a hash function, thereby accelerating data access. Below is a detailed and systematic guide to hash table implementation, covering basic concepts, hash functions, collision resolution methods, and concrete implementation in C.
Data Structures 19 - Sorting
打开「Data Structures 19 - Sorting」查看完整内容与上下文。
Detailed Explanation of Huffman Tree
Introduction to Huffman Trees
Detailed Explanation of Graph DFS and BFS
1. Basic Definitions of Graphs
dijkstra
Detailed Explanation of Dijkstra's Algorithm
Hash Search Algorithm (Linear Probing)
Introduction
Hash Table Quadratic Probing Rehashing Method
1. Overview
Huffman Tree and Huffman Coding
1. Huffman Tree
Merging Two Sorted Singly Linked Lists
Introduction
Minimum Spanning Tree, Prim's Algorithm, Kruskal's Algorithm
打开「Minimum Spanning Tree, Prim's Algorithm, Kruskal's Algorithm」查看完整内容与上下文。
Number of Leaf Nodes in a Complete Binary Tree (Pending Verification)
Calculation Method
Pointer Subtraction Issue
In C, the result of subtracting two pointers represents the number of elements between the two pointers, not the difference in their addresses. This is very useful when working with arrays and pointer operations. Below, I will explain this in detail through two examples: a simple array example and a more complex example involving structs.
Reconstructing a Binary Tree from Traversal Sequences
Preorder, inorder, and postorder traversals of a binary tree are fundamental operations in data structures. Using these traversal sequences, the original binary tree can be uniquely reconstructed. This article provides a detailed explanation of how to reconstruct a binary tree from preorder and inorder traversals, as well as from postorder and inorder traversals, along with corresponding C code implementations.
Recursive Creation of a Binary Tree
1. Binary Tree Definition
Relationship Between Weighted Nodes and Total Nodes in a Huffman Tree
Basic Concepts of Huffman Trees
Detailed Explanation of Topological Sorting
1. Definition