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 Structured COBOL Programming and Object Oriented COBOL programming?

764


I have a program with an Array of 5000 occurences which is being passed from 5 sub levels to the front end screen. Thess 5 programs using each 5*2 = 10 different arrays with size as 5000. This is causing the transaction to utilize more storage consupmtion. I am looking to reduce the storage consumption. As part of that initially i thought Dynamic array may solve my problem. After viewing the comments given i see its same as normal array. IS there any other way we can resolve this issue?

1311


What are various search techniques in cobol? Explain.

749


Which Search verb is equivalent to PERFORM…VARYING?

778


How to know whether the module is dynamical or statistical?

750






What is the LINKAGE SECTION used in COBOL?

1040


2 input fles: 2 flat files, with different number of records. both are having unique key for each record and already sorted in ascending order . match these files using unique key and in output only matching key value has to be written. please procide cobol logic

2257


Name the sections present in data division.

793


What is the difference between goback, stop run and exit program in cobol?

1085


Hi pls anybody tell me about " ANALYSIS DOCUMENT PREPARATION AND ESTIMATION OF TASK " (in real time project)."I want to update a sequential file in my project" for that purpose i need both structures i mean analysis document and estimation of task.

1785


What is inspect in cobol ?

881


Discuss about changing dataset name in proc.

839


What the difference is between continue and next sentence?

751


what happens if parmparameter passes zero bytes to the program

1753


How you can read the file from bottom?

749