Search
How to efficiently go towards a goal. How to search when someone is playing against us.
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!
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.
Tree call:
Demo code:
Only for teachers: https://gitlab.fel.cvut.cz/kui-course/kui-misc/blob/master/fibonacci.py