Abstract
Let D be a totally ordered set. Call an n -block, a Cartesian product of n closed and possibly empty intervals of D. Let sort be the set of all 2n -tuples of elements of D of the form (x1,...,x2n) , where (xn+1,...,x2n) is the n -tuple obtained by sorting the elements of the n -tuple (x1,...,xn) in non-decreasing order. We present and justify an algorithm of complexity O(n log n) which, given a 2n -block a , computes a 2n -block which, by inclusion, is the smallest block containing the set sort a . We show that this complexity is optimal.
Similar content being viewed by others
References
Benhamou F. and OlderW.J. (1997). Applying Interval Arithmetic to Real, Integer and Boolean Constraints. Journal of Logic Programming.
Knuth D.E. (1973). Sorting and Searching: The Art of Computer Programming, volume 3, Addison Wesley.
OlderW.J. andVellino A. (1990). Extending Prolog with Constraint Arithmetic on Real Intervals, Proceedings of the Canadian Conference on Electrical and Computer Engineering.
OlderW.J., Swinkels G.M. and van Emden M.H. (1995). Getting to the Real Problem: Experience with BNR Prolog in OR, in Proceedings of the Third International Conference on the Practical Applications of Prolog, (PAP'95 à Paris), Alinmead Software Ltd, ISBN 0 9 525554 0 9.
Zhou J. (1997). A permutation-based approach for solving the job-shop problem, Constraints, vol 2, no 2, 185-213.