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 / naresh

binary search..if the elements are not in a sorted order
then sequential search or linear search would be better.

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we put null value in hashmap?

919


How many null values are allowed in hashmap?

965


What are hash tables good for?

948


What happens in insertion sort?

960


What is array sort?

942


You want to insert a new item in a binary search tree. How would you do it?

936


How does a hashtable work?

938


Which is faster hashmap or treemap?

944


What do you mean by spanning tree?

1182


Write a Program for Reverse a linked list.

993


What is time and space complexity of bubble sort?

863


Explain the steps to insert data into a singly linked list?

919


Differentiate file structure from storage structure?

1031


Define data type and what are the types of data type?

945


What is sorting problem?

955