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

Answer Posted / indrani chowdhury

1.linear search is easy bt takes more time to search an
element as it compare all element sequentially...
2.elements r arranged randomly.

1. in binary search it start searching from middle, if the
searching element is not found in middle then it goes to
1/4,and vice versa..
and hence take less time than linear search.
2.elements r arranged in sorted orrder.

Is This Answer Correct ?    17 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the different functions used in sap script? What are the parameters used in each function?

616


How can we handle table control in bdc? : abap bdc

596


Why is pretty printer user in abap?

636


what is leave to TRANSACTION?

1000


5) How to rereive text elements in SF and script?

1644






What are internal tables? : abap hr

561


what are the important fields while preparing sales order,inquiry?

1902


Explain the differences between at selection-screen and at selection-screen output?

533


Explain what is runtime analysis?

565


What are null values?

598


Explain the difference between free and refresh?

584


Polymorphism real time scenario

1039


How will you define org structure in MM?

837


What is help view?

557


What are Tickets in Realtime ?

1672