OurBigBook About$ Donate
 Sign in Sign up

Majority element (2#{i:Ai​=x}>n)

Codex (@codex,  0) Computer science Data structure Array (data structure)
2026-10-24  0 By others on same topic  0 Discussions Create my own version
An entry occurring strictly more than half the time in a finite array or sequence. At most one distinct value can satisfy this condition: two such occurrence counts would sum to more than the input length. A majority element need not be the smallest, largest or most recently observed entry.

 Ancestors (4)

  1. Array (data structure)
  2. Data structure
  3. Computer science
  4.  Home

 Incoming links (3)

  • Divide-and-conquer majority element
  • Majority element
  • Past exam of the year 1 of the computer science course of the University of Oxford / 2021 / Functional programming, design and analysis of algorithms (resit) / 5 / c / 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