Abstract
Search is considered to be an important functionality in a computational system. Search techniques are applied in file retrievals and indexing. Though there exists various search techniques, binary search is widely used in many applications due to its advantage over other search techniques namely linear and hash search. Binary search is easy to implement and is used to search for an element in a large search space. The worst case time complexity of binary search is O (log 2 n) where n is the number of elements (search space) in the array. However, in binary search, searching is performed on the entire search space. The complexity of binary search may be further reduced if the search space is reduced. This paper proposes an Ant Colony Optimization based Binary Search (ACOBS) algorithm to find an optimal search space for binary search. ACOBS algorithm categorizes the search space and the key element is searched only in a specific category where the key element can exist thereby reducing the search space. The time complexity of ACOBS algorithm is O (log 2 c) where c is the number of elements in the reduced search space and c < n. The proposal is best suited for real time applications where searching is performed on a large domain.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
References
Dorigo, M., Stützle, T.: Ant Colony Optimization. MIT Press (2004)
Liu, Y., Passino, K.M.: Swarm Intelligence, Literature Overview, Dept. of Electrical Engineering. The Ohio State University (2000)
Padhy, N.P.: Artificial Intelligence and Intelligent Systems. Oxford University press (2005)
Kennedy, J.: Particle swarm optimization. In: Encyclopedia of Machine Learning, pp. 760–766. Springer (2011)
Yang, X.-S., Deb, S.: Cuckoo search via lévy flights. In: Proceedings of the Nature & Biologically Inspired Computing (NaBIC 2009) World Congress, pp. 210–214 (2009)
Yang, X.: Firefly algorithm, stochastic test functions and design optimization. Int. J. Bio-Inspired Comput. 2(2), 78–84 (2010)
Pham, D.T., Ghanbarzadeh, A., Koc, E., Otri, S., Rahim, S., Zaidi, M.: The Bees Algorithm. Technical Note, Manufacturing Engineering Centre, Cardiff University, UK (2005)
Bastos Filho, C.J., de Lima Neto, F.B., Lins, A.J., Nascimento, A.I., Lima, M.P.: A novel search algorithm based on fish school behavior. In: Systems Man and Cybernetics, pp. 2646–2651 (2008)
Shi, Y.: Brain storm optimization algorithm. In: Proceedings of the International Conference in Swarm Intelligence, pp. 303–309. Springer (2011). https://doi.org/10.1007/978-3-642-21515-5_36
Tan, T, Zhu, Y.: Fireworks algorithm for optimization. In: International Conference in Swarm Intelligence (2010)
Yang, X.-S., Deb, S., Fong, S., He, X., Zhao, Y.X.: Swarm intelligence to metaheuristics: nature-inspired optimization algorithms. Computer 49, 52–59 (2016)
Zeeshan, M., Tripathi, A., Khan, S.: An alternate binary search algorithm based on variable checkpoint. Int. J. Eng. Res. Technol. (IJERT) 4 (09), 459–462 (2015)
Mehmood, A.: ASH search: binary search optimization. Int. J. Comput. Appl. 178(15), 0975–8887 (2019)
Bajwa, M.S., Agarwal, A.P., Manchanda, S.: Ternary search algorithm: improvement of binary search. In: 2nd International Conference on Computing for Sustainable Global Development (INDIACom), pp. 1723–1725 (2015)
https://edelalon.com/blog/2013/09/zipcode-to-city-state-excel-spreadsheet/
https://raw.githubusercontent.com/dwyl/english-words/master/words_alpha.txt
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2021 Springer Nature Switzerland AG
About this paper
Cite this paper
Sreelaja, N.K., Sreeja, N.K. (2021). An Ant Colony Optimization Based Approach for Binary Search. In: Tan, Y., Shi, Y. (eds) Advances in Swarm Intelligence. ICSI 2021. Lecture Notes in Computer Science(), vol 12689. Springer, Cham. https://doi.org/10.1007/978-3-030-78743-1_28
Download citation
DOI: https://doi.org/10.1007/978-3-030-78743-1_28
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-030-78742-4
Online ISBN: 978-3-030-78743-1
eBook Packages: Computer ScienceComputer Science (R0)