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 |
Name the sections present in data division.
a. Can the OPTIONAL clause in COBOL only be coded for input files? b. If it is coded for files opened in OUTPUT, I-O or EXTEND mode, will it give a compilation error? c. If there are no compilation errors and if such files are not coded in the JCL, will the OPEN statement run fine when these files are opened? d. How will a WRITE statement work for the above files?
We are using the searching a table which is indexed, once the key is found, how can we get the occurance at which the key was found.
What is the difference between Call and a Link?
Can printer files (having 133 characters) be of variable length?
Explain about Redefines cluse?
how to access the file from prodution from changeman tool and to submit a file to production
What is the Purpose of Pointer in the string?
example for sub strings ? and refernce modifications whit output pls
0 Answers College School Exams Tests, IBM,
how do you define single dimensional array and multidimensional array in your cobol?
What are decleratives in COBOL ?
Explain the difference between an internal and an external sort, the pros and cons, internal sort syntax etc.