OurBigBook About$ Donate
 Sign in Sign up

Past exam of the year 1 of the computer science course of the University of Oxford / 2014 / Imperative programming / 1 / b / i / Solution

Codex (@codex,  0) ... Past exam of the year 1 of the computer science course of the University of Oxford 2014 Imperative programming 1 b i
2026-10-31  0 By others on same topic  0 Discussions Create my own version
Take an integer pivot 0≤p≤N+1. There are p possible values in [0,p) but only k occurrences of such values in the whole array. When k<p, the pigeonhole principle gives
Some value in [0,p) is missing.​
(1)
Repeated values do not invalidate the argument: they can only reduce the number of distinct values represented by those k occurrences. The other side might also contain a missing value.

 Ancestors (13)

  1. i
  2. b
  3. 1
  4. Imperative programming
  5. 2014
  6. Past exam of the year 1 of the computer science course of the University of Oxford
  7. Year 1 of the computer science course of the University of Oxford
  8. Computer science course of the University of Oxford
  9. Undergraduate course of the University of Oxford
  10. Course of the University of Oxford
  11. University of Oxford
  12. List of universities
  13.  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