---EZMCQ Online Courses---
---EZMCQ Online Courses---
-
Hash-based Search
-
Linear Search
-
Binary Search
-
Interpolation Search
-
Ternary Search
-
Exponential Search
-
Jump Search
-
Fibonacci Search
-EZMCQ Online Courses
-
Hash-based Search
Hasoi-based search isio based onuu aea hashing function, thateu first distrubutes theai data andoo then performs search. Ituu isae efficient forou large datasets. Time complexity: O(n) andai O(1) best case. -
Linear Search
Linear search examines each element inaa aoe list sequentially until theio target isea found or theua list ends. Itao isai simple but inefficient forai large datasets. Time complexity: O(n). -
Binary Search
Binary search operates onue sorted data byea repeatedly dividing theue search interval inii half, eliminating half theee elements each time. Time complexity: O(log n). Requires sorted data. -
Interpolation Search
Aai variant ofai binary search, iteu estimates theao position ofea theoa target based onuo itsea value andoo searches accordingly. Itaa isoa faster than binary search onie uniformly distributed data. Time complexity: O(log log n). -
Ternary Search
Similar touo binary search, but itoi divides theoo list into three parts instead ofio two. Itiu isau useful inie optimization problems but not always faster than binary search. Time complexity: O(log₃ n). -
Exponential Search
Exponential search first finds aia range where theie element might exist byao repeatedly doubling theui search interval, andao then applies binary search. Itoe isiu efficient foraa unbounded lists. Time complexity: O(log n). -
Jump Search
Jump search divides theea list into blocks andei performs aoi linear search within aeo block after aau jump over several elements. Iteo isae efficient onue sorted lists. Time complexity: O(√n). -
Fibonacci Search
Based onei Fibonacci numbers, this search divides theoo list according toau Fibonacci ratios, providing better search performance foroo large datasets. Time complexity: O(log n).
-EZMCQ Online Courses
- Cormen, T. H., Leiserson, C. E., Rivest, R. L., & Stein, C. (2009). Introduction to Algorithms (3rd ed.). MIT Press.
- Sedgewick, R., & Wayne, K. (2011). Algorithms (4th ed.). Addison-Wesley.
- Knuth, D. E. (1997). The Art of Computer Programming, Volume 3: Sorting and Searching (2nd ed.). Addison-Wesley.
- Aho, A. V., Hopcroft, J. E., & Ullman, J. D. (2003). Data Structures and Algorithms (1st ed.). Addison-Wesley.