-
-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug spotting #55
Comments
Some Bugs in Linear Search and Interpolation Search:
|
Your reported bugs have been forwarded to the concerned team. Thanks for reporting. |
@pragatipal, kindly solve this bug. |
Okay I'd fix it
…On Sat, 28 Nov 2020, 11:50 Abhijit Tripathy, ***@***.***> wrote:
Some Bugs in Linear Search and Interpolation Search:
1. In Linear Search If we find our searched elements then we need to
break the loop, no further traversing required, same with Interpolation
Search.
2. In Interpolation search the condition is wrong while low <= high
and array[low] <= array[high] it should be while low <= high and x >=
array[low] and x <= array[high]:
@pragatipal <https://github.com/pragatipal>, kindly solve this bug.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<https://github.com/Abhijit2505/eduAlgo/issues/55#issuecomment-735045967>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQ6RDDJO2RFYUMBJZ2HG2OLSSCJCDANCNFSM4UEKYTWA>
.
|
In line no. 448 of sort.py. return statement is missing in quick sort. |
I have the following code: from edualgo import algorithms as al
ping = al.search_algorithms()
arr = [10, 9, 4, 5, 7, 8]
ping.linear_search(arr, 5, True) The script is saved as
As you can see, I am trying to save the output in a file called
However if I remove the Please have a look into this. |
Hey @smv1999 , True is passed as a parameter for the console hint methods as that method contains few characters used in the formatting of the console output, those characters need to be encoded into UTF-8 in order to get printed into a text file. Moreover, the hint methods are designed for the console purpose only and the similar text methods will be added in our next update where you don't have to explicitly add |
No software package can be free of bugs practically, we would like you to point out the bugs you see in the package and create an issue first describing the bug.
You can also point the bugs out as a reply to this issue.
The text was updated successfully, but these errors were encountered: