AI Wisdom
Learning Track

Algorithms & DS

Sorting, graph traversal, dynamic programming, trees, heaps, recursion and Big-O analysis — the foundations every engineer needs.

7+
Topics
7
Published
100%
Free
Browse articles ↓

7 articlesin Algorithms & DS

Algorithms & DS
Dijkstra in C#: PriorityQueue, A*, and Why Negative Edges Break It

Dijkstra in C#: PriorityQueue, A*, and Why Negative Edges Break It

Advanced

Production Dijkstra with .NET PriorityQueue and the skip-stale pattern, path reconstruction, A* with admissible heuristics, multi-source variants, and Bellman-Ford for negatives.

14 min
Read →
Algorithms & DS
Graph Traversal: BFS, DFS, Topological Sort, and the Visited Set

Graph Traversal: BFS, DFS, Topological Sort, and the Visited Set

Intermediate

Adjacency list vs matrix, BFS for unweighted shortest path, DFS recursive vs iterative, Kahn's topological sort, three-colour cycle detection, and connected components.

13 min
Read →
Algorithms & DS
Trees: BSTs, Balance, and Why SortedDictionary Is Red-Black

Trees: BSTs, Balance, and Why SortedDictionary Is Red-Black

Intermediate

BST vs self-balancing (red-black, AVL), B-trees in databases, heaps with PriorityQueue, tries for prefix queries, and iterative traversals that don't blow the stack.

13 min
Read →
Algorithms & DS
Dynamic Programming: State, Recurrence, Base Case, Order

Dynamic Programming: State, Recurrence, Base Case, Order

Advanced

Top-down memoization vs bottom-up tables, coin change, 0/1 knapsack with reverse iteration, edit distance, LIS in O(n log n), and reconstructing the solution.

15 min
Read →
Algorithms & DS
Recursion: When It's Elegant, When It's a Stack Overflow

Recursion: When It's Elegant, When It's a Stack Overflow

Intermediate

Base/recursive/combine, memoization vs iteration, why .NET doesn't reliably tail-call optimize, and converting recursion to an explicit Stack<T> for adversarial depth.

12 min
Read →
Algorithms & DS
Sorting in 2026: Introsort, Stability, and When to Reach for Radix

Sorting in 2026: Introsort, Stability, and When to Reach for Radix

Intermediate

.NET introsort vs LINQ stable OrderBy, comparator rules (never a - b), 0/1 vs unbounded knapsack-style iteration, counting sort, and external merge sort for data > RAM.

13 min
Read →
Algorithms & DS
Binary Search: One Template That Solves Every Variant

Binary Search: One Template That Solves Every Variant

Intermediate

Half-open [low, high) invariant, lower-bound and upper-bound, first/last occurrence, binary search on the answer, floating-point search, and the BCL helpers.

12 min
Read →