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

Name the divisions, which are available in a cobol program?

1239


Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning

1102


Program A (Normal COBBAT) calling a B Program (DB2COBOL, COBBATDB which is using a VSAM file. its a dynamic call. How we will handle VSAM file decleration in our from JCL from where we are running A PGM. And should we have PLAN for A pGM also. if possible can some one post a sample JCL. Thanks for help in advance.

5756


What is the difference between PIC 9.99 and 9v99 in COBOL?

1338


) How do u handle errors in BMS macro

2059


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

1193


how to refer the data field?

2284


How can we find that module can be called – whether DYNAMICALLY or STATICALLY?

1241


Can you please let me know the centre name of INS certification in Kolkata.

2249


What is a scope terminator give example?

1118


How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?

1209


IF I mention stop run in CICS what happens?

2382


how can i see junk values in dclgen or in hostvariable of comp ?

3005


how to access the file from prodution from changeman tool and to submit a file to production

7556


Define static linking and dynamic linking.

1203