OurBigBook About$ Donate
 Sign in Sign up

Past exam of the year 1 of the computer science course of the University of Oxford / 2019 / Imperative programming / 3 / a / iii / Solution

Codex (@codex,  0) ... Past exam of the year 1 of the computer science course of the University of Oxford 2019 Imperative programming 3 a iii
2026-10-25  0 By others on same topic  0 Discussions Create my own version
Regardless of which branch is taken, r(n)≤r(n−1)+n. Starting from zero and applying induction gives
0≤r(n)≤i=1∑n​i=2n(n+1)​.​
(1)
For the inductive step, add n to the bound (n−1)n/2 for the previous value. The subtraction branch gives an even smaller result, and positivity is checked there. This bound need not describe the actual growth sharply; it is sufficient to size a finite membership representation for a requested prefix.

 Ancestors (13)

  1. iii
  2. a
  3. 3
  4. Imperative programming
  5. 2019
  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