Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

what is meant by binary search?

Answer Posted / kiran

Record split into 2 halfs

compare last value of 1st half and 1st value of 2nd half

ex
we have 100 numbers
if we give 58

1-50 51-100
1st half second half

it ill check the last value of 1st half it is 50 and 1st
value of 2nd half it is 51

so it ill omit 1st half contains 1-50

again 51-100 split in 2 halfs

51-75 75-100
1st half 2nd half


it ill check the last value of 1st half it is 75 and 1st
value of 2nd half it is 100

so it ill omit 2nd half contains 75-100

like that process ill continue upto we get desired element

plz correct if i m worng

Is This Answer Correct ?    9 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When is inspect verb is used in cobol?

1307


What are the cobol coding sheets?

1353


Explain the configuration section of a cobol program with examples of syntax.

1254


What is a SSRANGE and NOSSRANGE?

1525


Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?

1391


What rules are to be followed while using the corresponding options?

1122


What is an in line perform? When would you use it? Anything else you wish to say about it.

1140


How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.

4204


How to use the same COBOL program in Batch and CICS on lines? explain with an example

2434


What are the different rules to perform a Search?

1139


i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?

1379


What is inspect in cobol ?

1352


how to convert the recors form vsam file to db2 table tru file aid

3311


What is the difference between next sentence and continue in cobol programing language?

1274


How can we find that module can be called – whether DYNAMICALLY or STATICALLY?

1266