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 sort does arrays sort use?

827


Can hashset contain null?

960


Why hashmap is faster than hashset?

932


We know that Arrays are objects so why cannot we write strArray.length()?

1550


What does it mean to sort an array?

887


How do you do a selection sort?

882


Why is map not a collection?

810


What is stack push?

827


Define linked list data structure.

942


How can you insert a node at the end of linked list?

824


What is the default size of an arraylist?

870


Are sets sorted?

853


How do you sort a collection in descending order?

871


Which sorting algorithm is used in arrays sort?

826


Does set allow null values?

789