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

How do you find the complexity of a selection sort?

905


Why is treeset sorted?

988


How to use appendNode() in linkedlist()?

1091


Should I use hashmap or hashtable?

882


What is link list in data structure?

903


Can treeset contain duplicates?

931


What is a pass in bubble sort?

901


What are the drawbacks of array implementation of queue?

1144


Differentiate between queue and stack.

1213


Is quicksort greedy algorithm?

1053


How can someone display singly linked list from first to last?

859


What is difference between array and string?

998


What is the minimum number of nodes that a binary tree can have?

1152


What thread means?

897


What does isempty() member method determines?

936