Abstract

In the field of search algorithms, choosing an optimal partition that takes much less time to search a desired element in an array in comparison with other partitions is a daunting task. Traditional search algorithms such as binary search and quadratic search do not always perform better in the arrays having arbitrary size. This paper aims to develop an algorithm that gives the optimal partition to use in the array so that it fetches the desired element in an optimal time. The basic approach to implement this algorithm is taken from binary search but done these arch by considering partitions starting from two up to the size of the array and calculating these arching time taken by each and every partition to search the desired element that is further compared with searching times taken by all other partitions. As a result, the algorithm then finds the optimal partition. The results show that the proposed algorithm performs well by means of giving the optimal partition on the basis of an input array having arbitrary size and an item to be searched. The basic difference between traditional searching algorithms and the proposed algorithm is that those algorithms are used for searching the desired element, but this algorithm finds the partition that searches the desired element in minimum time which makes this algorithm a generalized version of all partition searching algorithms such as linear search, binary search, and quadratic search. Moreover,this algorithm can be used as a preprocessing step for finding optimal partition and then apply searching algorithm using that partition in order to search the desired element in minimum time. Overall, the conclusion is that the optimization concept applied in this work allows finding the most favorable partition for searching an element in the array. This work can provide beneficial guidance for using search algorithms correctly in actual search space.

Full Text
Paper version not known

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call

Disclaimer: All third-party content on this website/platform is and will remain the property of their respective owners and is provided on "as is" basis without any warranties, express or implied. Use of third-party content does not indicate any affiliation, sponsorship with or endorsement by them. Any references to third-party content is to identify the corresponding services and shall be considered fair use under The CopyrightLaw.