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
If you are an engineer working for a state highway department with the responsibility for overseeing and regulating construction
Nimfa-mama [501]

Yes it is a conflict of interest to leave the state and accept a position with a construction company that you formerly handled as a government relations manager.

<h3>What is a Conflict of Interest?</h3>

A conflict of interest occurs when an person's interests – family, friendships, financial, or social elements – could compromise his or her judgment, or actions in the workplace. Government agencies take disputes of interest so seriously that they are handled.

While it is not always feasible to eradicate conflicts of interest, the frequency and gravity of such situations may be lessened through comfort.

To learn more about Conflict of Interest visit the link

brainly.com/question/15544718

#SPJ4

8 0
1 year ago
When making additional business decisions management should consider?
Delvig [45]
Maybe how long you’re willing to be committed to that certain job or your goals in life so they are able to take you seriously.

This is just a guess btw but I hope this gave you an idea. :)
8 0
3 years ago
Suppose a state lottery prize of $8 million is to be paid in 5 payments of $1,600,000 each at the end of each of the next 5 year
slavikrds [6]

Answer:

The answer is $5767641.92

Explanation:

PV of an Annuity = C x [ (1 – (1+i)-n) / i ]

PV of an Annuity = $1,600,000  x [ (1 – (1+0.12)-5) /0.12 ] = $5767641.92

The present value of the prize is $5767641.92

7 0
3 years ago
Sophie is highly concerned about what others think of her. She is extremely careful about freely displaying her feelings and opi
antiseptic1488 [7]

Answer:

The correct answer is letter "C": high on self-monitoring.

Explanation:

American psychologist Mark Snyder proposed the self-monitoring scale to explain how much people measure their behavior and affective demonstrations in front of others. Self-monitoring is the ability individuals have to evaluate their behavior to provide a good impression to others.

Thus, Sophie would score high in a self-monitoring test.

4 0
3 years ago
A company incurs costs of $38 per unit ($27 variable and $11 fixed) to make a product that normally sells for $56. A wholesaler
Vladimir79 [104]

Answer:

It should accept the special order at the price of $36 as the total marginal cost will be $28.5 (27 variable cost + 1.15 shipping cost).

Explanation:

Special orders are accepted only if marginal revenue increases the marginal cost. Marginal cost is the total cost incurred to fulfill any order.

In the given scenario, since the Company already has adequate capacity and it will not incur any additional fixed cost, therefore the order can be accepted by taking variable cost in to consideration.

Marginal Revenue               36

Less: Marginal Cost

Variable Cost                      (27)

Shipping Cost                   <u> (1.15)</u>

Total Profit from Order   <u> 7.85</u>

4 0
3 years ago
Other questions:
  • Employees in engineering and marketing divisions often disagree with each other about how to achieve targets mainly because they
    14·1 answer
  • Carla Vista Choice sells natural supplements to customers with an unconditional sales return if they are not satisfied. The sale
    13·1 answer
  • Accepting the kind of criticism that can help you grow is a trait of people with
    6·1 answer
  • Zaira, a registered nurse, is tired of working long hours at the hospital and is looking for a different job in her field. What
    14·1 answer
  • Flagg records adjusting entries at its December 31 year-end. At December 31, employees had earned $12,000 of unpaid and unrecord
    11·1 answer
  • Good Y is a normal good. If the average income of those who buy good Y rises, the _____________ curve for good Y will shift ____
    8·1 answer
  • Spencer wants to work in a field that relates to alternative energy sources. His research suggests these careers (see list below
    10·1 answer
  • Are the following statements true or false? Explain in each case.
    5·1 answer
  • Someone who is young, lacks funds, and really wants to gain technical skills while serving his or her nation should consider
    10·1 answer
  • When workers join unions and elect representatives to negotiate with their employers, this is referred to as
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!