Checkpoint 5.14.1.
What are the three laws of recursion for an algorithm? (choose all that are correct)
- It must progress from the base case
- If it starts at the base case, then when would it stop?
- It must move towards the base case
- Correct. The base case is your endpoint.
- It must have a base case
- Correct. The base case is essential if you want a stopping point
- It must call itself
- Correct. If it doesn’t call itself then it won’t repeat