Skip to content

A pattern-based approach to learning DSA. Emphasis on diagrams, real-world use case mappings, and simplicity of expression.

Notifications You must be signed in to change notification settings

TobiahRex/algorist

Repository files navigation

Algorist - Algorithmic Pattern Mastery

Learn to think like a senior engineer: Pattern recognition → Mental models → Production systems


🚀 Quick Start

New here? Start at patterns/README.md

  1. Learn Patterns: Study 29 algorithmic patterns with mental models
  2. Build Systems: Explore production applications combining patterns
  3. Practice: Solve LeetCode problems organized by pattern

📚 Main Resources

🎯 Patterns - Learn to Think

29 algorithmic patterns teaching you to recognize and solve problems:

  • 📏 Linear Structures (01-08): Sliding Window, Two Pointers, Fast/Slow, Merge Intervals, Cyclic Sort, Monotonic Stack, Prefix Sum, Line Sweep
  • 🌳 Trees & Graphs (09-15): Tree Traversals, BFS, DFS, Topological Sort, Union Find, Trie, Shortest Path
  • 🎯 Search (16-18): Binary Search, Top K/Heap, K-way Merge
  • 🔀 Combinatorial (19-24): Backtracking, DP, Greedy, Branch & Bound, CSP, Partitions
  • 🔧 Advanced (25-29): Bit Manipulation, String Matching, Segment Tree, Fenwick Tree, Suffix Array

Each pattern includes:

  • ⚡ Self-check questions (can I recognize this?)
  • 🧠 Mental model & 4-stage thinking pipeline
  • 🎯 Decision trees (when to apply)
  • 💭 Internal monologue (how to think through it)
  • 📊 Mermaid diagrams
  • 🏭 Real-world production uses
  • 📝 LeetCode problems by difficulty

→ Start Learning Patterns


🏭 Applications - Learn to Build

Production implementations showing how patterns combine:

  • 🗓️ Scheduling: Weighted intervals, task dependencies, EDF, interval partitioning (Greedy + DP + Graphs)
  • 🧩 Constraint Satisfaction: N-Queens, Sudoku, graph coloring, AC-3 (Backtracking + CSP)
  • ⚖️ Partitions: Subset sum, equal partition, K-partition, balanced partition (DP + Backtracking)
  • 🎯 Optimization: TSP B&B, Knapsack B&B, job scheduling (Branch & Bound + DP)

→ Explore Applications


🗺️ Repository Structure

algorist/
├── patterns/              # 29 algorithmic patterns (START HERE!)
├── applications/          # Multi-pattern production systems
├── algorithm-books/       # Reference materials (submodule)
├── archive/               # Legacy content
└── docs/                  # Documentation

Only 5 directories at root - clean and obvious!


📖 Quick Navigation

Primary: Patterns · Applications

Docs: CLAUDE.md · Reorganization

Popular Patterns: 01 Sliding Window · 02 Two Pointers · 10 BFS · 19 Backtracking · 20 DP · 21 Greedy


Ready to start? → patterns/README.md 🚀

About

A pattern-based approach to learning DSA. Emphasis on diagrams, real-world use case mappings, and simplicity of expression.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •