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
mash [69]
1 year ago
8

g show that the hamiltonian-path problem from exercise 34.2-6 can be solved in polynomial time on directed acyclic graphs. give

an efficient algorithm for the problem
Mathematics
1 answer:
NISA [10]1 year ago
4 0

The efficient algorithm can be given in polynomial time.

For this particular problem ,we could find a polynomial time solution for it and then it is proven it could be solved in polynomial time.

1. You must have a source node with an in-degree of zero for a directed acyclic graph, so look for a path in the original graph G that has that value. Since each node must be visited, there is no solution if there are multiple nodes. However, the zero degree should be visited first, and if there are multiple points, there must be some nodes that cannot be visited initially.

2. Assuming that the left graph is G', remove the source node with in-degree zero and its surrounding edges to find the next node to start at.

3. As I mentioned in 1), there is no way to visit those nodes since their in-degree is zero and there should only be one to visit after its predecessor. If the left graph G' has more than two nodes or vertices with the in-degree of zero, then we could conclude that it is unsolvable.

4. Continue performing step 3 until we reach the endpoint, where there are no more nodes to visit. If there are some nodes that are not visited but we can't find an edge to get to them, then the problem cannot be solved; otherwise, we ought to have the answer.

We have discovered the answer to the Hamiltonian-path from the aforementioned steps.

its complexity is O(|E|+|V|) where E is number of edges and V is number of vertexes in directed acyclic graph because from v_{1} to v_{n}, we must trace the vertices and their surrounding edges. It is completed in polynomial time, as we are aware.

To know more about Hamiltonian- path here:

brainly.com/question/27586562

#SPJ4

You might be interested in
a cookie baker has an automatic mixer that turns out a sheet of dough in the shape of a square 12 inches wide. His cookie cutter
iragen [17]

Answer:

All the sizes that satisfy kd^2 =144

Step-by-step explanation:

To answer this question we first need to find the minimum wasted area of the dough.

Let us call the diameter of the cookie d, and a the length of the dough sheet, then the n number of cookies that fit into length a will be

n = \dfrac{a}{d}

and therefore, the number that will fit into the whole square sheet will be

n^2 = \dfrac{a^2}{d^2}

Since the area of each cookie is

A = \pi \frac{d^2}{4}

the area of n^2 cookies will be

A_n = n^2\pi \frac{d^2}{4},

which is the area of all the cookies cut out from the dough sheet; therefore, after the cutting, the area left will be

(1). \text{area left}= a^2-n^2\pi \frac{d^2}{4}

putting in the value of n^2 we get

a^2- \dfrac{a^2}{d^2}\pi \frac{d^2}{4}

which simplifies to

area left =  a^2( 1 -  (π/4))

putting in a = 12 we get

area left = 30.902 in^2.

Going back to equation (1) we find that

a^2-n^2(πd^2/4) =30.902

12^2- n^2(πd^2/4) =30.902

and if we call k = n^2, we get

12^2- k(πd^2/4) =30.902

113.098 = k(πd^2/4)

simplifiying this gives

kd^2 = 144.

As a reminder, k here is the number of cookies cut from the dough sheet.

Hence, our cookie diameter must satisfy kd^2 = 144,<em> meaning larger the diameter of the cookies less of the should you cut out to satisfy the above equality. </em>

8 0
4 years ago
Help pls i need my answer soon
GuDViN [60]
The answer is A because it just distributed the questions (if you need further explanation feel free to comment)
6 0
4 years ago
Read 2 more answers
What is the measure of Y
kap26 [50]

Answer:

y of what do you have at least a picture?

5 0
3 years ago
Solve each system by substitution<br>x - y=4<br>x+2y=-2​
DENIUS [597]

Answer:

<h2>x = 2 and y = -2</h2>

Step-by-step explanation:

\left\{\begin{array}{ccc}x-y=4&\text{add}\ y\ \text{to both sides}\\x+2y=-2\end{array}\right\\\\\left\{\begin{array}{ccc}x=4+y&(1)\\x+2y=-2&(2)\end{array}\right\\\\\text{substitute (1) to (2):}\\\\(4+y)+2y=-2\qquad\text{combine like terms}\\\\4+(y+2y)=-2\qquad\text{subtract 4 from both sides}\\\\3y=-6\qquad\text{divide both sides by 3}\\\\y=-2\\\\\text{put the value of}\ y\ \text{to (1):}\\\\x=4+(-2)\\\\x=2

7 0
3 years ago
Can anybody help me???
marysya [2.9K]

Answer:

Help you with what? their is nothing!

6 0
4 years ago
Read 2 more answers
Other questions:
  • Betty earns $52.65 per week working as a lifeguard. She worked as a lifeguard for 5 weeks. She also earned $46.25 painting faces
    12·1 answer
  • 6²-26+3
    7·2 answers
  • What is 2 3/4 + 3 2/4? Plz answer correctly.
    12·1 answer
  • Issac is preparing refreshments for a party. To make s smoothie, he will mix 3 quarts of strawberry puree with 1 pint of lemonad
    8·1 answer
  • List the angles in order from<br> smallest to biggest.<br> Help!! Due today!!
    6·1 answer
  • You are given the difference of the numbers of boys and girls in a class and the ratio of boys to girls. How many boys and how m
    11·1 answer
  • What is the interest for a principal of $3,500 at a simple interest rate of
    7·1 answer
  • Using the graph as your guide, complete the following statement.
    11·1 answer
  • A line passes through the points (10, 4) and (8, 2). What is its equation in slope-intercept form?​
    8·2 answers
  • Find the value of a. Round your answer to the nearest tenth. B 10 77.5 A C 7.9
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!