answersLogoWhite

0


Best Answer

All NP complete problems are NP hard problems when solved in a different way.

But, all NP hard problems are not NP complete.

Ex:

1. Traveling salesman problem. It is both NP hard and NP complete. We can find that whether the solution is correct or not in the given period of time. In this way, it is NP complete.

But, to find the shortest path, i.e. optimization of Traveling Salesman problem is NP hard. If there will be changing costs, then every time when the salesperson returns to the source node, then he will be having different shortest path. In this way, it is hard to solve. It cannot be solved in the polynomial time. In this way, it is NP hard problem.

2. Halting problem.

3. Sum of subset problem.

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Difference between np hard and np complete?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Difference between np and np complete?

A problem is 'in NP' if there exists a polynomial time complexity algorithm which runs on a Non-Deterministic Turing Machine that solves it. A problem is 'NP Hard' if all problems in NP can be reduced to it in polynomial time, or equivalently if there is a polynomial-time reduction of any other NP Hard problem to it. A problem is NP Complete if it is both in NP and NP hard.


What is the difference between NP and NP Complete problems?

- a problem in NP means that it can be solved in polynomial time with a non-deterministic turing machine - a problem that is NP-hard means that all problems in NP are "easier" than this problem - a problem that is NP-complete means that it is in NP and it is NP-hard example - Hamiltonian path in a graph: The problem is: given a graph as input, an algorithm must say whether there is a hamiltonian path in it or not. in NP: here is an algorithm that works in polynomial time on a non-deterministic turing machine: guess a path in the graph. Check that it is really a hamiltonian path. NP-hard: we use reduction from a problem that is NP-comlete (SAT for example). Given an input for the other problem we construct a graph for the hamiltonian-path problem. The graph should have a path iff the original problem should return "true". Therefore, if there is an algorithm that executes in polynomial time, we solve all the problems in NP in polynomial time.j


Is Node-disjoint paths np-complete?

No. Verifying if I'm lying is NP-Complete.


What is set difference between recursive and recursively enumerable but not recursive?

All recursive Languages are recursively enumerable. But not all the recursively enumerable languages are recursive. It is just like NP complete.


What is the difference between P and NP complexity classes?

P is the class of problems for which there is a deterministic polynomial time algorithm which computes a solution to the problem. NP is the class of problems where there is a nondeterministic algorithm which computes a solution to the problem, but no known deterministic polynomial time solution


What are some transformice tribe house codes?

House codes:/np @931629/np @709003Bootcamp like codes:/np @172976/np @608368/np @191205/np @842019/np @159932/np @593204/np @145219/np @1450120/np @449496/np @618999/np @801683/np @1014313/np @1444036/np @633644/np @808800/np @1444041Thats all I got sorry if some don't work I didn't check them allIf you want to find me on TFM my user is Butterbe


What are some house tribe codes?

House codes: /np @931629 /np @709003 Bootcamp like codes: /np @172976 /np @608368 /np @191205 /np @842019 /np @159932 /np @593204 /np @145219 /np @1450120 /np @449496 /np @618999 /np @801683 /np @1014313 /np @1444036 /np @633644 /np @808800 /np @1444041 That's all I know, but I hope it'll be to help ^^


How long does it usually take to complete NP training?

NP training generally requires six years of school. This includes four years of undergraduate work and then 2 years of masters.


What Distance between craters of the moon national monument and Yellowstone np?

555


What are the nations in the plains?

If you mean the interior plains of the USA, these would include Badlands NP and Theodore Roosevelt NP. If you include the interior plains of Canada, then add Elk Island NP, Grasslands NP, Riding Mountain NP; and perhaps Prince Albert NP and Wood Buffalo NP.


What is np?

np simply means no problem


What are national parks in the interior plains?

If you mean the interior plains of the USA, these would include Badlands NP and Theodore Roosevelt NP. If you include the interior plains of Canada, then add Elk Island NP, Grasslands NP, Riding Mountain NP; and perhaps Prince Albert NP and Wood Buffalo NP.