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 |
given the following piece of code: CALL SUB-PGM USING A, B, C. CALL SUB-PGM USING A, C, C. (a) Both CALL statements will always produce same result. (d) Both CALL statements may produce different result. (c) Compile-time error because SUB-PGM is a dataname. (d) Compile-time error because A, B, C are used twice.
What is the difference between static call & Dynamic call?
What are ISOLATION LEVELS? Where do we need to specify them in compiling JCL (Exactly which statement and what is syntax for it)?
I need to compare two VSAM files, both having 'number' as key. If there is a matching record, write the data into another VSAM file. How will it be possible.
what is the difference between external and global variables?
What are the different ways to run a COBOL DB2 program using JCL?
What are the different types of condition in cobol and write their forms.
which is better either static call or dynamic call? and why?
When is a scope terminator mandatory?
Which of the following files can be OPENed in all the 4 modes? The four modes are INPUT, I-O, OUTPUT and EXTEND. (a) INDEXED (b) RELATIVE (c) SEQUENTIAL (d) All of the above
What is the difference between PIC 9.99 and 9v99 in COBOL?
0 Answers SwanSoft Technologies,
What is the default value of DISP parameter?