How ali7ali/mastering-algorithms-and-data-structures-in-php works
This repository is a collection of standalone PHP examples accompanying a course on algorithms and data structures, not a unified application. The learner-facing workflow is to study an example and run it to observe its behavior. The tree documents broad coverage, while sampled source confirms specific implementations; links between separate examples are omitted because they are not shown to call one another.
Main entry points: ex2-priorityqueue.php Priority Queue · linear-time-ex.php Complexity Examples · array-manipulation-functions.php Array Examples · ex3-insert-remove-nodes-linkedlist.php Linked List
Components 34
Foundations
- Complexity Examples
1-2/linear-time-ex.php - Array Examples
1-3/array-manipulation-functions.php - Array Types
1-3/array-types.php
Data Structures
- Linked List
2-1/ex3-insert-remove-nodes-linkedlist.php - Stack
2-2/ex1-stack.php - Queue
2-2/ex2-queue.php - Associative Arrays
2-3/ex1-associative-array.php - Occurrence Counting
2-3/ex2-counting-occurrences.php - Binary Tree
2-4/ex1-binary-tree.php - Search Tree
2-4/ex2-binary-search-tree.php - Priority Queue
4-1/ex2-priorityqueue.php - Min Heap
4-1/ex2-priorityqueue.php
Search and Sort
- Bubble Sort
3-1/ex1-bubblesort.php - Insertion Sort
3-1/ex2-insertionsort.php - Selection Sort
3-1/ex3-selectionsort.php - Merge Sort
3-2/ex1-mergesort.php - Quick Sort
3-2/ex2-quicksort.php - Linear Search
3-3/ex1-linearsearch.php - Binary Search
3-3/ex2-binarysearch.php - Algorithm Library
6-2/php-algorithm-library - Library Binary Search
6-2/php-algorithm-library/searching/BinarySearch.php
Graph Algorithms
- Adjacency List
4-2/ex1-adjacencylist.php - Adjacency Matrix
4-2/ex2-adjacencymatrix.php - Breadth-First Search
4-3/ex1-bfs.php - Depth-First Search
4-3/ex2.dfs.php - Dijkstra Example
4-3/ex3-dijkstra.php - Library BFS
6-2/php-algorithm-library/graph/BreadthFirstSearch.php
Optimization
- Recursive Examples
5-1/ex1-factorial.php - Memoization
5-2/ex1-memoization.php - Dynamic Programming
5-2/ex2-dynamic.php - Knapsack
5-2/ex3-knapsack.php - Greedy Examples
6-1/ex1-greedyalgo.php - Nearest Neighbor
6-1/ex2-nearest-neighbor-algo.php
Other components
- Learner
Connections 8
- Learner → Complexity Examples: studies
- Learner → Array Examples: studies
- Learner → Linked List: studies
- Learner → Bubble Sort: studies
- Learner → Breadth-First Search: studies
- Learner → Recursive Examples: studies
- Learner → Algorithm Library: studies
- Priority Queue → Min Heap: delegates