What is binary search?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
Which of the following characters is NOT valid in column 7? a. - b. \ c. * d. # e. $
HOW WE WILL SORT THE ARRAY WHICH IS GOING TO USE FOR SEARCH ALL?
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.
How do we get current date from system with century?
Which mode is used to operate the sequential file?
how can u redefine picx(10) with pic 9(6).
Difference between file status codes 02 and 22.... since both are for duplicate key detection.
In an EVALUATE statement, can I give a complex condition on a when clause?
how can you identify wheather the program is using search or search all in the cobol program?
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
What is perform what is varying?