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 binary search?

Answer Posted / sachin

Prefer when the table size is significantly large.

When the size of the table is large and it is arranged in
some sequence -either ascending or descending on search
field, then BINARY SEARCH would be the efficient method.

Table should be in sorted order of the searching argument.
There should be ASCENDING/DESCENDING Clause.
Index need not be set to 1 before SEARCH ALL.

Compare the item to be searched with the item at the
center. If it matches fine, else repeat the process with
the left or right half depending on where the item lies.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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.

4163


What are INPUT PROCEDURE and OUTPUT PROCEDURE?

1291


How can i load all the data from a file to Table (array) in cobol.How i manage the occurs clause with out reading the file.Any options avilable ? Please can any one help me it is urgent?

2577


example for sub strings ? and refernce modifications whit output pls

2315


What are the rules of the move verb?

1259


How many sections are there in data division in COBOL?

1127


Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.

2428


) How do u handle errors in BMS macro?

1952


What is the difference between PIC 9.99 and PIC9v99?

1332


How do you reference the following file formats from cobol programs?

1151


Why is it necessary that file needs to be opened in I-O mode for REWRITE?

1318


How do you get the data to code the BMS macro?

1963


what is amode(24), amode(31), rmode(24) and rmode(any)?

1136


how do you reference the esds vsam file formats from cobol programs

1205


) how do u code after getting data?

2148