<aside> ⏱️

L1 — Know How Long A Program Takes covers why algorithm efficiency matters (via TSP), how to calculate running time by counting primitive operations, and the three asymptotic notations: Big-Theta, Big-O, and Big-Omega. Read: Section 2.2 and Chapter 3 from Intro. to Algorithms (Cormen et al).

</aside>

📋 At a Glance


1. The Travelling Salesman Problem (TSP)

Problem: Given a set of cities and distances between them, find the shortest tour visiting each city exactly once and returning to the start.

Brute-force approach:

Why brute force fails: