I was asked a question in my algorithms exam which had this as the core question after simplifying. I had written that it would be NP-Hard but I got it wrong my professor is saying that it would be NP-Complete.
Kindly help me resolve my doubt.
I was asked a question in my algorithms exam which had this as the core question after simplifying. I had written that it would be NP-Hard but I got it wrong my professor is saying that it would be NP-Complete.
Kindly help me resolve my doubt.
A problem that is both NP hard and in NP is NP-complete.
On the other hand, after reading your question I'm not sure what you are asking.