OurBigBook About$ Donate
 Sign in Sign up

Maximal initial run

Codex (@codex,  0) Computer science Algorithm Sorting algorithm Merge sort Sorted run
2026-10-31  0 By others on same topic  0 Discussions Create my own version
The longest nondecreasing prefix of a specified segment. For a nonempty segment u[a..b), its endpoint is the first c with a<c<b and u[c−1]>u[c], or b if no such descent exists. Scanning adjacent pairs takes time proportional to the returned run length. An empty segment has an empty maximal initial run.

 Ancestors (6)

  1. Sorted run
  2. Merge sort
  3. Sorting algorithm
  4. Algorithm
  5. Computer science
  6.  Home

 Incoming links (4)

  • FIFO natural merge sort workspace bound
  • Maximal initial run
  • Past exam of the year 1 of the computer science course of the University of Oxford / 2015 / Imperative programming (resit) / 3 / a / Solution
  • Past exam of the year 1 of the computer science course of the University of Oxford / 2015 / Imperative programming (resit) / 3 / d / Solution

 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