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 |
WORKING-STORAGE SECTION. 01 A PIC X(3) VALUE 'ABC' 01 B PIC 9(3). PROCEDURE DIVISION. MOVE A TO B. STOP RUN. OUTPUT IS: AB3 WHY AND HOW THIS IS HAPPENING.
State the various causes of s0c1, s0c5 and s0c7.
what happens when a copybook variables are declared using include statement ?
How to remove the spaces at end of each record in the output file Via COBOL program? note: The file has a VB length
How to pass return codes from cobol to jcl?
how you read control card into array?
when SE37 SB37 and sd37 occurs how to increase the volume , primary quantity and secondary quantity?
how can we code index in an array of cobol pgm?
I have 100 records in a file.. i want to sort the records from 5 to 5o... give the syntax...
How does IDMS communicate with CICS?
i want to enter the name 'pandu' into ur table how?
1)what is the maximum limit for occurs? Eg: 01 A PIC X(10) OCCURS N TIME. What is the max value for N?