Euclid's worst-case step count
The Euclidean algorithm computes , repeating until the second argument is . Count the number of (remainder) operations performed for .
Show hints (2)+
- and are consecutive Fibonacci numbers - the worst case.
- Trace until the remainder is ; count the s.
Answer
Reveal answer →Final answer
7
Create a free account to see the full worked solution and track your progress.
Interview format: Prop Trading, Systematic & Data-Driven Trading