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
What are the different open modes available in cobol?
What are the different types of condition in cobol and write their forms.
how do you reference the printer file formats from cobol programs
What are 77 levels used for?
Are you comfortable in cobol or jcl?
What are the access modes of START statement?
) what is the difference between AID and HANDLE AID?
what is amode(24), amode(31), rmode(24) and rmode(any)?
What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?
What are all the divisions of a COBOL program?
Why is it necessary that file needs to be opened in I-O mode for REWRITE?
What is comp-1 and comp-2?
how do you reference the rrds file formats from cobol programs
What is an in line perform? When would you use it? Anything else you wish to say about it.
Why would you use find and get rather than to obtain?