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

What is the need for path compression?

1081


Tell us the difference between merge and quick sort. Which one would you prefer and why?

1011


How to increase stack limit in w3wp.exe?

1044


Given M x N matrix with sorted elements row wise and column wise, find elements?

971


Why do we Use a Multidimensional Array?

884


Is list same as array?

822


How treemap orders the elements if the key is a string?

902


Define graph traversals?

996


What are arrays give example?

899


What do you mean by linear probing?

1048


Define 2-3-4 tree?

886


What are different types of algorithms?

886


Is unordered_map a hash table?

852


What happens if we put a key object in a hashmap which exists?

940


What thread means?

888