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
During 2018, businesses may elect to immediately expense up to $__________ of qualified real property placed in service that yea
alex41 [277]

Answer:

$1 million

Explanation:

Section 179 deduction of the IRS code was enacted to help small business owners take depreciation deductions for certain assets ( capital expenditure I.e. the money spent on acquiring and maintaining fixed assets such as buildings and equipments ) in one year rather than continuous depreciation over a long period of time.

The new law increased the maximum deduction from $500,000 to $1 million.

For example: lets say you buy a computer for your office, under section 179 you can deduct the full cost of your computer in one year. This a very okay because the life span of your computer is short

5 0
3 years ago
All of the following are examples of current account transactions EXCEPT: Elimination Tool Select one answer A The United States
9966 [12]

Answer:

E

Explanation:

the current account of a country measures the value of the trade balance, transfers and the net income

the component of the current account includes

trade balance - it measures the value of the  import and export of goods and services of a country.

net income - measures the value of the income received by a country's residents less the income paid to foreigners

transfers - it includes income sent home by a country's citizens working outside the country

Asset income - measures changes in the asset income

this transaction - China purchases $10 billion of United States government securities - would be included in the capital account

7 0
3 years ago
________ often assist companies and their employees with ethical issues by formally addressing contributions to government offic
spin [16.1K]

Answer: Code of ethics

Explanation: Code of ethics refers to the set of principles that guides the professionals to conduct their activities in an ethical manner. A professional can use a code of ethics when ethical dilemma arises during his job.

It assists the organizations and its members to understand the difference between right and wrong, and helping them to make ethical decisions.

Hence from the above explanation we can conclude that the correct answer is code of ethics.

4 0
3 years ago
Summarize red lines and reverse red lining and why they are unethical lending practices
Sonbull [250]

Answer:

3 For example, redlining has been used to describe discriminatory practices by retailers, both brick-and-mortar and online. Reverse redlining is the practice of targeting neighborhoods (mostly non-white) for higher prices or lending on unfair terms such as predatory lending of subprime mortgages. A 2017 study by Federal Reserve Bank of Chicago economists found that redlining—the practice whereby banks discriminated against the inhabitants of certain neighborhoods—had a persistent adverse impact on the neighborhoods, with redlining affecting homeownership rates, home values and credit scores in 2010.

3 0
2 years ago
In business terms, what does I.T. stand for?
KiRa [710]

Answer:

D

Explanation:

Information Technology

7 0
3 years ago
Read 2 more answers
Other questions:
  • A contingency plan a. is unnecessary for organizations that face a dynamic environment. b. is developed after considering possib
    11·1 answer
  • The Web 2.0 revolution has changed the way businesses communicate with consumers and within their own organizations. Podcasts, w
    13·1 answer
  • A company that lowers its cost per unit by selling more units overall has improved what
    7·2 answers
  • A monopolist's goal is to maximize _____. marginal revenue marginal cost profits
    12·2 answers
  • On January 1, 2018, Whittington Stoves issued $820 million of its 6% bonds for $756 million. The bonds were priced to yield 8%.
    13·1 answer
  • XYZ Company recorded the following information related to their inventory accounts for 2020: January 1, 2020 December 31, 2020 D
    14·1 answer
  • A couple needs $60,000 as a down payment for a home. If they invest the $45,000 they have at 4% compounded quarterly, how long w
    7·1 answer
  • What's it called when you contact the public with unsolicited offers via a multitude of types of communication and in high frequ
    14·1 answer
  • One way that the world bank might experience an adverse selection in its own lending is if __________.
    10·1 answer
  • Karen is buying a new laptop. She is looking for a light-weight computer. The laptop she purchases is a little heavier than she
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!