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
he following labor standards have been established for a particular product: Standard labor-hours per unit of output 9.0 hours S
Arisa [49]

Answer:

Direct labor rate variance= $2,430 favorable.

Explanation:

Giving the following information:

Standard labor rate $ 15.10 per hour

Actual hours worked 8,100 hours

Actual total labor cost $ 119,880

To calculate the direct labor rate variance, we need to use the following formula:

Direct labor rate variance= (Standard Rate - Actual Rate)*Actual Quantity

Actual rate= 119,880/8,100= $14.8

Direct labor rate variance= (15.1 - 14.8)*8,100= $2,430 favorable.

<u>It is favorable because the actual rate for direct labor was lower than the estimated rate.</u>

4 0
3 years ago
PLEASE HELP
bonufazy [111]

Answer:

The type of savings you should make is a fixed term deposit

Explanation:

When we have unused capital and want to make it grow, it is a good alternative to earn money because, when we leave our money in a bank for a certain time, we will receive it together with an additional sum due to profitability, Our reward for leaving the money to the bank and not using it.

6 0
3 years ago
The term ____ refers to tangible choices such as - in the case of a new venture - investing in research and development for new
Verdich [7]

The answer in the space provided is real options. Real options are the choices in which are present or available in terms of opportunities in the business investments. The reason that is termed as real is because it is not considered to be financial instrument but rather as a tangible asset.

8 0
3 years ago
The tax treatment regarding the sale of existing assets that are sold for their book value results in​ ________. A. a capital ga
zepelin [54]

Answer:

C) no tax benefit or liability

Explanation:

when you sell an asset, you must determine the gain or loss on the transaction and that is calculated by ⇒ sales price - book value

If both sales price and book value are the same, no gain or loss will result. You are taxed only when you have a gain, or you get a tax benefit only if you have a loss, but when the net result is 0, nothing happens.

8 0
3 years ago
Jane and Brad both produce nuts and coffee. They each prefer to consume a diet that is half nuts and half coffee. Both have acce
vfiekz [6]
D. Bras has an absolute advantage in coffee and jane has an absolute advantage in nuts
4 0
3 years ago
Other questions:
  • Dextra Computing sells merchandise for $20,000 cash on September 30 (cost of merchandise is $12,000). The sales tax law requires
    7·1 answer
  • A car is considered to be _____.
    13·2 answers
  • You could spend four years studying at the world's best university, but you would have to keep your attendance there a secret. O
    9·1 answer
  • Holten Farm sells new tractors and pays each salesperson a commission of $1,000 for each tractor sold. During the month of Augus
    8·1 answer
  • Which of the following is a disadvantage of equity capital?
    13·1 answer
  • Jordan signed a finance agreement for her recent purchase. what is the total amount she will pay back under this agreement?
    10·2 answers
  • Question 7 of 10
    11·1 answer
  • Which form of media advertising has seen the sharpest decline in the United States over the last 15 years
    9·1 answer
  • 100 percent of your income after you re tire will probably come from social security
    15·1 answer
  • if firms are producing at a profit-maximizing level of output where the price is equal to the average total cost
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!