What is the difference between a binary search and a
sequential search?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you understand by psb and acb?

661


What is the LINKAGE SECTION used in COBOL?

887


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?

1804


Can we change the password using ALTER? anyone tried and changed?

1547


How do we get current date from system with century in COBOL?

805






What is the compute verb? How is it used?

659


What is the difference between PIC 9.99 and 9v99 in COBOL?

732


What is the Purpose of Pointer in the string?

641


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.

2008


Whats the difference between search & search ALL?

5264


What is Pic 9v99 Indicates in COBOL?

725


Why would you use find and get rather than to obtain?

683


What are the pertinent COBOL commands?

2622


A table has two indexes defined. Which one will be used by the SEARCH?

757


How are the next sentence and continue different from each other?

765