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


Please Help Members By Posting Answers For Below Questions

Name the sections present in data division.

696


HOw can I get the negative sign while deduct high value from low value

1781


What is Pic 9v99 Indicates in COBOL?

716


What is the compute verb? How is it used?

651


Describe the cobol database components?

672






How many sections are there in data division in COBOL?

675


Write some characteristics of cobol as means of business language.

611


How do you get the data to code the BMS macro?

1470


What is length is cobol?

641


What are different data types in cobol?

683


which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad

1017


How do you differentiate between cobol and cobol-ii?

646


what are decleratives in cobol?

1824


) how do u code after getting data?

1578


What is rmode(any) ?

676