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...

What is the average number of comparisons in a sequential
search?

Answer Posted / kalyani

Searching an element in an array, the search starts from the first element till the last element the average number of comparisons in a sequential search is (N+1)/2,where N is the size. The number of comparisons will be 1, if element is in the first position and if element is in the last position the number of comparisons will be 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 is an example of an array?

1051


What is a Queue? Explain its operation with example?

1002


How do you represent a linked list?

906


What is the default capacity of hashmap?

842


What is a directed graph?

954


How do you find a string is anagram or not?

912


Is array a data type?

858


Which interfaces are implemented by concurrentskiplistset?

865


What is the use of space complexity and time complexity?

1043


What is priority queue in data structure?

1052


Explain binary search tree?

955


Can you override methods of arraylist?

990


write an algorithm to show the procedure of insertion into a b-tree?

933


Can hashset contain null?

1033


Provide an algorithm to reverse a linked list without using recursion.

938