Question

It is possible to use an algorithm for a decision problem as a sub-routine to solve an optimization problem TRUE FALSE

0 0
Add a comment Improve this question Transcribed image text
Answer #1

True.

We can use decision problem to solve optimization problem. eg . We can use the sub routine to check if there is any spanning tree of a graph with weight less than w. We can find minimum weight efficiently using decision algorithm (binary search). Now if we want to get the MST(optimization problem), as we know the length of MST, we can drop out an edge and see if we are still ok. We'll keep on doing it until we are having MST.

HERE, finding MST is optimization problem and checking if we have spanning tree after droping an edge is decision problem

Add a comment
Know the answer?
Add Answer to:
It is possible to use an algorithm for a decision problem as a sub-routine to solve...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT