What is the difference between a binary search and a
sequential search?
Answer Posted / anupam
binary search is performed by calculating mid point whereas sequential search is performed by sorting all elements.prior is the faster.
| Is This Answer Correct ? | 2 Yes | 9 No |
Post New Answer View All Answers
What are the pertinent COBOL
I have a program with an Array of 5000 occurences which is being passed from 5 sub levels to the front end screen. Thess 5 programs using each 5*2 = 10 different arrays with size as 5000. This is causing the transaction to utilize more storage consupmtion. I am looking to reduce the storage consumption. As part of that initially i thought Dynamic array may solve my problem. After viewing the comments given i see its same as normal array. IS there any other way we can resolve this issue?
If you are current on the owner of a set, what is the difference between obtain next and obtain first?
input 1 input2 ouput1 output2 output 3 1 re 300 1 re 200 1 re 300 3 rc 500 1 re 200 2 rr 400 1 re 300 2 rr 400 1 rc 400 3 rc 500 1 rc 400 2 rr 700 2 rr 700 5 tt 900 5 tt 900 2 inputs r in flat file and output 1 is matched records,ouptput2 is unmatched of input1,output3 is unmatched of input2! how vl u get the output files using sequential order and to check with each and every records! let me know the procedure division ?
How to traceback if I am getting SOC7 or SOC4 abend? List down the steps
What is the difference between PIC 9.99 and PIC9v99?
what is s000 u4087 error? please give the all error codes in cobol,jcl.
What is inspect in cobol ?
How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?
In which area will you utilize 88 level items in cobol?
) How do u handle errors in BMS macro
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
how to refer the data field?
Explain how to differentiate call by context by comparing it to other calls?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?