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 various events associated with screen programming?

704


Can any tell me ECC 5.0, ECC 6.0 Released year? and difference between them?

1986


What is buffering in abap?

647


What is hotspot?

933


In BDC, data transfer is done success in foreground mode but if we done the same in background mode it shows errors. What is the reason?

992






What are the events in ABAP language?

622


What is the significance of delivery class? : abap data dictionary

583


How do you find if a logical database exists for your program requrements?

615


Explain what are the various types of selection screen event?

573


What is the BAPI_CUSTMATINFO_GETDETAILM used for? what is the input and output of this bapi.

2889


Hat are the different types of mode (run code) in call transaction method?

587


What is the table buffer?

584


Explain what are the events used in interactive reports?

504


What is the difference between a structure and an append structure?

551


What is step-loop?

679