Search
How to efficiently go towards a goal. How to search when someone is playing against us.
After this lab session, a student
Implement recursive computation of $f(n) = n!$
Guidelines
Call visualisation:
Program the recursive calculation of the Fibonacci sequence: $f(n) = f(n-1) + f(n-2)$.
Analyze the number of function calls and plunge depths.
Demo code:
Only for teachers: https://gitlab.fel.cvut.cz/kui-course/kui-misc/blob/master/fibonacci.py
How to to optimize the number of trials by throwing eggs from a building!
Gold coins! Mine! How to maximize rewards and scam your colleagues thanks to “game theory”, “democracy”, and weight lifting!
lab02quiz
03-search