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

  What suggestions do you have for improvement

How did the survey you critiqued in Exercise deal with nonresponse? In your opinion, did the investigators adequately address the problems of nonresponse?

  Assuming that the salaries of production managers with over

a sample of 9 production managers with over 15 years of experience has an average salary of 71000 and a sample standard

  Difference between mean plate counts of the two observers

Give a 99% confidence interval for the difference between the mean plate counts of the two observers. Do you believe that there is a difference? Why?

  Explain company continue to advertise during super bowls

TV ads. A start-up company is about to market a new computer printer. It decides to gamble by running commercials during the Super Bowl.

  Mailed questionnaire or telephone interview

In the following situations, decide whether you would use a personal interview, observation, mailed questionnaire or telephone interview. Give your reasons.

  Amount of concentration in chemicals

Chandra has 5 liters of a 24% solution of sodium hydroxide in a container. What is the amount and concentration of sodium hydroxide solution she must add to this in order to end up with 8 liters of 27% solution?

  Describe pricing strategies that permit firms

Question: Describe pricing strategies that permit firms to extract additional surplus from consumers- including price discrimination, two- part pricing, block pricing, and commodity bundling- and explain the conditions needed for each of these str..

  Determine the prediction interval for the calculus

Determine the 90% prediction interval for the calculus final exam score for an entering freshman who scored 70 on the math proficiency test and 500 on the quantitative portion of the SAT.

  What is the approximate sample size

Which would you use as the point estimate for the average number of days absent for all the firm's employees - What null and alternative hypotheses would be appropriate in evaluating this statement made by the commissioner?

  Mean life expectancy

The U.S. Center for Disease Control reports that the mean life expectancy was 47.6 years for whites born in 1900 and 33.0 years for nonwhites. Suppose that you randomly survey death records for people born in 1900 in a certain county.

  Asbestos exposure-death from chronic obstructive pulmonary

Many investigaters have studied the relationship between asbestos exposure and death from chronic obstructive pulmonary disease (COPD)

  Uniform distribution on four points

Let (X,Y) have uniform distribution on the four points (-1,0), (0,1), (0,-1), (1,0). Show that X and Y are uncorrelated but not independent.

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