Description
Description of the problem
The codebase is very extensive and well-designed; however, it does not seem to include searching algorithms for linear data structures as far as I could observe. I believe addition of searching algorithms would be a good improvement to the project. Certain algorithms I have thought can be included are:
Linear Search(array, number)
Binary Search(array, number, unsorted_input=False)
Jump Search(array, number, unsorted_input=False)
The above mentioned declarations are suggested, where the parameter unsorted_input
can be used to explicitly learn from the user whether or not the input array
is sorted beforehand. If True
, we must first sort the array within the search function, then search.
Comments
With certain modifications, we may even allow to return the sorted array along with search result, but I have no idea on how that will be done at the moment.
PS: I am currently working on the Radix Sort issue that is already open, and after that reaches a satisfactory stage, I wish to go on with this one. Discussions and suggestions are welcome.