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

What is the difference between Call and a Link?

694


What are the various section in data division and briefly explain them.

687


How to print 10 to 1 if the input have only 10 digit number?

804


How do u write test cases?

1631


What are the pertinent COBOL

2035






How many bytes S(8) comp field occupy and its maximum value?

1624


What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?

670


What is a SSRANGE and NOSSRANGE?

812


Which division and paragraphs are mandatory for a COBOL program?

705


For rewrite, why is it mandatory that file needs to be opened?

616


I have a File that has duplicate records. I need only those records that occur more than thrice.?

8614


What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?

668


What rules are to be followed while using the corresponding options?

627


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

705


what is difference between cobol and cobol/400

21550