doi:10.1016/S0020-0190(02)00455-6
Copyright © 2003 Elsevier Science B.V. All rights reserved.
Optimal search for rationals
References and further reading may be available for this article. To view references and further reading you must
purchase this article.
Stephen Kwek
, a, 1 and Kurt Mehlhorn
,
, b
a University of Texas at San Antonio, Department of Computer Science, San Antonio, TX 78249, USA
b Max-Planck-Institute fur Informatics, Im Stadtwald, Geb. 44, Saarbrücken 66123, Germany
Received 20 July 2001;
revised 1 October 2002.
Communicated by P.M.B. Vitányi
Available online 24 December 2002.
Abstract
We present a Θ(log2M)-time algorithm that determines an unknown rational number x in
by asking at most 2log2M+O(1) queries of the form “Is x
y?”.
Author Keywords: Combinatorial algorithms; Binary search; Rational numbers; Algorithms
Corresponding author.
1 This work is partially supported by NSF Grant CCR-0208935.