What is the expected number of items looked at

Assignment Help Basic Statistics
Reference no: EM131824464

In computer science, it often occurs that items must be located within a list. How the items are stored in the list affects how long it takes to locate the items.

a) Suppose n items are stored in random order. To find a requested item, the items are searched sequentially until that item is found (assuming the requested item is on the list, of course). Let X be the number of items in the list that must be accessed (looked at) until the requested item is found. What is E(X)?

b) Suppose that 255 items are stored in a list in order and that we can access any element in the list. Now a binary search can be used to locate the requested item. We can look in the middle location, and if the item is not there, we will know if it is to the left or the right, etc. Now what is the expected number of items looked at? (Compare this with the result from part a) when n = 255.)

Reference no: EM131824464

Questions Cloud

Analyze the importance of network architecture to security : Analyze the importance of network architecture to security operations. Apply information security standards to real-world implementation.
What is the expected incremental cost : Reef Office Supplies is interested in estimating the cost involved in hiring new employees. What is the expected incremental cost
How does the media and use of video technology impact : How does the media and use of video technology impact the public's perception of police use of force?
How much can you withdraw each year during retirement : If you plan as if you will live forever and you wish to maintain constant annual purchasing power during retirement, how much can you withdraw each year during
What is the expected number of items looked at : Now what is the expected number of items looked at? (Compare this with the result from part a) when n = 255.)
Develop a reasonable retirement plan for the client : Develop a reasonable retirement plan for the client. Specifically, describe a well-reasoned savings plan that will meet the client's goals. In doing so
Which types of cars China imports : Let's think a little more about the Work It Out problem on the next page. If quality weren't held constant, what would you expect to happen to the additional.
Denote net winnings : Let X denote your net winnings (negative for losings) in a single play of this game. Determine E(X) and Var(X).
Identify suppliers and input for each process : Identify suppliers and input for each process. Identify outcomes and customers for each process. List key stages in each process.

Reviews

Write a Review

Basic Statistics Questions & Answers

  Statistics-probability assignment

MATH1550H: Assignment:  Question:  A word is selected at random from the following poem of Persian poet and mathematician Omar Khayyam (1048-1131), translated by English poet Edward Fitzgerald (1808-1883). Find the expected value of the length of th..

  What is the least number

MATH1550H: Assignment:  Question:     what is the least number of applicants that should be interviewed so as to have at least 50% chance of finding one such secretary?

  Determine the value of k

MATH1550H: Assignment:  Question:     Experience shows that X, the number of customers entering a post office during any period of time t, is a random variable the probability mass function of which is of the form

  What is the probability

MATH1550H: Assignment:Questions: (Genetics) What is the probability that at most two of the offspring are aa?

  Binomial distributions

MATH1550H: Assignment:  Questions:  Let’s assume the department of Mathematics of Trent University has 11 faculty members. For i = 0; 1; 2; 3; find pi, the probability that i of them were born on Canada Day using the binomial distributions.

  Caselet on mcdonald’s vs. burger king - waiting time

Caselet on McDonald’s vs. Burger King - Waiting time

  Generate descriptive statistics

Generate descriptive statistics. Create a stem-and-leaf plot of the data and box plot of the data.

  Sampling variability and standard error

Problems on Sampling Variability and Standard Error and Confidence Intervals

  Estimate the population mean

Estimate the population mean

  Conduct a marketing experiment

Conduct a marketing experiment in which students are to taste one of two different brands of soft drink

  Find out the probability

Find out the probability

  Linear programming models

LINEAR PROGRAMMING MODELS

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd