What is the difference between a binary search and a
sequential search?

Answer Posted / muhammad abdul aleem

Binary Search | Sequential Search
1.Search All | 1.Search
2.Data should be in sorted | 2.Data can be in any order
order |
3. Only 1 When condition | 3. Any no. of when conditions
can be used | can be used.
4. Only '=' relational | 4. Any relational operator.
operator is used |
5. Access is faster | 5. Access is slow
6.Used for only single | 6. used for single/Multi
dimentional array | dimentional array.

Is This Answer Correct ?    124 Yes 19 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many sections are there in data division in COBOL?

892


Discuss about changing dataset name in proc.

959


What are the access modes of START statement?

940


) How do u handle errors in BMS macro?

1626


What do you understand by psb and acb?

846


what are decleratives in cobol?

2004


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

7098


What are the pertinent COBOL

2247


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

970


What is the difference between PIC 9.99 and PIC9v99?

1039


Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?

846


) how do u code after getting data?

1803


example for sub strings ? and refernce modifications whit output pls

2071


)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?

1756


Are you comfortable in cobol or jcl?

807