Completing the square word problem

In summary: So my guess was correct: I said the description sounded like it allows a binary tree, and your diagram is, indeed, an example of a binary tree. However, my original remarks remain: there are numerous different binary trees on n nodes, and different trees can have different maintenance costs (even for the same populations at the cities), so how can we be sure of achieving a non-negative net revenue? What prevents us...from getting stuck in a cycle of negative net revenue?
  • #1
Terrell
317
26

Homework Statement


i've attached an image of the given problem. please see below

Homework Equations


tax revenue - maintenance cost = net revenue. net revenue can never be negative

The Attempt at a Solution


i've tried setting (p1)^2 for the revenue of a random city,
(p2)^2 for the revenue of the city that the other connects to,
then (p1)(p2) for the maintenance cost of the road that connects the two.

revenue: (p1)^2 + (p2)^2 + (p3)^2 + ... + (pn)^2
maintenance cost: (p1)(p2) + (p1)(p3) + ... (i guess this depends on how the distribution of maintenance cost will be like)

we can also deduce from the queen's decree that tree graphs cannot connect with loops because it violates the "there can only be one way from one city to any other city" law.

i'm having difficulty generalizing because the problem asks for the maximum number of cities REGARDLESS of population and road design. (road design is really vague for me).
 

Attachments

  • completing the square hard.png
    completing the square hard.png
    10.5 KB · Views: 881
Physics news on Phys.org
  • #2
Terrell said:

Homework Statement


i've attached an image of the given problem. please see below

Homework Equations


tax revenue - maintenance cost = net revenue. net revenue can never be negative

The Attempt at a Solution


i've tried setting (p1)^2 for the revenue of a random city,
(p2)^2 for the revenue of the city that the other connects to,
then (p1)(p2) for the maintenance cost of the road that connects the two.

revenue: (p1)^2 + (p2)^2 + (p3)^2 + ... + (pn)^2
maintenance cost: (p1)(p2) + (p1)(p3) + ... (i guess this depends on how the distribution of maintenance cost will be like)

we can also deduce from the queen's decree that tree graphs cannot connect with loops because it violates the "there can only be one way from one city to any other city" law.

i'm having difficulty generalizing because the problem asks for the maximum number of cities REGARDLESS of population and road design. (road design is really vague for me).
Some people may wish to see the problem statement made easily readable.

completing-the-square-hard-png.109039.png
 
Last edited:
  • Like
Likes fresh_42
  • #3
i would prefer getting hints first. thanks! :)
 
  • #4
Terrell said:
i would prefer getting hints first. thanks! :)

If you want help you need to make things convenient for the helpers, not for yourself. The problem refers to the "attached design" but you have not shown us the attachment, so we are left guessing that what is allowed is a "binary tree". Is that the case?

Is this a problem located within a particular course context? The problem is that for n cities, there are many different possible binary trees on n nodes, and the maintenance cost depends on the design of the tree. Somehow you want a result that is of "worst case" type: in the worst-case design, the maintenance is less than the revenue. Is there some type of course material that is relevant to this problem?
 
  • Like
Likes Terrell
  • #5
Ray Vickson said:
If you want help you need to make things convenient for the helpers, not for yourself. The problem refers to the "attached design" but you have not shown us the attachment, so we are left guessing that what is allowed is a "binary tree". Is that the case?

Is this a problem located within a particular course context? The problem is that for n cities, there are many different possible binary trees on n nodes, and the maintenance cost depends on the design of the tree. Somehow you want a result that is of "worst case" type: in the worst-case design, the maintenance is less than the revenue. Is there some type of course material that is relevant to this problem?
i'm sorry. should i just repost? i can't seem to be able to edit this thread. i found this problem from brilliant.org and saw it under the "quadratic equations - completing the square" section which was a bit surprising to me because my first impression of this problem should be under graph theory. also the reason why i did not post this diagram at first is because the author of the problem noted the diagram only as an acceptable example. thanks!
 

Attachments

  • a727fe89a1a1035d0d3cd420d021b8609a21ce18.png
    a727fe89a1a1035d0d3cd420d021b8609a21ce18.png
    3.6 KB · Views: 411
  • #6
Terrell said:
i'm sorry. should i just repost? i can't seem to be able to edit this thread. i found this problem from brilliant.org and saw it under the "quadratic equations - completing the square" section which was a bit surprising to me because my first impression of this problem should be under graph theory. also the reason why i did not post this diagram at first is because the author of the problem noted the diagram only as an acceptable example. thanks!

So my guess was correct: I said the description sounded like it allows a binary tree, and your diagram is, indeed, an example of a binary tree.

However, my original remarks remain: there are numerous different binary trees on n nodes, and different trees can have different maintenance costs (even for the same populations at the cities), so how can we be sure of achieving a non-negative net revenue? What prevents us from having ##p_i = 0## for all ##i##, so the revenue and costs both equal zero, giving us a non-negative net revenue, as desired? If there is some total population restriction, such as ##\sum_i p_i = N##, then, of course, the all-0 solution is eliminated.

