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

binary search is faster
as the root has the value greater then left subtree & less
then right subtree so sorting is easier

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what are the major data structures used in the hierarchical data model?

1000


Treemap orders the elements on which field?

912


Define a tree?

987


What are the advantages of stack?

853


What is modcount in hashmap?

886


which notations are used in evaluation of arithmetic expressions using prefix and postfix forms?

1016


What do you know about the big-o notation and can you give some examples with respect to different data structures?

929


Explain what is B-tree?

1042


Define threaded binary tree. Explain its common uses

877


Explain the term base case?

915


How do you find the space complexity of a bubble sort?

833


Is array part of collection framework?

900


Explain set interface?

1085


Define dynamic data structures?

1021


What is space complexity of a program?

879