This Article 
   
 Share 
   
 Bibliographic References 
   
 Add to: 
 
Digg
Furl
Spurl
Blink
Simpy
Google
Del.icio.us
Y!MyWeb
 
 Search 
   
Searching on a Tape
October 1990 (vol. 39 no. 10)
pp. 1265-1272

The problem of minimizing the average time to search for a key in a stored list of keys in a sequential access machine model (SAM) (e.g. a magnetic tape) is considered. The time to access a key in the list and the time to compare it to the given search key are taken into account. The time to access a key in the list is assumed proportional to the distance the head moves from its current location to reach the key. The time to read and compare the key to the search key is taken to be constant. Two classes of algorithms are analyzed and a matching lower bound on the average search time is presented. These results answer an open problem posed by S. Nishihara and H. Nishino (1987) regarding the optimal search algorithm for such a model. It is shown that the organization of the input data is crucial in determining the SAM complexity of the search problem.

[1] A. Aggarwal, B. Alpern, A. K. Chandra, and M. Snir, "A model for hierarchical memory," inProc. 19th Annu. ACM Symp. Theory Comput., New York, NY, May 1987, pp. 305-314.
[2] R. Baeza-Yates, J. Culberson, and G. Rawlins, "Searching with uncertainty," Tech. Rep. CS-87-68, Dep. Comput. Sci., Univ. of Waterloo, Waterloo, Canada, Oct. 1987.
[3] D. E. Ferguson, "Fibonaccian searching,"Commun. ACM, vol. 3, no. 12, p. 648, Dec. 1960.
[4] C. W. Gear,Computer Organization and Programming, 3rd ed. New York: McGraw-Hill, 1980.
[5] M. Hofri, "On searching an ordered list: Are two yardsticks better than one?," Tech. Rep. 467, Dep. Comput. Sci. Technion, Haifa, Israel, Oct. 1987.
[6] A. J. Hu, "Selection of the optimum uniform partition search,"Computing, vol. 37, pp. 261-264, 1986.
[7] T. C. Hu and M. L. Wachs, "Binary search on a tape,"SIAM J. Comput., vol. 16, no. 3, pp. 573-590, June 1987.
[8] W. J. Knight, "Search in an ordered array having variable probe cost,"SIAM J. Comput., vol. 17, no. 6, pp. 1203-1214, Dec. 1988.
[9] D. E. Knuth,The Art of Computer Programming, Vol. 3, Reading, MA: Addison-Wesley, 1973.
[10] Y. P. Manolopoulos, J. (Y.) G. Kollias, and F. W. Burton, "Batched interpolation search,"Comput. J., vol. 30, no. 6, pp. 565-568, Dec. 1987.
[11] S. Nishihara and H. Nishino, "Binary search revisited: Another advantage of Fibonacci search,"IEEE Trans. Comput., vol. C-36, no. 9, pp. 1132-1135, Sept. 1987.
[12] K. J. Overholt, "Efficiency of the Fibonacci search method,"BIT, vol. 13, no. 1, pp. 92-96, Jan. 1973.

Index Terms:
key search; key access; key comparison; input data organisation; stored list; sequential access machine model; magnetic tape; search key; head; read; lower bound; average search time; optimal search algorithm; SAM complexity; search problems.
Citation:
S.W. Hornick, S.R. Maddila, E.P. Mucke, H. Rosenberger, S.S. Skiena, I.G. Tollis, "Searching on a Tape," IEEE Transactions on Computers, vol. 39, no. 10, pp. 1265-1272, Oct. 1990, doi:10.1109/12.59856
Usage of this product signifies your acceptance of the Terms of Use.