How wangzheng0822/algo works
This repository is a multilingual collection of data-structure and algorithm implementations, organized as educational examples rather than a single application. A learner can explore a topic, inspect an implementation in a chosen language, and run examples where provided. The graph preserves the README’s major capability areas and represents several sampled PHP demonstrations; it does not imply a universal runtime pipeline. Unsampled modules are included only where the tree or README supports them, so their internal call relationships are not asserted.
Main entry points: SingleLinkedList.php Linked lists · StackOnLinkedList.php Stacks · QueueOnLinkedList.php Queues · Heap.php Heap
Components 24
Linear structures
- Arrays
java/05_array/Array.java - Linked lists
php/06_linkedlist/SingleLinkedList.php - List algorithms
php/07_linkedlist/main.php - Stacks
php/08_stack/StackOnLinkedList.php - Stack example
php/08_stack/main.php - Queues
php/09_queue/QueueOnLinkedList.php - Queue example
php/09_queue/main.php
Ordering and search
- Sorting
java/12_sorts/Sorts.java - Binary search
python/16_bsearch/bsearch_variants.py
Indexed structures
- Hash tables
java/18_hashtable/HashTable.java - LRU caches
java/20_hashtable/LRUBaseHashTable.java - Skip lists
java/17_skiplist/SkipList.java - Trie and matching
python/35_trie/trie_.py - Heap
php/10_heap/Heap.php - Heap example
php/10_heap/main.php
Trees and graphs
- Binary trees
php/24_tree/Tree.php - Tree example
php/24_tree/main.php - Search trees
c-cpp/24_binarysearchtree/binarysearchtree.h - Graph algorithms
python/44_shortest_path/dijkstra.py
Algorithmic problems
- Backtracking
python/39_back_track/eight_queens.py - Dynamic programming
python/41_dynamic_programming/coins_problem.py - Recursion
go/10_recursion/Fibonacci.go - Divide and conquer
python/38_divide_and_conquer/merge_sort_counting.py
Other components
- Learner
Connections 19
- Learner → Arrays: explores
- Learner → Linked lists: explores
- Learner → Stacks: explores
- Learner → Queues: explores
- Learner → Sorting: explores
- Learner → Binary search: explores
- Learner → Hash tables: explores
- Learner → Heap: explores
- Learner → Binary trees: explores
- Learner → Graph algorithms: explores
- Learner → Backtracking: explores
- Learner → Dynamic programming: explores
- Learner → Recursion: explores
- Learner → Divide and conquer: explores
- List algorithms → Linked lists: operates on
php/07_linkedlist/main.php - Stack example → Stacks: calls
php/08_stack/main.php - Queue example → Queues: calls
php/09_queue/main.php - Heap example → Heap: calls
php/10_heap/main.php - Tree example → Binary trees: calls
php/24_tree/main.php