- #1
evinda
Gold Member
MHB
- 3,836
- 0
Hi! (Wave)
We have a machine, that knows the answer to the question: "Which is the age of the oldest genus, that ever existed?". The machine can only give the answers "YES/NO". I want to write an algorithm with time complexity $O(\log n)$, that implements that. So, we don't have a bound for the age, but can only ask $\log n$ questions. How could we do this? (Thinking)
We have a machine, that knows the answer to the question: "Which is the age of the oldest genus, that ever existed?". The machine can only give the answers "YES/NO". I want to write an algorithm with time complexity $O(\log n)$, that implements that. So, we don't have a bound for the age, but can only ask $\log n$ questions. How could we do this? (Thinking)