-3

Can someone give me an example of an undecidable problem that is not NP-hard?

I'm unable to understand the difference between the two.

Thanks very much!

user3740951
  • 1,109
  • 2
  • 20
  • 39

1 Answers1

2

An NP-hard problem is one such that every problem in NP can be reduced to it. In fact, it is "at least as hard as" the problems in NP class. For example, TSP (Traveling Sales Person) is NP-hard. However, undecidable is a problem for which there is no algorithm that always decide correctly. For example, the question of whether a program halts at some point or not is undecidable. In fact, you may not have an algorithm that can answer this question correctly for all programs in the world. (This can be proved)

So, in brief, an undecidable problem is logically hard; no matter how strong your computers or algorithms are, they cannot be solved. But, NP-hard problems have algorithms to be solved with but those algorithms are not polynomial in time.

A. Mashreghi
  • 1,729
  • 2
  • 20
  • 33