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?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.