1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
alexandr1967 [171]
3 years ago
11

A list of n items is arranged in random order; to find a requested item, they are searched sequentially until the desired item is

found. what is the expected number of items that must be searched through, assuming that each item is equally likely to be the one requested? (questions of this nature arise in the design of computer algorithms.)
Business
1 answer:
kompoz [17]3 years ago
6 0
<span>n/2 = average number of items to search. Or more precisely (n+1)/2 I could just assert that the answer is n/2, but instead I'll prove it. Since each item has the same probability of being searched for, I'll simulate performing n searches on a list of n items and then calculate the average length of the searches. So I'll have 1 search with a length of 1, another search looks at 2, next search is 3, and so forth and so on until I have the nth search looking at n items. The total number of items looked at for those n searches will be: 1 + 2 + 3 + 4 + ... + n Now if you want to find the sum of numbers from 1 to n, the formula turns out to be n(n+1)/2 And of course, the average will be that sum divided by n. So we have (n(n+1)/2)/n = (n+1)/2 = n/2 + 1/2 Most people will ignore that constant figure of 1/2 and simply say that if you're doing a linear search of an unsorted list, on average, you'll have to look at half of the list.</span>
You might be interested in
Alex, an American, was invited to a formal dinner by his French manager. He was not sure about the correct flatware to be used f
Darina [25.2K]

Answer: Modeling

Explanation: Alex is modeling the behavior of others on the dining table to know the right flatware to use because he isn't sure of the correct one to use.

Modeling someone's behavior means to observe their behavior and trying to imitate them.

6 0
2 years ago
Answer this question based on the following information about a company: Revenues, $20 million; costs, $15 million; assets, $30
andrezito [222]

Answer:

$60,000,000

Explanation:

Market value is simply defined as the price an asset would fetch in the marketplace, or the value that the investment community gives to a particular equity or business.

Formula for market value is given as

Company's Share × Current Market price per share.

Therefore, given that

Numbet of shares = 3,000,000

Price of share = $20

Then, MV = 3,000,000 × 20

= $60,000,000

8 0
3 years ago
Read 2 more answers
The rate card for a magazine mentioned that the one-time cost for a full-page black-and-white ad was $930. The magazine had a to
11111nata11111 [884]

Answer:

Magazine's cost per thousand (CPM) = $62

Explanation:

Given:

Cost per card = $930

Total number of cards = 15,000

Find:

Magazine's cost per thousand (CPM)

Computation:

Magazine's cost per thousand (CPM) = [Cost per card x 1,000] / Total number of cards

Magazine's cost per thousand (CPM) = [930 x 1,000] / 15,000

Magazine's cost per thousand (CPM) = 930,000 / 15,000

Magazine's cost per thousand (CPM) = $62

5 0
2 years ago
When choosing a career, you should review the to find out whether or not there will be a demand for this profession in the years
Bond [772]
This is a true fact, what is the question though?
7 0
2 years ago
Read 2 more answers
Unclearninglab.litmos.com
adell [148]

Answer:

Janine and Josh

Josh can advise Janine  of each of the following except:

Josh should tell Janine that she can only change her current plan to a 5-

star plan during the Annual Election Period.

Explanation:

The Special Election Period (SEP) for the 5-star Medicare Plan lasts one week, that is, between Nov. 30 and Dec. 8.  However, there is an Annual Enrollment Period (AEP) that lasts from October 15th to December 7th.  During the annual enrollment period, any plan holder can change her Medicare plan, depending on its availability in her area.

3 0
2 years ago
Other questions:
  • Which of the following organizational forces addresses the values of an individual?
    10·1 answer
  • Free-market economies have _____ .
    14·2 answers
  • Suppose that you just purchased 150 shares of XYZ stock for $60 per share. a. If the initial margin requirement is 71.00%, how m
    9·1 answer
  • Which of the following reflects the order of operations?
    6·2 answers
  • An advantage of magazine advertising is that:
    14·2 answers
  • The _____ is the most ambitious global trade agreement ever negotiated; the agreement has reduced tariffs by one-third worldwide
    13·1 answer
  • Jent Corp. purchased bonds at a discount of $10,000. Subsequently, Jent sold these bonds at a premium of $14,000. During the per
    9·1 answer
  • The following amounts were reported by Burke Company before adjusting its immaterial overapplied manufacturing overhead of $8,00
    8·1 answer
  • Fun fact: The average person walks past a murderer 36 times in their life It's a fun fact because they didn't kill you.
    8·2 answers
  • I attached a pic of my question, pls help.
    8·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!