Asked by m.a
A list contains the following items:
Antelope
Baboon
Cheetah
Emu
Giraffe
Hippo
Jackal
Lion
Okapi
Warthog
(a) A binary search is performed to find the item Okapi. State the items which will be examined.
(b) State the items that will be examined when performing a binary search for Monkey, which is not in the list.
Antelope
Baboon
Cheetah
Emu
Giraffe
Hippo
Jackal
Lion
Okapi
Warthog
(a) A binary search is performed to find the item Okapi. State the items which will be examined.
(b) State the items that will be examined when performing a binary search for Monkey, which is not in the list.
Answers
Answered by
oobleck
Giraffe, Jackal, Okapi
Giraffe, Jackal, Okapi, Lion
Giraffe, Jackal, Okapi, Lion
There are no AI answers yet. The ability to request AI answers is coming soon!
Submit Your Answer
We prioritize human answers over AI answers.
If you are human, and you can answer this question, please submit your answer.