Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

State the various causes of s0c1, s0c5 and s0c7.

1027


What is the problem of ordered sequential files access?

1111


Why would you use find and get rather than to obtain?

1125


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

1453


Difference between cobol and cobol-ii?

1197


INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?

820


What is static and dynamic call in cobol?

1004


Write the code to count the sum of n natural numbers.

1145


can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

2325


A table has two indexes defined. Which one will be used by the SEARCH?

1232


how do you define single dimensional array and multidimensional array in your cobol?

1049


) what is the difference between AID and HANDLE AID?

2099


Which is not true about evaluate statement

2396


How do define dynamic array in cobol.

1087


What is difference between static and dynamic call in cobol?

1303