What is the difference between a binary search and a
sequential search?

Answer Posted / guest

Binary search is search all. sequential search is the
linear serach.

Example for Search all: File contains 100 records. supose
if u r searching for 75 th record, first entire file
divided into two parts, it will check , whether record is
in first half or second.. like that file ds divded into
diffrent parts

sequential serach: if the file contains 100 records, spose
if u r looking for 75th record, it will start serach from
first record...

Is This Answer Correct ?    98 Yes 12 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which is not true about evaluate statement

1564


what is the difference between COBOL2 AND COBOL390?

2443


What is the problem of ordered sequential files access?

692


What kind of error is trapped by on size error option?

735


i made it to stage 3 of an interview process wednessday they will quiz my knowledge again face to face for an analyst role recruiter said it will be based on Business requirements system is cobol and good ideas what they might ask etc

2096






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

705


How do get the result of your program directly on your pc?

1874


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.

1693


In COBOL programming, what is PERFORM? What is VARYING?

666


Why would you use find and get rather than to obtain?

677


What is an in line perform? When would you use it? Anything else you wish to say about it.

639


Are you comfortable in cobol or jcl?

633


Define static linking and dynamic linking.

658


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

688


What is the local-storage section?

675