Title |
binary.cpp |
URL |
http://www.cprogramming.com/source/binary.cpp |
Category |
10 |
Description |
binary search that returns a negative one if the number is not found This code does a bubble sort and then proforms the binary search |
Contact |
David Thompson
|
Added |
08-10-2002 at 01:30 p.m. |
Last Updated |
08-10-2002 at 01:32 p.m. |
|
|
|
Current Rating |
3.47058823529412 |
Rate Resource |
|
|
Number of Reviews |
22 |
|
Review this Resource
|
Reviews: |
- 1
posted at 05:21 p.m. on 09-24-2020
- 555
posted at 12:57 p.m. on 08-15-2020
- homework help science <a href="https://illustrationessay.trade">statistics homework helper</a> essay corrector <a href=https://illustrationessay.trade>illustration essay</a> college paper <a href="https://collegepaper.trade">college paper</a> college paper <a href=https://collegepaper.trade>college paper</a> online payday loans direct lenders <a href="https://samedaypaydayloansonline.bid">same day payday loans online</a> online payday loans instant approval <a href=https://samedaypaydayloansonline.bid>cash til payday loan</a> research writing <a href="https://researchwriting.stream">research essay</a> research writing <a href=https://researchwriting.stream>research papers</a> direct lender loans <a href="https://badcreditpaydayloansdirectlenders.cricket">installment loan</a> bad credit payday loans direct lenders <a href=https://badcreditpaydayloansdirectlenders.cricket>bad credit payday loans direct lenders</a> payday express <a href="https://thebestonlinepaydayloans.trade">payday loans lenders</a> the best online payday loans <a href=https://thebestonlinepaydayloans.trade>the best online payday loans</a> cash advance lenders <a href="https://cashadvancelenders.trade">cash advance lenders</a> cash advance lenders <a href=https://cashadvancelenders.trade>pay day lenders</a>
posted at 09:09 p.m. on 01-19-2018
- faxless payday loan <a href="https://paydayloan.us.org">payday loan</a> guaranteed personal loans <a href=https://paydayloan.us.org>payday loan</a>
posted at 07:15 p.m. on 01-18-2018
- write an essay for me <a href="https://essays.us.com">write an essay about your school</a> essays <a href=https://essays.us.com>essay for me</a>
posted at 09:21 p.m. on 01-17-2018
- discover loans <a href="https://cashadvanceloan.us.com">cash advance loans</a> cash advance loan <a href=https://cashadvanceloan.us.com>advance cash</a>
posted at 06:47 p.m. on 01-13-2018
- payday loan <a href="https://payday.us.com">advance cash payday loan</a> payday <a href=https://payday.us.com>payday</a>
posted at 02:06 p.m. on 01-12-2018
- car insurance <a href="https://carinsurance.us.org">aaa auto insurance quote</a> compare auto insurance quotes <a href=https://carinsurance.us.org>cheap car insurance</a>
posted at 10:55 a.m. on 12-26-2017
- webcam room <a href=https://webcamsex.us.com>live cams</a> free sex chats <a href=https://webcamsex.us.com>free webcam sex</a>
posted at 02:16 p.m. on 11-01-2017
- <a href=https://writemyessay.us.com/>write my essay</a>
posted at 08:34 a.m. on 09-10-2017
- wh0cd77828 <a href=http://sildenafilcitrate247.us.org/>cheap sildenafil</a> <a href=http://cialisonline247.us.org/>cialis coupon</a>
posted at 03:02 p.m. on 06-01-2017
- 1
posted at 12:01 p.m. on 05-27-2017
- tBafum <a href="http://frdjctzpgkmf.com/">frdjctzpgkmf</a>, [url=http://hmiixezzwpgv.com/]hmiixezzwpgv[/url], [link=http://ockucgiyczef.com/]ockucgiyczef[/link], http://yskhtuklfhkw.com/
posted at 03:07 p.m. on 12-03-2016
- 1
posted at 08:03 p.m. on 11-24-2016
- 1
posted at 09:46 p.m. on 11-23-2016
- 1
posted at 02:32 p.m. on 11-05-2016
- 1
posted at 07:06 p.m. on 09-13-2016
- SoZ1e2 <a href="http://bocjvyfobhvw.com/">bocjvyfobhvw</a>, [url=http://fqslsoqfpwvg.com/]fqslsoqfpwvg[/url], [link=http://fgrrjwjurmfx.com/]fgrrjwjurmfx[/link], http://weysemvrztry.com/
posted at 06:08 p.m. on 07-03-2016
- dYHMxH <a href="http://iszqfambucqc.com/">iszqfambucqc</a>, [url=http://lbtqwsjbgywu.com/]lbtqwsjbgywu[/url], [link=http://zrsealqxhwxb.com/]zrsealqxhwxb[/link], http://xhwkjvpjopqe.com/
posted at 03:48 p.m. on 06-05-2016
- 1
posted at 10:59 a.m. on 11-28-2014
- 1
posted at 11:25 a.m. on 06-15-2013
- It is an ok source, it could have been written better. The code needs to be changed in the do loop so there are not any more errors or crashes. (ex:
do
{
if(b > a[mid])
{
low = mid + 1;
mid = (high + low) / 2;
}
else if(b < a[mid])
{
high = mid - 1;
mid = (high + low) / 2;
}
else if(b == a[mid])
{
return mid + 1;
}
}while(low < high);
But otherwise is good.
posted at 06:25 p.m. on 02-13-2006
|
|