© 1986 by British Computer Society
Sequential vs. Binary Batched Searching
1 Department of Electrical Engineering, University of Thessaloniki, Thessaloniki, Greece, 2 Department of Electrical Engineering, Division of Computer Science, National Technical University of Athens, 9 Heroon Polytechniov Avenue, 157 73 Zagraphov, Athens, Greece, 3 Department of Mathematics, University of Athens, Athens, Greece
This study considers an ordered array of N keys and estimates the required number of key comparisons to locate M requested keys when a binary search is performed to find each key. The problem is analysed for the cases where the M requests (a) are performed individually on a First Come First Served basis, and (b) are treated as a batch. For the second case a break point is established which indicates whether it is preferable to apply binary or sequential search for a batch of M keys.
Received September 1984.
* Department of Electrical Engineering, University of Thessaloniki, Thessaloniki, Greece
Department of Electrical Engineering, Division of Computer Science, National Technical University of Athens, 9 Heroon Polytechniov Avenue, 157 73 Zagraphov, Athens, Greece
¶ Department of Mathematics, University of Athens, Greece
This work is part of KRINO, a project aiming at improving software technology in Greece.