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
Ainat [17]
3 years ago
14

Suppose we need to make change for n cents, and we want to use the least number of coins of denominations 1, 10, and 25 cents. C

onsider the following greedy strategy: suppose the amount left to change is m. Take the largest coin that is no more than m, subtract this coin’s value from m, and repeat. Prove that this algorithm is optimal, or give a counterexample if it is not.
Mathematics
1 answer:
frutty [35]3 years ago
8 0

Answer:

Explained

Step-by-step explanation:

This algorithm does not always give the optimal solution.  There is an alternate method as well.

Consider we have to make change for 30 cents, using the least number of coins of denominations 1,10 and 25 cents.According to the given strategy, we first take a 25 cents coin and subtract it from 30 cents. Now, we have to make 5 cents which we can make only from 5 one-cent coins. So, the total number of coins required is 6 according to the given greedy strategy.

But we can simply use 3 ten-cent coins to make change of 30 cents. So, this example proves that the given strategy is not an optimal one.

You might be interested in
4. Break-Even Analysis
DiKsa [7]

Answer:

x = 1178 games

Step-by-step explanation:

Let the number of games = x

Let the total cost = Tc

Let the total revenue = Tr

Given the following data;

Investment = $10,000

Cost of each game = $1.50

Selling cost = $9.99

Total cost, Tc = (Cost of each game * Number of games) + Investment

Tc = 1.50x + 10000

Total revenue, Tr = Selling cost * Number of games

Tr = 9.99x

Breakeven point is when total cost is equal to total revenue;

Tc = Tr

1.50x + 10000 = 9.99x

9.99x - 1.50x = 10000

8.49x = 10000

x = \frac {10000}{8.49}

x = 1177.86 ≈ 1178 games.

<em>Therefore, the number of games that must be sold before the business breaks even is 1178 games. </em>

4 0
3 years ago
Jay needs 19 quarts more paint for the outside of his barn than for the inside. If he uses 107 quarts in all, how many gallons o
love history [14]
Let's use q to represent the number of quarts needed.

you would have the following:

2q= 107-19
2q=88
q=44
44 is the number of quarts in a in the barn.
Now you have to divide that number by 4 to get gallons because there is 4 quarts in a gallon.
There are 11 gallons of paint.
6 0
3 years ago
GEOMETRY PROOFS!
yarga [219]

From the given figure ,

RECA is a quadrilateral

RC divides it into two parts

From the triangles , ∆REC and ∆RAC

RE = RA (Given)

angle CRE = angle CRA (Given)

RC = RC (Common side)

Therefore, ∆REC is Congruent to ∆RAC

∆REC =~ ∆RAC by SAS Property

⇛CE = CA (Congruent parts in a congruent triangles)

Hence , Proved

<em>Additional</em><em> comment</em><em>:</em><em>-</em>

SAS property:-

"The two sides and included angle of one triangle are equal to the two sides and included angle then the two triangles are Congruent and this property is called SAS Property (Side -Angle-Side)

<u>also</u><u> </u><u>read</u><u> </u><u>similar</u><u> questions</u><u>:</u> Complete this proof. Given: EC AC, DB AC, ∠A = ∠F Prove: ΔMDF ∼ ΔNCA..

brainly.com/question/16250124?referrer

Consider the proof. Given: Segment AB is parallel to line DE. Prove: AD/DC = BE/EC What is the missing statement in Step 5? A.) AC = BC B.) AC/DC = BC/EC C.) AD...

brainly.com/question/11763540?referrer

4 0
2 years ago
Read 2 more answers
Hey can someone help me out thank! :D ITS DUE TODAY PLZZZ!!!!
Pani-rosa [81]

Answer:

Hey can someone help me out thank! :D ITS DUE TODAY PLZZZ!!!!

1. Use the integer multiplication facts in their integer bubble to create six related integer division facts.

2.The quotient of any two integers (with a non zero divisor) will be a rational number. If and are integers, then - (p/q)= (---)=(----)

3. Mrs. McIntire, a seventh-grade math teacher, is grading papers. Three students gave the following responses to the same math problem: 1/-2 -(1/2) -1/2

4.On Mrs. McIntire’s answer key for the assignment, the correct answer is −0.5. Which student answer(s) is (are) correct? Explain.

Step-by-step explanation:

6 0
3 years ago
Read 2 more answers
I've tried everywhere to get this answerrrrr ill give brainliest for the correct answer mate!!
kodGreya [7K]

Answer:

What is the question?!?!?

7 0
2 years ago
Other questions:
  • lewis who is a long distance runner , runs at an average speed of 6miles per hour. three hours after lewis leaves your house , y
    6·1 answer
  • colton is playing with interlocking blocks that are each 3/4 inch tall. He makes a tower 17 blocks tall.How tall is his tower in
    15·1 answer
  • Which of the following are accepted without proof on a logical system?
    10·1 answer
  • 10x-7x=12 how to solve this
    15·2 answers
  • Math I need help wit this problem
    13·1 answer
  • When rolling a dice what is the probability that the product is even?
    15·1 answer
  • I will give brainiest to whoever answers correctly !!
    11·1 answer
  • Help plllllllzzzzzzzzzzzzzz
    9·1 answer
  • Mrs. Wilson bought 2 gallons of bubbles to pour into “bubble containers” as party favors. If she pours ⅛ of a gallon into each “
    13·1 answer
  • Please help, circle with 25 inch circumference, what would the radius be
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!