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 is abap?

608


Are you familiar with all steps for setting up a workflow?

1673


Is logo in script 1st stored as tiff format before uploading or in jpeg format?and where is that stored after uploading?

1593


What kind of financial periods exist in SAP? What is the relevant table for that?

599


What are user exits? What is involved in writing them? What precations are needed?

598






How do you find out whether a file exits on the presentation server?

563


How to create a button in selection screen ?

1486


What are the system table used in abap?

584


What is IMG in SAP?

709


How do you convert non-char field into char type fields ?

1747


What are null values? : abap data dictionary

614


What is a badi?

552


What are two methods of modifying sap standard tables? : abap data dictionary

672


What are roles and authorization objects?

1194


What is the difference between retroactive accounting period, earliest retroactive accounting period? : sap abap hr

551