LemmaTechniques › Algorithmic & Greedy Constructions
Olympiad problem-solving technique

Algorithmic & Greedy Constructions

Describe a procedure, then prove it terminates and works.

Many 'show that such an arrangement exists' problems are answered by giving an explicit algorithm: repeatedly apply a local fix, and argue with a monovariant that it must stop.

The proof has two halves people forget to separate: termination (some non-negative integer strictly decreases) and correctness (the stopped state has the required property).

Greedy arguments belong here too — take the largest available piece, then prove an exchange argument shows greedy is optimal.

Where it appears on Lemma: Level 5 (monovariants) and Level 6 (games, graphs).

Train it on Lemma

Algorithmic & Greedy Constructions unlocks at Level 6 of Lemma's eight-level ladder, with lessons that teach it and drills that make it stick. 78 lessons, 624 curated problems and unlimited generated practice at six difficulties. Free to start — no card, no trial clock.

Find your level

More techniques