Answer the question
In order to leave comments, you need to log in
How to calculate the growth order of an algorithm?
Let's say two algorithms are given: Golden section method and Bisection method , how to find their growth order (by the number of steps)?
Answer the question
In order to leave comments, you need to log in
Your algorithms are essentially the same thing. Just in the first segment is divided in proportion to the golden section, and in the second case, the segment is divided in half.
Both have O(log n) complexity.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question