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 / ii

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 2014 Imperative programming 1 b
2026-10-31  0 By others on same topic  0 Discussions Create my own version
  • Table of contents
    • Solution ii

Solution

 0  0
ii
There are N+1−p candidate values in [p,N+1) and exactly N−k occurrences there. If k≥p, then
N−k≤N−p<N+1−p.
(1)
Thus the pigeonhole principle gives
Some value in [p,N+1) is missing.​
(2)
This conclusion does not assert that every value on the lower side is present; duplicates may leave both sides deficient.

 Ancestors (12)

  1. b
  2. 1
  3. Imperative programming
  4. 2014
  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