What is the difference between a binary search and a
sequential search?
Answer Posted / 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 |
Post New Answer View All Answers
I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?
Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?
Why would you use find and get rather than to obtain?
For rewrite, why is it mandatory that file needs to be opened?
Explain about different table spaces.
what is amode(24), amode(31), rmode(24) and rmode(any)?
what is the use of outrecord?
I have one ps file in which there are 3 fileds emp_no,emp_name and leave_app.this ps file information give the detail of employee which is going to apply for leave.suppose emp_no=113430,emp_name=ajay,leave_app=1 that means he is going to apply for 1 day leave.and accordingling the table in db2 will be updated means if he has that no of leave in his account then he will get dat leave and updated acc. in table(leave_balance=previous leave present in table-leave_app).Now i want to check whther the updated result is correct or not by comparing the two ps file using IEBCOMPARE or icetool so what is going to be the two ps file and how its is going to be compare.
how do you reference the printer file formats from cobol programs
What are the pertinent COBOL
how do you reference the variable block file formats from cobol programs
Why did you choose to work with ibm mainframe cobol programming?
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?
What is the difference between comp and comp-3?
What is the difference between structured cobol programming and object alternativelyiented cobol programming?