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 / p.divya poojitha

binary search is faster than sequential searching.in
sequential searching the desired record is 4000 if u search
that record can be done with 1....4000 so it takes large
time for searching compare complexities of both searching
meathods are
binary search O(logn)
sequential search O(n)

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the two traversal strategies used in traversing a graph?

912


What is a string or array type?

762


For addition and deletion. Which one is most preferred: array list or linked list?

843


Does hashset allow duplicates?

1013


What is the best complexity of bubble sort?

848


What is the difference between hashset and treeset?

922


What is array and its types in data structure?

887


What is bubble sort and quick sort?

893


What are the operations that can be performed on a stack?

861


Who created quicksort?

925


How is a hashset implemented?

877


What is data structure and why we need it?

845


What does args stand for?

867


What member function places a new node at the end of the linked list?

1003


What are the difference between a stack and a queue?

905