What is binary search?

Answers were Sorted based on User's Feedback



What is binary search?..

Answer / 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

What is binary search?..

Answer / ravi

Binary search...sequential search..must be in an sirted
order..it divides the table in to 2 parts

Is This Answer Correct ?    2 Yes 1 No

What is binary search?..

Answer / vidhya

Serial search is most cost-effective up to 70 rows, If the
table has more than 70 rows then Binary search is effecient.
The table should be in ascending or descending order

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More COBOL Interview Questions

Which of the following characters is NOT valid in column 7? a. - b. \ c. * d. # e. $

4 Answers  


HOW WE WILL SORT THE ARRAY WHICH IS GOING TO USE FOR SEARCH ALL?

2 Answers   Cap Gemini,


Re: 01 NAME1 PIC X(13) VALUE "COBOL PROGRAMMING". 01 NAME2 PIC X(13). now I want to display the value of NAME1 in reverse order i.e value should be displayed as "GNIMMARGORP LOBOC" HOW can I do that ??? please let me know if any one knows it.

2 Answers   IBM,


How do we get current date from system with century?

2 Answers  


Which mode is used to operate the sequential file?

0 Answers  






how can u redefine picx(10) with pic 9(6).

3 Answers   TCS,


Difference between file status codes 02 and 22.... since both are for duplicate key detection.

1 Answers  


In an EVALUATE statement, can I give a complex condition on a when clause?

2 Answers  


how can you identify wheather the program is using search or search all in the cobol program?

5 Answers   iGate,


How to resolve the soc4 & soc7 other than following answers. Soc4 can resolved using mispleed dd name and dd name is not matching with file and soc7 check the sysdump and copy the offest address then correct it in the program.

10 Answers   ADP, Amdocs, Cap Gemini, Keane India Ltd, Super Value, TCS,


how to crack cts interview apps? NOVEMBER 21 2010

2 Answers   CTS,


What is perform what is varying?

0 Answers  


Categories