Code / Topic guide

Algorithm reasoning and step visualizers

Algorithm analysis separates a computational task from the method and its cost. Trace operations for a concrete input before generalizing.

Worked example

In sorted [1,3,5,5,8], lower-bound search for 5 returns index 2. In a directed graph with edges 0→1 cost 2, 1→2 cost 1 and 0→2 cost 5, Dijkstra finds distance 3 via node 1.

Limitations

Dijkstra requires nonnegative weights. Growth functions illustrate scaling; they do not infer complexity from arbitrary source code or measure runtime.

Working calculators