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 |
How can you pass values from COBOL program to non-COBOL programs?
how to remove leading spaces and zeroes in a cobol variable.is there any easy way to do it
how to access vsam files in cobol and how to differentiate that this is ESDS file
Can we access the a[0] in the array ?
perform I from 0 by 1 until I=5?How maney times it will executes
How do define Dymanic array in cobol how do u define single demensional arry and multidymensional arry in ur cobol.
What is Comm?
2 Answers IBM, Kemper Corporation,
why occurs clause not mentioned in 01 level
6 Answers HCL, NIIT, TCS, Tesco,
how can u pass the values into db2 values from cobol ?
What is the difference between goback, stop run and exit program in cobol?
what is the difference between occurs and occurs depending on? i dont think so there is the difference in storage..then why we should use occurs depending on?
input:-AABBCCDDEFGHIIJ output:- ABCDEFGHIJ Here in input we hav the duplicate characters i.e repeating characters.SO we should eliminate the duplicate characters and should display the output in ascending order.