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

How can you insert a node to the beginning of a singly linked list?

882


How do you solve a selection sort?

818


What is arrays copyof?

812


How would you check if a binary tree is BST or not ? Write a program.

854


Write an algorithm to show the postfix expression with the input given as : a b + c d +*f ? .

862


What are the different types of collections?

903


Define a relation?

884


What is adt in data structure with example?

962


Write an algorithm for inserting and deleting an element from doubly linked list?

868


What is the complexity of bubble sort?

905


Why null is allowed in hashmap?

820


What are the advantages of linked list?

758


Given an unsorted linked list, and without using a temporary buffer, write a method that will delete any duplicates from the linked list?

968


Does linked list allow duplicates?

828


What do u mean by data type?

824