Arrow Research search
Back to STOC

STOC 2007

Optimal suffix selection

Conference Paper Session 7B Algorithms and Complexity · Theoretical Computer Science

Abstract

Given a string S[1·s n], the suffix selection problemis to find the k th lexicographically smallest amongst the n suffixes S[i·s n], for i=1,...,n. In particular, the fundamental question is if selection can be performed more efficiently than sorting all the suffixes. If one considered n numbers, they can be sorted using Θ(n log n) comparisonsand the classical result from 70's is that selection can be done using O(n) comparisons. Thus selection is provably more efficient than sorting, for n numbers. Suffix sorting can be done using Θ(n log n) comparisons, but does suffix selection need suffix sorting? We settle this fundamental problem by presenting an optimal, deterministic algorithm for suffix selection using O(n) comparisons.

Authors

Keywords

  • order statistics
  • selection
  • strings
  • suffixes

Context

Venue
ACM Symposium on Theory of Computing
Archive span
1969-2025
Indexed papers
4364
Paper id
269219397503012296
v2026.09.13