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
Write the code implementing the perform … varying.
Explain how to differentiate call by context by comparing it to other calls?
Can we redefine the field of x(200) to less than 200?
what is difference between cobol and cobol/400
How you can characterize tables in cobol?
How can you get the ksds file records into your cobol program?
What happens when we move a comp-3 field to an edited (say z (9). Zz-)?
What the difference is between continue and next sentence?
What is the utilization of copybook in cobol? Could we utilize a similar copybook?
Which division and paragraphs are mandatory for a COBOL program?
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.
In COBOL programming, what is PERFORM? What is VARYING?
How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)
Explain what you understand by passing by value.
I have File 1 occurs 5 times with Employee-ID,Employee-Name,Employee-Dept (EEE and MECH). I have File 2 occurs 10 times with Employee-ID,Employee-Name,Employee-Dept (EEE,CIVIL,CHEMICAL and MECH). In FIle 1 and FIle 2 , for matching Employee-DEPT (Only MECH) , we need to move entire records from file1 to file 2. We should not use 2D array. Your help is needed here.