Question

Question 4 (4 marks). a. Consider the decision problems PROBLEMA and PROBLEMB. PROBLEMA is known to be NP- Complete Your frie

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

NP-Hard NP-Hard NP-Complete P NP NP-Complete NP P NP P NP Kpoue 0.

a) If you observe carefully, P is always a subset of NP. Now, P = NP if and only if we can design an algorithm that solves any given instance of problem in NP in polynomial time.

Clearly, none of your friends have found a way to solve ProblemA in polynomial time. And, hence they have not yet proved that P = NP.

b) The time complexity of this algorithm is always O(n) and hence, TRIANGLENUMBER is a plynomial time algorithm.

Add a comment
Know the answer?
Add Answer to:
Question 4 (4 marks). a. Consider the decision problems PROBLEMA and PROBLEMB. PROBLEMA is known to...
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
ADVERTISEMENT