Average binary search length for dense ordered lists

  • Authors:
  • Ivan Flores;George Madpis

  • Affiliations:
  • Baruch College, City Univ. of New York;Baruch College, City Univ. of New York

  • Venue:
  • Communications of the ACM
  • Year:
  • 1971

Quantified Score

Hi-index 48.23

Visualization

Abstract

A binary search is effective only when the list searched is ordered. It is efficient only when the list is dense—i.e. when records are in contiguous locations. It is easy to show that the maximum number of looks for a search L is given by [1]. L = [log2N+1], (1) where N is the number of records in the list and the square bracket means “integral part of.”