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 |
what will happen if pass values more than 100 using PARM parameter?
what are the error codes in cobol, db2, cics, vsam , and jcl
why do u need inspect verb?
can you please let me know if there is any walkins for COBOL/PLI/DB2/IMS/JCL in pune other than IBM and ITC infotech
Give some advantages of REDEFINES clause?
what is the size of W-REC in the following 01 W-REC 05 A PIC 9(4)V99 05 B READLINES A 10 C PIC XX 10 D PIC S9(4) 05 E OCCURS 7 PIC ZZ.ZZ 05 F OCCURS 5 10 G PIC ZZ.ZZZ99 10 H OCCURS 3 15 J PIC 9(3) 15 K PIC V99
What is JOBLIB and STEPLIB in JCL? what is the purpose of using it?
How can you display the SPOOL information ?
consider the following piece of code 01 GROUP-ITEM 05 AMOUNT-1 PIC 99V9 USAGE COMP VALUE 50 05 AMOUNT-2 PIC 9(4)V99 USAGE COMP MOVE ZERO TO GROUP-ITEM ADD 50 TO AMOUNT-1 what will be the content of AMOUNT-1? a.50 b.100 c.0 d.unpredictable
what is the difference between Plan & package
What is 88 level used for ?
what is the diff b/w select stsmt and cursor ?