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

How many sorting are there in data structure?

835


Is there any difference between int[] a and int a[]?

1068


Differentiate between iterator and listiterator.

957


Is list same as array?

774


What are the tasks performed during inorder traversal?

906


What do you mean by tree edge?

906


What is the difference between null and void?

898


What are the difference between a stack and a queue?

908


What actions are performed when a function returns?

859


Which is faster list or set?

825


What is list and its types?

835


What are the different types of data structures explain briefly?

991


Tell me why can't constant values be used to define an array's initial size

876


Can you use Bubble Sort To sort the number of elements.

822


Are duplicates allowed in list?

871