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
On January 1, Andrea reviews her investment portfolio and finds out that she has had a very profitable year. To offset some of h
butalik [34]

Answer:

$5,000 realized, but not recognized loss

Explanation:

Based on the above information given we were told that two years earlier She purchased some shares for the amount of $15,000 in which in order for her to offset few of her gains she sells those 100 shares of Bear Corporation for the amount of $10,000 making her to REALIZED the amount of $5,000 ($15,000-$10,000) reason been that a loss will be realized instantly in a situation were an assets is sold out for a loss.

Therefore the tax consequences to Andrea this year will be the amount of $5,000 Realized, but not recognized loss.

8 0
3 years ago
Journalize the following transactions in the accounts of Simmons Company:
Alexxx [7]

Answer:

A) March 1, received note receivable from Bynum Company

Dr Note receivable 60,000

    Cr Accounts receivable 60,000

B) March 16, received note receivable from Solo Company

Dr Note receivable 25,000

    Cr Accounts receivable 25,000

C) April 30, Bynum Company's note is dishonored

Dr Accounts receivable 60,600

     Cr Notes receivable 60,000

     Cr Interest revenue 600 ($60,000 x 6% x 2/12)

D) May 17, Solo Company's note is dishonored

Dr Accounts receivable 25,375

     Cr Notes receivable 25,000

     Cr Interest revenue 375 ($25,000 x 9% x 2/12)

E) July 29, cash is collected from Byrum Company

Dr Cash 60,900

    Cr Accounts receivable 60,600

    Cr Interest revenue 300

F) July 29, Solo Company's debt is written off

Dr Allowance for doubtful accounts  25,375

    Cr Accounts receivable 25,375  

7 0
4 years ago
Gamma Corp. is expected to pay the following dividends over the next four years: $7.50, $8.25, $15, and $1.80. Afterward, the co
Delvig [45]

Answer:

The Current price of stock $35.20

Explanation:

The computation of the current share price is shown below:

Particulars         Dividend     PVF at 14%      Present value

D1                       $ 7.50        0.877       $6.58

D2                    $8.25        0.769       $6.35

D3                    $15.00  0.675       $10.12

D4                     $1.80         0.592        $1.07

D5                    $1.87  

P4                    $18.72          0.592       $11.08

                    1.87 ÷ (14% - 4%)  

Current price of stock               $35.20

6 0
3 years ago
The income section of a budget will include your
Amiraneli [1.4K]

Answer:

savings

Explanation:

8 0
3 years ago
Read 2 more answers
Allen Construction purchased a crane 6 years ago for $130,000. They need a crane of this capacity for the next 5 years. Normal o
Korvikt [17]

Answer:

<u>For retaining of Old Machine Equipment</u>

Price of old equipment 3 yrs ago = $130,000

O & M cost per year = $35,000

Using the Cash flow approach

End of year   Cash flow 1   Old equipment

0                            $0            Initial Cash flow

1                         -$35,000     O & M cost per year

2                        -$35,000     O & M cost per year

3                        -$35,000     O & M cost per year

4                        -$35,000     O & M cost per year

5                        -$35,000     O & M cost per year

Hence, Annual worth = Initial cash flow + Annual cost

Annual worth = 0 - $35,000

Annual worth = -$35,000

<u>For buying of new equipment</u>

Cost of buying new crane = $150,000

Market value of old crane = $40,000

Time = 5 years

O & M cost per year = $8,000

Salvage value = $55,000

MARR = 20%

Using the Cash flow approach

End of year   Cash flow 1   New equipment

0                         $110,000    -$150,000 + $40,000

1                         -$8,000     O & M cost per year

2                        -$8,000     O & M cost per year

3                        -$8,000     O & M cost per year

4                        -$8,000     O & M cost per year

5                        $47,000     -$8,000 + $55,000

Annual worth = Initial cash flow + Annual cost + Salvage value

Annual worth = -$110,000(A/P 20%,5) - $8,000 + $55,000(A/P 20%,5)

Annual worth = -$110,000*(0.334) - $8,000 + $55,000*(0.134)

Annual worth = -$36,781.77 - $8,000 + $7,390.88

Annual worth = -$37,908.88

Conclusion: We should retain the old machine as it is more favorable than purchase of new equipment

5 0
3 years ago
Other questions:
  • Anything called money will be
    10·2 answers
  • Which of the following services is most likely to be equipment-based?a) the services provided in a driving schoolb) the services
    8·1 answer
  • One of the lottery tickets that you can purchase at a local store has these payoff probabilities. Payoff ($) 0 200 500 Probabili
    11·1 answer
  • Using the indirect method, the deduction from net income in calculating net cash flow from operating activities is...
    6·1 answer
  • When we watch a production of Hamlet, we know that the actors playing Gertrude and Hamlet will not actually die after being pois
    5·1 answer
  • Which of the following resources increases the net assets with donor restrictions of a nongovernmental, not-for-profit voluntary
    10·1 answer
  • The plaintiff and the defendant entered into a three-year contract in which the defendant would be the sole supplier of steel pa
    7·1 answer
  • The National Park Service's efforts to attract, maintain, and enhance relationships with customers and visitors to the park is a
    7·1 answer
  • The first step to a successful value-driven marketing strategy is to determine whom to serve with a market offering. to make thi
    8·1 answer
  • dina and charles are married, under the age of 65, and have two children under the age of 18. charles works full time and earns
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!