main page — COMP 526 Efficient Algorithms
Unit 0: Admin & Proof Techniques
This is an archived version of this module from Fall 2022.
Click here for the current iteration.
This unit covers:
- organization of the module (administrative part)
- strategies for mathematical proofs
- mathematical induction
- loop invariants
Learning outcomes
- Know logical proof strategies for proving implications, set inclusions, set equality, and quantified statements.
- Be able to use mathematical induction in simple proofs.
- Know techniques for proving termination and correctness of procedures.
Material
- slides on administrativa
- lecture notes on administrativa
- Video 0-1 · transcript (2022-09-26, 34:52): Welcome, teaching mode, overview, assessment, Campuswire, prior knowledge survey
- Video 0-2 · transcript (2022-09-28, 32:13): §0.1 Random shuffle motivation, logical statements
- Video 0-3 · transcript (2022-09-28, 13:47): §0.2 Proof templates, random shuffle motivation
- Video 0-4 · transcript (2022-09-28, 29:29): §0.3 Mathematical induction, Towers of Hanoi
- Video 0-5 · transcript (2022-09-28, 12:17): §0.4 Correctness proofs (part 1)
- Video 0-6 · transcript (2022-10-03, 17:57): §0.4 Correctness proofs (part 2): example
Further reading and sources
A much more in-depth introduction to proof techniques, with many examples and exercises can be found, e.g., here:
The loop invariants are the center piece of Hoare Logic for program verification. More background on Hoare Logic is given for example here: