Optimal Narrowing of a Block of Sortings in Optimal Time

  • Authors:
  • Noëlle Bleuzen-Guernalec;Alain Colmerauer

  • Affiliations:
  • Laboratoire d‘Informatique de Marseille, ESA 6077, CNRS et Universités de Provence et de la Méditerranée;Laboratoire d‘Informatique de Marseille, ESA 6077, CNRS et Universités de Provence et de la Méditerranée

  • Venue:
  • Constraints
  • Year:
  • 2000

Quantified Score

Hi-index 0.00

Visualization

Abstract

Let\Dd be a totally ordered set. Call an n-block,a Cartesian product of n closed and possibly emptyintervals of \Dd. Let \tri be the setof all 2n-tuples of elements of \Ddof the form (x_1,\ldots,x_{2n}), where (x_{n+ 1},\ldots,x_{2n}) is the n-tuple obtainedby sorting the elements of the n-tuple (x_1,\ldots,x_n)in non-decreasing order. We present and justify an algorithmof complexity \Oo(n \log n) which, given a 2n-blocka, computes a 2n-block which, by inclusion,is the smallest block containing the set \tri \cap a.We show that this complexity is optimal.