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
What is the default value(s) for an initialize? What keyword will allow for an override of the default?
how do you reference the variable block file formats from cobol programs
Explain about different table spaces.
What are the different rules of SORT operation?
What are INPUT PROCEDURE and OUTPUT PROCEDURE?
how do you reference the rrds file formats from cobol programs
how we sort two input files based on a common column and giving one o/p file please send me the coding logic?
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?
Explain the configuration section of a cobol program with examples of syntax.
Write the code to count the sum of n natural numbers.
How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?
How to traceback if I am getting SOC7 or SOC4 abend? List down the steps
INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?
how to refer the data field?
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?