Checkout
Personalized AI apps
Build multi-agent systems without code and automate document search, RAG and content generation
Start free trial
Question

Np-Hardness - How do you show NP hardness?

Answer

To show that a problem A is NP-hard, you need to reduce a known NP-hard problem to A. In simpler terms, to prove that your problem is difficult, you need to outline an efficient algorithm to solve a different problem, which is already known to be hard, using an efficient algorithm for your problem as a black-box subroutine.