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

Answer Posted / prabhjot singh

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 ?    32 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what are Hana Basics

899


What are the value tables?

562


What are th control break events in abap?

612


Explain the client concept of sap.

592


What are the data types of the external layer?

586






What are the main events of which are used for logical database?

602


A subroutine can contain nested form and endform blocks. State true or false. : abap modularization

780


What is the advantage of structures?

586


What are Table control and tab strip control in dialog programming ?

5251


What is the difference between call transaction and session method? : abap bdc

664


What is the difference between getting and get late?

593


Why do we use events and actions in web dynpro?

594


What are the various types of selection screen event?

575


What are the problems in processing batch input sessions? How is batch inputprocess different from processing online?

561


How can cluster table be created?

662