Teach students: loops → count iterations and recursion → build & solve recurrence. This page bridges: code → math → Big-O.
Click an example…
Place it in Module-1 (Asymptotics) after “Asymptotic Notations”.
<a class="btn btn-primary" href="09_cost_from_code.html">
Cost From Code (Loops + Recurrence)
</a>