In the same spirit, what prevents us from taking ##p_1 = N, p_2 = p_3 = \cdots = p_n = 0##? That has revenue ##p_1^2 = N^2## but zero maintenance cost (since no roads are built).
 
  • Like
Likes Terrell
  • #7
Ray Vickson said:
So my guess was correct: I said the description sounded like it allows a binary tree, and your diagram is, indeed, an example of a binary tree.

However, my original remarks remain: there are numerous different binary trees on n nodes, and different trees can have different maintenance costs (even for the same populations at the cities), so how can we be sure of achieving a non-negative net revenue? What prevents us from having ##p_i = 0## for all ##i##, so the revenue and costs both equal zero, giving us a non-negative net revenue, as desired? If there is some total population restriction, such as ##\sum_i p_i = N##, then, of course, the all-0 solution is eliminated.

In the same spirit, what prevents us from taking ##p_1 = N, p_2 = p_3 = \cdots = p_n = 0##? That has revenue ##p_1^2 = N^2## but zero maintenance cost (since no roads are built).
it says, regardless of the populations. The queen cannot require any populations to be zero.
 
  • Like
Likes Terrell
  • #8
Start by playing around with small networks. Try two cities, then three, then four.
Write out algebraic expressions for the profit, and see how it can be organised into sums of terms that are guaranteed non-negative.
Of the ways of connecting four, is one looking less profitable than the other?
 
  • Like
Likes Terrell
  • #9
Ray Vickson said:
So my guess was correct: I said the description sounded like it allows a binary tree, and your diagram is, indeed, an example of a binary tree.

However, my original remarks remain: there are numerous different binary trees on n nodes, and different trees can have different maintenance costs (even for the same populations at the cities), so how can we be sure of achieving a non-negative net revenue? What prevents us from having ##p_i = 0## for all ##i##, so the revenue and costs both equal zero, giving us a non-negative net revenue, as desired? If there is some total population restriction, such as ##\sum_i p_i = N##, then, of course, the all-0 solution is eliminated.

In the same spirit, what prevents us from taking ##p_1 = N, p_2 = p_3 = \cdots = p_n = 0##? That has revenue ##p_1^2 = N^2## but zero maintenance cost (since no roads are built).
after trying out some population values. it seemingly appears that if for every new city/node has a bigger population than the city/node it branched out from then i can safely guess that cities will be economically viable because (p_n)^2 - (p_n)(p_n-1) seems to be always greater than zero. the queen would also need to order that city p_n should shoulder the maintenance cost because p_n-1 might not be able to if we think of the worst case scenario of 3 roads connecting to it.
 
  • #10
Terrell said:
if for every new city/node has a bigger population than the city/node it branched out from
Sure, but the Queen cannot control the populations. She has to allow for the worst case.
 
  • Like
Likes Terrell

1. What is completing the square in a word problem?

Completing the square is a mathematical technique used to solve quadratic equations in the form of ax^2 + bx + c = 0. It involves manipulating the equation to create a perfect square trinomial, which can then be easily solved by taking the square root of both sides.

2. Why is completing the square useful in word problems?

Completing the square is useful because it allows us to solve quadratic equations that cannot be easily factored. It also helps us find the exact solutions to an equation, rather than just approximate solutions.

3. How do I complete the square in a word problem?

To complete the square, first make sure the equation is in the form of ax^2 + bx + c = 0. Then, divide both sides by a to get x^2 + (b/a)x + c/a = 0. Take half of the b/a term and square it, then add this value to both sides of the equation. This will create a perfect square trinomial on the left side, which can then be solved by taking the square root of both sides.

4. Can completing the square be used for any quadratic equation?

Yes, completing the square can be used for any quadratic equation in the form of ax^2 + bx + c = 0, as long as a is not equal to 0.

5. Are there any shortcuts for completing the square in a word problem?

Yes, there are some shortcuts for completing the square in certain cases. For example, if the coefficient of x^2 is 1, the value to add to both sides can be found by taking half of the coefficient of x and squaring it. Additionally, if the constant term is 0, the equation can be solved by taking the square root of both sides without needing to complete the square.

Similar threads

  • Introductory Physics Homework Help
Replies
3
Views
915
  • Engineering and Comp Sci Homework Help
Replies
1
Views
2K
  • Precalculus Mathematics Homework Help
Replies
1
Views
1K
  • Calculus and Beyond Homework Help
Replies
3
Views
2K
  • Calculus and Beyond Homework Help
Replies
5
Views
3K
  • Precalculus Mathematics Homework Help
Replies
4
Views
2K
  • STEM Educators and Teaching
Replies
24
Views
2K
  • Introductory Physics Homework Help
Replies
1
Views
4K
  • Engineering and Comp Sci Homework Help
Replies
4
Views
3K
  • Biology and Chemistry Homework Help
Replies
4
Views
3K
Back
Top