← CodeClarityLab Home
Browse by Category
+ added · updated 7d
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Diagram: Topological Sort Topological Sort PHP 7.4+
An ordering of nodes in a directed acyclic graph (DAG) such that for every directed edge u→v, node u appears before v in the ordering.
1mo ago algorithms intermediate
Diagram: Divide and Conquer Divide and Conquer
Recursively break a problem into smaller subproblems, solve each independently, and combine results — the strategy behind mergesort, quicksort, binary search, and FFT.
2mo ago algorithms intermediate
Hashing Algorithms Deep Dive PHP 7.2+
Comparing hash functions for different use cases — MD5/SHA-1 (broken, legacy), SHA-256/BLAKE3 (data integrity), bcrypt/Argon2 (passwords), xxHash/MurmurHash (non-cryptographic, fast).
2mo ago algorithms intermediate
Diagram: Big-O Notation Big-O Notation PHP 5.0+
A mathematical notation describing how an algorithm's time or space requirements grow relative to input size, ignoring constants and lower-order terms.
2mo ago algorithms intermediate
Bit Manipulation
Using bitwise operators (AND, OR, XOR, NOT, shifts) to manipulate individual bits — enabling compact storage, fast arithmetic, and O(1) set operations.
2mo ago algorithms intermediate
Diagram: Greedy Algorithms Greedy Algorithms PHP 5.0+
Algorithms that make the locally optimal choice at each step — fast and simple, but only produce the globally optimal solution for problems with the greedy choice property.
2mo ago algorithms intermediate
Diagram: Recursion Patterns Recursion Patterns PHP 5.0+
Functions that call themselves with smaller inputs — powerful for tree traversal, divide-and-conquer, and mathematical sequences, but requiring careful base cases and stack depth management.
2mo ago algorithms intermediate
Diagram: Searching Algorithms Searching Algorithms PHP 5.0+
Linear search is O(n) and works on any array. Binary search is O(log n) but requires a sorted array. Hash lookup is O(1) and the right choice for most in-memory searches.
2mo ago algorithms intermediate
Diagram: Sliding Window Sliding Window
An algorithmic technique that maintains a window of elements over a sequence, expanding or contracting it to find subarrays or substrings satisfying a condition in O(n).
2mo ago algorithms intermediate
Diagram: Sorting Algorithms Sorting Algorithms PHP 5.0+
Algorithms for ordering a collection — ranging from O(n²) simple sorts to O(n log n) comparison sorts and O(n) non-comparison sorts for specific data.
2mo ago algorithms intermediate
Diagram: Two-Pointer Technique Two-Pointer Technique
An algorithmic pattern using two indices that move through a sorted array to find pairs or subarrays satisfying a condition in O(n) instead of O(n²).
2mo ago algorithms intermediate
✓ schema.org compliant