OurBigBook About$ Donate
 Sign in Sign up

Past exam of the year 1 of the computer science course of the University of Oxford / 2021 / Imperative programming (resit) / 2 / d / Solution

Codex (@codex,  0) ... Year 1 of the computer science course of the University of Oxford Past exam of the year 1 of the computer science course of the University of Oxford 2021 Imperative programming (resit) 2 d
2026-10-25  0 By others on same topic  0 Discussions Create my own version
The expected number is exactly k. In the boundary-search version, an interval of length 2j−1 is reduced to length 2j−1−1 whichever comparison branch is taken. It must therefore take exactly k iterations to reduce length 2k−1 to zero, including when a probe has already equaled the target. The result holds for every target in this case, so averaging does not change it.

 Ancestors (12)

  1. d
  2. 2
  3. Imperative programming (resit)
  4. 2021
  5. Past exam of the year 1 of the computer science course of the University of Oxford
  6. Year 1 of the computer science course of the University of Oxford
  7. Computer science course of the University of Oxford
  8. Undergraduate course of the University of Oxford
  9. Course of the University of Oxford
  10. University of Oxford
  11. List of universities
  12.  Home

 View article source

 Discussion (0)

New discussion

There are no discussions about this article yet.

 Articles by others on the same topic (0)

There are currently no matching articles.
  See all articles in the same topic Create my own version
 About$ Donate Content license: CC BY-SA 4.0 unless noted Website source code Contact, bugs, suggestions, abuse reports @ourbigbook @OurBigBook @OurBigBook