| | |
Recursive binary search
Please support our Python advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved |
•
•
Join Date: Mar 2009
Posts: 20
Reputation:
Solved Threads: 4
I think that you are asking for help in seeing that your function actually goes through all the steps of binary search on a list. Why don't you create a small test list and place a print statement in your code that displays the sublist that is sent back to the function at each recursive call. Since the list is small you can easily tell what the proper search path should be. If the output is what you should be seeing then it is likely that your code works.
![]() |
Similar Threads
- Recursive binary search (C)
- recursive binary search tree (C++)
- Recursive Binary Search Tree Header File (C++)
- request code for a non-recursive binary search in MIPS (Assembly)
- binary search (C)
- recursive findaverage function for Binary search tree (C)
Other Threads in the Python Forum
- Previous Thread: Final Python Project for Web Programming Class... And I'm Stuck :(
- Next Thread: Payroll Calculation
| Thread Tools | Search this Thread |
Tag cloud for Python
accessdenied apache application argv beginner book change code color dan08 dictionary dynamic edit editing enter examples excel file filename float format ftp function gui homework import inches input java keyboard lapse library line lines linux list lists loop microphone mouse movingimageswithpygame mysql newb number numbers numeric output parameters parsing path phonebook port prime program programming projects py2exe pygame pyopengl pyqt python random recursion recursive redirect remote reverse scrolledtext server session simple smtp software sprite ssh statictext string strings syntax table tennis terminal text thread threading time tkinter tlapse trick tuple tutorial ubuntu unicode unit urllib urllib2 variable windows wordgame wxpython





