| | |
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
abrupt ansi anti approximation assignment avogadro backend basic beginner binary bluetooth calculator character code customdialog decimals dictionaries dictionary drive dynamic examples excel exe file float format ftp function gnu graphics gui heads homework http ideas import input java launcher leftmouse line linux list lists loop module mouse number numbers output parsing path pointer port prime program programming progressbar projects py2exe pygame pyqt python random recursion recursive refresh schedule scrolledtext sqlite ssh statistics stdout string strings sudokusolver sum table terminal text thread threading time tkinter tlapse tricks tuple tutorial twoup ubuntu unicode update urllib urllib2 variable wikipedia windows write wxpython xlib





