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 / gianni

sorry, the reduced formula should have been

n(1-p/2)+p/2

I forgot a space between the "to" and the "n"

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write an algorithm to show various operations on ordered list and arrays

971


What is sorting and its types?

1157


which is the simplest file structure? (Sequential, indexed, random)

1325


How do you find the number of comparisons in bubble sort?

945


how to delete first node from singly linked list?

1228


What is declaring array?

947


What is the difference between hashmap and linkedhashmap?

985


What is a data structure definition?

1001


Is hashmap keyset ordered?

1064


Differentiate between singly and doubly linked lists?

1047


What is a string array?

981


What are the advantages of linked list?

867


What is the difference between arraylist and linkedlist?

1050


What are the different types of data structures?

1096


How can you implement a stack?

1121