File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
conferences/2025/00-hello-world Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change 27273 . Output shortest height.
2828
2929- ** Correctness**
30- - Discuss how to prove that the algorithm correctly identifies the shortest person:
31- - Use examples to demonstrate that for any input list, the algorithm will return the correct result.
30+ - Discuss how to prove that the algorithm correctly identifies the shortest person.
31+ - Use examples to demonstrate that for any input list, the algorithm will return the correct result.
32+ - Draft a semi-formal proof with an inductive argument in the size of the list.
3233
3334- ** Efficiency**
3435 - Introduce the concept of efficiency in algorithms, focusing on time complexity.
35- - Explain that this algorithm runs in $$ O(N) $$ time, where $$ N $ $ is the number of people in the list.
36+ - Explain that this algorithm runs in $O(N)$ time, where $N $ is the number of people in the list.
3637
3738- ** Adversary Technique**
38- - Briefly explain the adversary technique for proving lower bounds:
39- - Discuss how any algorithm that finds the shortest person must examine each height at least once, thus requiring at least $$ N $ $ comparisons.
40- - Emphasize that this establishes a lower bound on time complexity for this problem.
39+ - Briefly explain the adversary technique for proving lower bounds.
40+ - Discuss how any algorithm that finds the shortest person must examine each height at least once, thus requiring at least $N $ comparisons.
41+ - Emphasize that this establishes a lower bound on time complexity for this problem.
4142
4243### 3. Setting Up the Environment (15 minutes)
4344- ** Using the Terminal**
You can’t perform that action at this time.
0 commit comments