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

What is length is cobol?

750


What is the utilization of copybook in cobol? Could we utilize a similar copybook?

837


what are decleratives in cobol?

1903


What is rmode(any) ?

777


What is the compute verb? How is it used?

749






Difference between cobol and cobol-ii?

821


How can you get the ksds file records into your cobol program?

727


What do you understand by psb and acb?

752


i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this

1086


What is comp-1 and comp-2?

851


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

847


What is the difference between structured cobol programming and object alternativelyiented cobol?

855


how to access the file from prodution from changeman tool and to submit a file to production

6887


what happens if parmparameter passes zero bytes to the program

1753


What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?

764