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 needed in a
sequential search to determine the position of an element in
an array of 100 elements, if the elements are ordered from
largest to smallest?

Answer Posted / ruchi baghel

it require n comparison where n=position of the element


if element is on 50th position
we just require 50 comparison bcz it is sequential search
one by one

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is stack in data structure with the example?

850


Can a tree be empty?

888


Difference between arrays and linked list?

949


What is data algorithm?

993


Which sorting algorithm is best for large data?

883


What is selection sort with example?

982


What is complete binary tree in data structure?

982


Is any implicit arguments are passed to a function when it is called?

1018


Write the importance of hashing?

1030


Differentiate between singly and doubly linked lists?

993


What are the tasks performed during inorder traversal?

970


Is a list an array?

846


Can treeset contain duplicates?

932


Which of the collections allows null as the key?

878


Is treeset thread safe?

917