Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

question on binary search

Status
Not open for further replies.

anatazi

Programmer
Jun 24, 2002
33
0
0
US
Hi all,
Which version of bianry search is better? the forgetful version or the one that terminates as soon as the value is found.
Also , can anyone explain to me how comb sort works?
Thanks,
 
Don't really know what you mean by the 'forgetful' version. In a binary search, all the items are assumed to be in some sort of order. Then it is just a matter of dividing the blocks into two until the item is found.

comb sort is new to me. Never heard of this one before. Do you have a URL for it?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top