What is binary search?
Answers were Sorted based on User's Feedback
Answer / sachin
Prefer when the table size is significantly large.
When the size of the table is large and it is arranged in
some sequence -either ascending or descending on search
field, then BINARY SEARCH would be the efficient method.
Table should be in sorted order of the searching argument.
There should be ASCENDING/DESCENDING Clause.
Index need not be set to 1 before SEARCH ALL.
Compare the item to be searched with the item at the
center. If it matches fine, else repeat the process with
the left or right half depending on where the item lies.
Is This Answer Correct ? | 4 Yes | 0 No |
Answer / ravi
Binary search...sequential search..must be in an sirted
order..it divides the table in to 2 parts
Is This Answer Correct ? | 2 Yes | 1 No |
Answer / vidhya
Serial search is most cost-effective up to 70 rows, If the
table has more than 70 rows then Binary search is effecient.
The table should be in ascending or descending order
Is This Answer Correct ? | 1 Yes | 0 No |
Difference between ps, esds
what are the limitations of Inline Perform?
i need a program by giving input as a abcd in any randem order but i need a output as 1234 related to abcd. i.e,. a for 1,b=2,c.....etc..
what is the difference between Plan & package
i want to use only first 100 records from a file.plz tell me how to write JCL for this(for read,copy,write operations).plz give me details of all posible JCL utilities?
How you can read the file from bottom?
How do you sort in a COBOL program? Give sort file definition, sort statement syntax and meaning.
What are the steps you go through while creating a COBOL program executable?
9(2).99 how many bytes take? Why . consider as a byte?
what happens if parmparameter passes zero bytes to the program
The disposition parameter in the jcl is share ( DISP+SHR ) and the program opens file in extend mode what will happen?
why we are using set in searchall?