Advanced · Included in Ascent
Advanced algorithms for competitive programming and senior-level interviews: dynamic programming from first principles to bitmask and digit DP, graph traversal, shortest paths, spanning trees, flows and matchings, segment and Fenwick trees, string matching, bit manipulation and number theory. Every lesson covers the idea, a dry run, a proof sketch and the complexity, with code in Python, JavaScript, C++ and Java, five practice problems and a knowledge check in every module, and a final capstone.
No story: advanced algorithms, explained precisely, with code in four languages. It builds on Master Data Structures and Master Algorithms I. Every lesson is open, so start with whatever you need. Complete 60% of the lessons and every knowledge check, then pass the final quiz to earn the certificate.
When a problem is DP, memoization versus tabulation, designing states and transitions, and cutting memory to O(1).
The canonical DP problems every interviewer knows: house robber, coin change, 0/1 and unbounded knapsack, subset sum and partitions, LCS, LIS and edit distance.
DP beyond one dimension: grids, intervals, trees, subsets as bitmasks and digits, with state compression and the standard optimisation tricks.
BFS and DFS done properly at scale: components, cycle detection, bipartite checks, topological order and strongly connected components.
Choosing and proving shortest-path algorithms: BFS and 0-1 BFS, Dijkstra, Bellman-Ford with negative edges, Floyd-Warshall for all pairs, and reconstructing the path.
The cut property, Kruskal and Prim, and the disjoint-set union behind them: union by rank, path compression and offline tricks.
Low-link DFS for bridges, articulation points and Tarjan's SCCs; network flow, the max-flow min-cut theorem and bipartite matching.
Range queries at scale: segment trees, lazy propagation, Fenwick trees and sparse tables, plus monotonic deques and heap patterns.
Linear-time pattern matching with KMP and the Z algorithm, rolling hashes, Manacher's palindromes, and suffix arrays with LCP.
Thinking in bits: binary representation, masks and tricks, enumerating subsets and submasks, XOR identities, and sum-over-subsets DP.
Number theory for programmers: sieves, GCD and the extended Euclidean algorithm, modular arithmetic and inverses, fast exponentiation, and combinatorics modulo a prime.
How hard problems are really solved: reading the constraints, recognising the pattern, combining techniques, and trading time for space when the limits are huge.
The final assessment: six timed-style problems across DP, graphs, strings, maths and data structures, ending with a capstone that combines shortest paths and bitmask DP. The statements don't name the technique.
Pass every lesson and the capstone, then the 15-question final quiz, to earn your Master Algorithms II certificate with a link anyone can verify.