what is the difference b/w linear search and binary search?
(how can these search)

Answer Posted / greeshma and arya

time complexity of linear search is O[n] whereas that of binary search is O[logn].therefore binary search is faster than linear search.

Is This Answer Correct ?    23 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is off cycle payroll run

1782


What are the function modules used in f4 help?

639


What is an interactive report?

617


What is a matchcode?

591


What are datasets in abap?

672






identify valid statement when coding a field exit ? a) submit RSCA101X b)MESSAGE E101 C)MESSAGE I101 d)BREASK-POINT

1913


how to Implement a BADI in which it restricts the access when purchase order is created against contract using definition ME_PURCHDOC_POSTED. please tell me the answers if any one knows. thanks in advance. :ravikiran

2040


could anyone tell me what r real time questions been asked in interviews?i am in urgent need..thanks in advance

1441


How do you send files to the legacy systems from sap and vice versa? How does one know that the legacy files have come on to the sap server you are working on? : abap bdc

562


What is the differences between structure and table in data dictionary in abap?

580


Normally how many and what files get created when a transaction program is written? what is the XXXXXTOP program?

646


What is the difference between a structure and a table? : abap data dictionary

610


foreign key enforcement?

1620


What are the basic components of dialog program?

692


What are the differences between a database index and a match code?

596