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 |
Hai friends why we need to read a file before re-write a record?
How to convert bunch of words in a line to relvant ASCII values?
can we use 77 level no for Redefines?if we use give an example?
How to read the last 100 records from a COBOL file. The file contains N number of records.
Explain about level numbers?
Consider the following COBOL entries: 05 X PIC 99 VALUE 10. SUBTRACT 20 FROM X. The resultant value of X wil be
how to transfer the file from pc to mainframe??
How can you get the ksds file records into your cobol program?
How much salary you are expecting? If they ask in an interview, what we have to tell?
6 Answers Tech Mahindra, Wipro,
What is static and dynamic call in cobol?
What is the difference between comp and comp-3 usage? Explain other COBOL usage?s.
What is SET TO TRUE all about, anyway?