What is the difference between a binary search and a
sequential search?
Answer Posted / shailendra
binary search :
only = is valid, only one comparision os possible, search
all will be in syntex,input file will be sorted order with
the key on which basis we search.
seqential search :
many comparision is possible at the same time,
all the comparision > < = greater equal and other
comparision is possible
srted order is not req.
in syntex only search will mention
| Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
Why did you choose to work with ibm mainframe cobol programming?
i need a small 3d program using inline and outline.
please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?
What is a report item?
how to access the file from prodution from changeman tool and to submit a file to production
Give some examples of command terminators?
Which Search verb is equivalent to PERFORM…VARYING?
Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?
What is the difference between a binary search and a sequential search what are the pertinent cobol?
I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
How do you reference the fixed block file formats from cobol programs
Define cobol?
What are the access modes of START statement?
How you can read the file from bottom?