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
I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue
How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)
What happens when we move a comp-3 field to an edited (say z (9). Zz-)?
What is a scope terminator give example?
how we sort two input files based on a common column and giving one o/p file please send me the coding logic?
)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?
) what is the difference between AID and HANDLE AID?
Whats the difference between search & search ALL?
Write down the divisions of cobol program?
How do you get the data to code the BMS macro?
Can a Search can be done on a table with or without Index?
) How do u handle errors in BMS macro?
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
What is the difference between Global and External Variables?
What are the different open modes available in cobol?