Binary Search
- From: "willamette3597@xxxxxxxxx" <willamette3597@xxxxxxxxx>
- Date: 30 Oct 2005 05:11:58 -0800
Could Someone tell me Where can I get The result though the Binary
Search
eg.
max , min , mid ,want;
While ( max > min )
{
mid = (min + max )/2 ;
if ( mid > want ) max = mid + 1;
else min = mid -1 ;
Line1 :
}
Line2 :
Where can I get the correct result ? Line1 or Line2 ?
.
- Follow-Ups:
- Re: Binary Search
- From: Sandeep
- Re: Binary Search
- Prev by Date: Re: Quick questions...
- Next by Date: pls expand this macro
- Previous by thread: Re: A Simple C Code to Discuss
- Next by thread: Re: Binary Search
- Index(es):