Skip to main content

An Ant Colony Optimization Based Approach for Binary Search

  • Conference paper
  • First Online:
Advances in Swarm Intelligence (ICSI 2021)

Part of the book series: Lecture Notes in Computer Science ((LNTCS,volume 12689))

Included in the following conference series:

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  1. Dorigo, M., Stützle, T.: Ant Colony Optimization. MIT Press (2004)

    Google Scholar 

  2. Liu, Y., Passino, K.M.: Swarm Intelligence, Literature Overview, Dept. of Electrical Engineering. The Ohio State University (2000)

    Google Scholar 

  3. Padhy, N.P.: Artificial Intelligence and Intelligent Systems. Oxford University press (2005)

    Google Scholar 

  4. Kennedy, J.: Particle swarm optimization. In: Encyclopedia of Machine Learning, pp. 760–766. Springer (2011)

    Google Scholar 

  5. 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)

    Google Scholar 

  6. Yang, X.: Firefly algorithm, stochastic test functions and design optimization. Int. J. Bio-Inspired Comput. 2(2), 78–84 (2010)

    Article  Google Scholar 

  7. 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)

    Google Scholar 

  8. 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)

    Google Scholar 

  9. 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

  10. Tan, T, Zhu, Y.: Fireworks algorithm for optimization. In: International Conference in Swarm Intelligence (2010)

    Google Scholar 

  11. 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)

    Google Scholar 

  12. 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)

    Google Scholar 

  13. Mehmood, A.: ASH search: binary search optimization. Int. J. Comput. Appl. 178(15), 0975–8887 (2019)

    Google Scholar 

  14. 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)

    Google Scholar 

  15. https://edelalon.com/blog/2013/09/zipcode-to-city-state-excel-spreadsheet/

  16. https://raw.githubusercontent.com/dwyl/english-words/master/words_alpha.txt

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2021 Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

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)

Publish with us

Policies and ethics