What is the difference between SEARCH and SEARCH ALL? What
is more efficient?
Answer Posted / ramana
most of the pionts are covered so far, I would like to add
one more point here,
In search all to get expected results array must be in a
specified order, but search all also works for an unsorted
array but may or may not give the expected results as it
keeps on divide.
Ex1: searching for 10. ** Array is not in order**
40
30
34
70
10
90
Iteration 1: it selects the second half 70,10,90
Iteration 2: It selects 10 n says the value is found.
Ex2: searching for te same 10.
40
10
34
70
30
90
Its follows the same process as in 1st case, but here 10 is
not there in the second iteration so it says value not
found, but it is present in the first half, this happens
because aray is not sorted.
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
State the various causes of s0c1, s0c5 and s0c7.
What is the problem of ordered sequential files access?
Why would you use find and get rather than to obtain?
which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad
Difference between cobol and cobol-ii?
INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?
What is static and dynamic call in cobol?
Write the code to count the sum of n natural numbers.
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
A table has two indexes defined. Which one will be used by the SEARCH?
how do you define single dimensional array and multidimensional array in your cobol?
) what is the difference between AID and HANDLE AID?
Which is not true about evaluate statement
How do define dynamic array in cobol.
What is difference between static and dynamic call in cobol?