AlgoMaster Logo
All categories

DSA Concept Animations

Visualize core data structures and algorithms in 3D, step by step.

01

Fundamentals

Big-O, recursion and the core ideas every other topic builds on.

  1. 01Big O Notation
  2. 02Recurrence Relation
  3. 03Recursion Call Stack
  4. 04Divide And Conquer
  5. 05Memoization Vs Tabulation
02

Time Complexity Patterns

See how loops and recursion turn into work, one cube per operation.

  1. 01Hash Lookup (O(1))
  2. 02Halving Loop (O(log n))
  3. 03Single Loop (O(n))
  4. 04Sequential Loops (O(n + m))
  5. 05Loop + Binary Search (O(n log n))
  6. 06Divide & Conquer Levels (O(n log n))
  7. 07Nested Loops (O(n²))
  8. 08Triangular Loop (O(n²))
  9. 09Branching Recursion (O(2ⁿ))
  10. 10Permutation Tree (O(n!))
03

Space Complexity Patterns

Count the extra memory an algorithm needs as the input grows.

  1. 01Two Pointers (O(1) Space)
  2. 02Fixed-Size Counts (O(1) Space)
  3. 03Rolling DP Variables (O(1) Space)
  4. 04Recursive Halving (O(log n) Space)
  5. 05Hash Set of Seen (O(n) Space)
  6. 06New Output Array (O(n) Space)
  7. 07Linear Recursion (O(n) Space)
  8. 08BFS Queue (O(n) Space)
  9. 092D DP Table (O(n·m) Space)
  10. 10Storing All Subsets (O(n·2ⁿ) Space)
04

Bit Manipulation

Flip, mask and shift the bits behind fast integer tricks.

  1. 01Bitwise Operators
  2. 02Bit Masking
  3. 03Power of Two
05

Arrays & Two Pointers

Pointers, windows and prefix sums that turn O(n²) scans into O(n).

  1. 01Dynamic Array
  2. 02Container Water
  3. 03Container Most Water
  4. 04Trapping Rain Water
  5. 05Two Pointers
  6. 06Sliding Window
  7. 07Prefix Sum
  8. 08Kadane's Algorithm
  9. 09Fast and Slow Pointers
  10. 10Quickselect
06

Linear Data Structures

Linked lists, stacks, queues and hash tables, one operation at a time.

  1. 01Linked List
  2. 02Stack
  3. 03Queue
  4. 04Deque
  5. 05Circular Queue
  6. 06Monotonic Stack
  7. 07Monotonic Queue
  8. 08Hash Table Separate Chaining
  9. 09Hash Table Open Addressing
07

Sorting

Comparison and distribution sorts, one swap at a time.

  1. 01Bubble Sort
  2. 02Selection Sort
  3. 03Insertion Sort
  4. 04Shell Sort
  5. 05Merge Sort
  6. 06Quick Sort
  7. 07Heap Sort
  8. 08Counting Sort
  9. 09Radix Sort
  10. 10Bucket Sort
  11. 11Cyclic Sort
  12. 12Tim Sort
  13. 13External Sort
08

Searching

Binary search and its variants: bounds, rotated arrays and searching the answer space.

  1. 01Naive Search
  2. 02Binary Search
  3. 03Lower Bound
  4. 04Upper Bound
  5. 05Search in Rotated Sorted Array
  6. 06Binary Search on the Answer
09

Backtracking

Try a choice, check it, and undo it when it fails.

  1. 01N Queens
  2. 02Sudoku Solver
  3. 03Maze Solver
  4. 04Word Search
  5. 05Subsets
  6. 06Permutations
  7. 07Generate Parentheses
  8. 08Combination Sum
  9. 09Subsets via Bitmask
10

Trees

Search trees, self-balancing trees, heaps, range trees and tries.

  1. 01Binary Search Tree
  2. 02Tree Traversals
  3. 03Morris Traversal
  4. 04Binary Heap
  5. 05Top K Elements with a Heap
  6. 06K-Way Merge
  7. 07Huffman Coding
  8. 08AVL Trees
  9. 09Red Black Trees
  10. 10Segment Tree
  11. 11Fenwick Tree
  12. 12Skip Lists
  13. 13Trie
11

Dynamic Programming

Fill a table of subproblems, then trace the answer back.

  1. 01Edit Distance
  2. 02LCS
  3. 03Knapsack
  4. 04Coin Change
  5. 05Unbounded Knapsack
  6. 06Subset Sum
  7. 07Unique Paths
  8. 08Matrix Chain
  9. 09Fibonacci
  10. 10Longest Increasing Subsequence
  11. 11Dp On Trees
  12. 12Bitmask Dp
12

Graphs

Traversals, shortest paths, spanning trees and flows.

  1. 01Graph BFS
  2. 02Graph DFS
  3. 03Grid Traversal (BFS and DFS)
  4. 04Dijkstra
  5. 05Kruskal
  6. 06Prim
  7. 07Topological Sort
  8. 08Cycle Detection
  9. 09Bellman Ford
  10. 10A* Search
  11. 11Floyd-Warshall
  12. 12Tarjan's Algorithm
  13. 13Kosaraju's Algorithm
  14. 14Articulation Points
  15. 15Bridges
  16. 16Max-Flow / Min-Cut
  17. 17Bipartite Check
  18. 18Union Find
13

String Matching

Find a pattern in text without rechecking characters.

  1. 01KMP
  2. 02Rabin-Karp
  3. 03Boyer-Moore
  4. 04Z-Algorithm
  5. 05Manacher's Algorithm
  6. 06Suffix Array
  7. 07Suffix Tree
  8. 08Aho-Corasick