Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Which one is faster?
A binary search of an orderd set of elements in an array
or
a sequential search of the elements.

Answer Posted / srikanth

binary search if of order log n where as sequential search
is of order n
binary search is faster..

Is This Answer Correct ?    36 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Now you are given an array of a characters (both ASCII and Kanji) and, an index into the array. The index points to the start of some character. Now you need to write a function to do a backspace (i.e. delete the character before the given index).

930


How would you use qsort() function to sort the name stored in an array of pointers to string?

948


How many passes are required in bubble sort?

823


In rdbms, explain what is the efficient data structure used in the internal storage representation?

933


How many pointers are necessary to implement a simple linked list?

1119


What is a queue in data structure?

1011


What is the types of data structure?

1031


What is an externalizable interface?

970


What is a Breadth First Search? Give a few of its applications.

888


Explain what are the major data structures used in the rdbms?

966


Explain what is linear search?

968


What is a data structure node class?

1022


Does hashmap sort automatically?

930


What is the advantage of circular linked list?

818


What differences exist between hashmap and hashtable?

989