What is the difference between a binary search and a
sequential search?
Answers were Sorted based on User's Feedback
Answer / anil prajapati
in cobol Binay search is referred as search all , record
should be in sorted order but sequential search is termed
as search in sequential search not required that record
should be sorted order
| Is This Answer Correct ? | 7 Yes | 2 No |
Answer / 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 |
Answer / sharath
Binary search
1)It is for search all.
2)access is faster.
3)sort order is either ascending or descending.
Sequential search
1)It is for linear search
2)access is slow
3)only ascending order
| Is This Answer Correct ? | 2 Yes | 0 No |
Which Search verb is equivalent to PERFORM…VARYING?
What are different file OPEN modes available in COBOL?
what is difference between cobol and cobol/400
How would the number +1234 be stored if a PIC clause of PICTUREs9(4) comp-3 were used?
wht r the advantages of 77 level number ?
What is the LINKAGE SECTION used for?
whats the difference between search and search all?
what is S04E error in jcl?
11 Answers IBM, L&T,
Define in-line perform?
What is rmode(any) ?
What are all the divisions of a COBOL program?
If my file contains 100,000 records and job abended at 55,000th records processing then how can i restart job from that record onward by ignoring that record. I can not edit the file as file size is big and it is getting browse substituted?