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 default value(s) for an initialize? What keyword will allow for an override of the default?

661


how do you reference the variable block file formats from cobol programs

686


Explain about different table spaces.

650


What are the different rules of SORT operation?

698


What are INPUT PROCEDURE and OUTPUT PROCEDURE?

689






how do you reference the rrds file formats from cobol programs

800


how we sort two input files based on a common column and giving one o/p file please send me the coding logic?

1653


How do you code cobol to access a parameter that has been defined in jcl? And do you code the parm parameter on the exec line in jcl?

700


Explain the configuration section of a cobol program with examples of syntax.

659


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

699


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

744


How to traceback if I am getting SOC7 or SOC4 abend? List down the steps

914


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

421


how to refer the data field?

1812


How to remove the spaces at the end of each record in the output file of variable length, via cobol program?

676