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]
2 years 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]2 years 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
Share £56 in the ratio 1:3:4
Rus_ich [418]
First u do 1+3+4 which gives u 8...then divide it from the number 56 which gives u 7..then after do (multiplication) 1*7= £7...then 3*7=£21 and then 4*7=£28....ur answer is £7.00, £21.00 and £28.00.....to check them if it's right u could do 7+21+28 which gives u exactly £56.00...so yap hope this helped u :)
3 0
4 years ago
Given f(x) = x − 7 and g(x) = x2 .<br><br> Find g(f(4)).
Alja [10]

Answer:

-6

Step-by-step explanation:

g(f(x))= 2(x-7)

g(f(x))= 2x-14

plug in 4 for x

g(f(4))= 2×4-14

g(f(4))= 8-14

g(f(4))= -6

8 0
3 years ago
The value of an autographed baseball card increased from $39 to $65 what is the percent increase in value of the baseball card?
Ivan

:

The percent increase is found by finding the difference between the two prices and then dividing that different by the beginning price.

For this example it would be 65-39= $26. So $26/$39(the starting price) is 0.666... This is equivalent to about 66.67%. So, the price of the card increased by about 66.67%

4 0
3 years ago
Read 2 more answers
In 17 ​weeks, Bruce earns ​$5,644 doing yard work. He earns the same amount each week. Let b stand for the amount earned each we
Marrrta [24]
5,644 / 17 = b
b = 332
4 0
3 years ago
Kiki is taking a bicycle ride. During the ride, Kiki is always traveling away from the starting point. Wich of the following gra
inysia [295]
I'm 100% sure that the answer is C
5 0
4 years ago
Other questions:
  • I need help with this can you type what I need to type in
    11·1 answer
  • A local hamburger shop sold a combined total of 693 hamburgers and cheeseburgers on Wednesday. There were 57 fewer fewer cheeseb
    10·1 answer
  • Which graph shows the solution to the inequality 3x-7&lt;20 ?
    6·1 answer
  • Simplify by dividing (3/5) divided by -4/9
    14·1 answer
  • What is the purpose of a histogram?
    7·1 answer
  • Find the inverse of p(x)=-2x^2-10
    9·1 answer
  • Identify the volume of the of the figure below
    15·1 answer
  • The FIRST ANSWER GETS BrAINLIEST
    7·1 answer
  • The next model of a sports car will cost 11.9% less than the current model. The current model costs $35,000. How much was the pr
    10·1 answer
  • Write 28 x 32 in commutative property. No links!
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!