Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Statistics and Probability Expert

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.)

Statistics and Probability, Statistics

  • Category:- Statistics and Probability
  • Reference No.:- M92652825

Have any Question?


Related Questions in Statistics and Probability

How would i calculate this the personnel office at a large

How would I calculate this :The personnel office at a large electronics firm regularly schedules job interviews and maintains records of the interviews. From the past records, they have found that the length of a first i ...

For the pastnbsp110nbspyears a certain state

For the past 110 ?years, a certain state suffered 28 direct hits from major? (category 3 to? 5) hurricanes. Assume that this was typical and the number of hits per year follows a Poisson distribution. Complete parts? (a) ...

If we are interested in job satisfactionname a variable

If we are interested in job satisfaction. Name a variable that correlates with job satisfaction but we do not have causation. Name a variable that you believe may have a casual relationship with job satisfaction. Name a ...

Consumer product manufacturers commonly include customer

Consumer product manufacturers commonly include customer satisfaction surveys on product warranty cards that are sent back to the company. An outdoors company redesigned a popular camping tent, and it wants to know wheth ...

The everly equipment companys flange-lipping machine was

The Everly Equipment Company's flange-lipping machine was purchased 5 years ago for $70,000. It had an expected life of 10 years when it was bought and its remaining depreciation is $7,000 per year for each year of its r ...

A social psychologist recently developed a childhood

A social psychologist recently developed a childhood memories test that is intended to measure how people recall pleasant and unpleasant memories from childhood. Scores on this test range from 1 (very unpleasant) to 100 ...

Cate the wacc given the following assumptionsa

Calculate the WACC given the following assumptions: a. Company tax rate is 40%. b. Company has an outstanding bond issue with a 6-7/8 coupon, market price of 102-5/8 (percent of 100% par, in 32nds), semiannual coupon pay ...

In a sample of 12 kids their mean time on the internet on

In a sample of 12 kids, their mean time on the internet on the phone was 3.9 hours with a standard deviation of 0.7 hours. Which distribution would be most appropriate to use?

Suppose the timing device used in the mens race failed to

Suppose the timing device used in the men's race failed to activate at the start of the race and instead began to record the times seconds into the race. Consider how the competitors' times would be affected. Would the s ...

For each of the following describe1 the direction of the

For each of the following describe: 1. The direction of the relationship 2. The strength of the relationship 3. A verbal description of the relationship between the variables. r = -.96 between the craving for Taco Bell a ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As