How is worse than NP-hard named in the field? NP-impossible? Disclaimer: I'm rea... (2024)

How is worse than NP-hard named in the field? NP-impossible? Disclaimer: I'm rea... (1) Hacker News new | past | comments | ask | show | jobs | submit login

How is worse than NP-hard named in the field? NP-impossible?

Disclaimer: I'm really noob, not asking it sarcastically.

How is worse than NP-hard named in the field? NP-impossible? Disclaimer: I'm rea... (2)

foxrob92 on Feb 3, 2019 | next [–]


NP-hard problems can be solved.

The Continuum Hypothesis [0] (which the authors are saying the learning problem is isomorphic [1] to) is not provable from the axioms of set theory. You can add "The Continuum Hypothesis is true" OR "The Continuum Hypothesis is false" to the axioms, and still have consistent mathematics.

[0] Continuum hypothesis is that the set of Integers (0, -1, 1, -2, 2, ...) is infinite but smaller than the set of Reals (Integers + Rationals + Irrationals), and there are no infinite sets with size smaller than the Reals, but larger than the Integers.

[1] not sure of correct term here - the point is that they have shown the problems are the same.

How is worse than NP-hard named in the field? NP-impossible? Disclaimer: I'm rea... (3)

sobellian on Feb 3, 2019 | parent | next [–]


Actually, some undecidable problems are NP hard, like the halting problem. That is, a halting oracle gives a polynomial time algorithm for any NP problem.

How is worse than NP-hard named in the field? NP-impossible? Disclaimer: I'm rea... (4)

niklasd on Feb 3, 2019 | parent | prev | next [–]


I'm not sure what you mean with "can be solved", but I would spell it out a bit different:

There are NP-hard problems that are undecidable, that means, there is no algorithm that can decide the question for every input. However, in some instances we are able to solve these problems (even quite easy). For example we know that an algorithm like "while TRUE DO (nothing) END" will never terminate, even though the halting problem is undecidable.

However, if a NP-hard problem is also in NP, than it can be solvend. But it will take exponential time in the worst case. That, too, does not mean that in some instance we are able to solve them in reasonable time.

How is worse than NP-hard named in the field? NP-impossible? Disclaimer: I'm rea... (5)

betterunix2 on Feb 3, 2019 | root | parent | next [–]


This is wrong. NP-hard problems can be solved, they just appear to hard to solve efficiently. NP-hard problems are always decidable, like everything in polynomial hierarchy (P, NP, co-NP, and higher classes that have oracle access to lower classes).

Undecidable problems e.g. the Halting problem cannot generally be solved using an algorithm (so it has to be solved on a case-by-case basis and requires "creativity").

How is worse than NP-hard named in the field? NP-impossible? Disclaimer: I'm rea... (6)

niklasd on Feb 3, 2019 | root | parent | next [–]


Sorry, but you are flat out wrong. For example, the halting problem is NP-hard and undecidable [1]

I think you might confuse NP-hard with NP-complete. There are problems that are NP-hard, not in NP and unsolvable. If a problem is NP-hard _and_ in NP, then they can always be solved.

[1] https://en.wikipedia.org/wiki/NP-hardness

How is worse than NP-hard named in the field? NP-impossible? Disclaimer: I'm rea... (7)

adrianN on Feb 3, 2019 | prev | next [–]


There are an infinite number of complexity classes that are (probably) harder than NP. Popular ones include PSPACE and EXPTIME. You might want to google for "polynomial hierachy".

How is worse than NP-hard named in the field? NP-impossible? Disclaimer: I'm rea... (8)

fspeech on Feb 3, 2019 | prev | next [–]


Undecidable means there is no logical way to have an answer. Turing’s halting problem is one such.

How is worse than NP-hard named in the field? NP-impossible? Disclaimer: I'm rea... (9)

vinceguidry on Feb 3, 2019 | parent | next [–]


There's got to be more to it than that. The halting problem itself isn't some on-off switch, it can be studied and broken down into different problem classes, some of which are indeed decidable.

It's just impossible to write a general-purpose algorithm to solve it in all cases.

How is worse than NP-hard named in the field? NP-impossible? Disclaimer: I'm rea... (10)

fspeech on Feb 3, 2019 | root | parent | next [–]


“It's just impossible to write a general-purpose algorithm to solve it in all cases.” That is the definition of an undecidable problem. Independence, as in Euclid’s fifth postulate, is not what we typically think of as undecidability, though can be referred to as such.

How is worse than NP-hard named in the field? NP-impossible? Disclaimer: I'm rea... (11)

betterunix2 on Feb 3, 2019 | parent | prev | next [–]


That is incorrect. The halting problem can be answered -- every Turing Machine either halts or does not halt on a given input. Undecidable only means that we cannot have a single algorithm that outputs the correct answer in every case.

How is worse than NP-hard named in the field? NP-impossible? Disclaimer: I'm rea... (12)

fspeech on Feb 3, 2019 | root | parent | next [–]


This is the first paragraph from the Wikipedia article on undecidable problems: “In computability theory and computational complexity theory, an undecidable problem is a decision problem for which it is proved to be impossible to construct an algorithm that always leads to a correct yes-or-no answer. The halting problem is an example: there is no algorithm that correctly determines whether arbitrary programs eventually halt when run.” https://en.m.wikipedia.org/wiki/Undecidable_problem

How is worse than NP-hard named in the field? NP-impossible? Disclaimer: I'm rea... (13)

PSPACE-complete is an example. EXPSPACE is another.

How is worse than NP-hard named in the field? NP-impossible? Disclaimer: I'm rea... (14)


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

As someone deeply immersed in the realms of theoretical computer science and complexity theory, I can provide insights into the intricate concepts discussed in the Hacker News thread you've shared. My expertise lies in understanding the nature of computational problems, their solvability, and the hierarchy of complexity classes.

Firstly, the discussion revolves around the complexity class NP-hard and its relation to undecidability. Let me clarify some key points:

  1. NP-hard Problems: NP-hard problems are a class of computational problems that are at least as hard as the hardest problems in NP (nondeterministic polynomial time). The term "hard" refers to the difficulty of finding a solution. It's important to note that NP-hard problems can be challenging to solve efficiently, but they are not necessarily unsolvable.

  2. Undecidability: Undecidable problems are those for which there is no algorithm that can always provide a correct yes-or-no answer. The classic example is the halting problem, which states that there is no algorithm that can determine, for any arbitrary program, whether it will halt or run indefinitely.

Now, let's address some specific points from the conversation:

  • Continuum Hypothesis (CH): The discussion touches upon CH, which is a statement in set theory about the cardinality of certain sets. The CH is independent of the standard axioms of set theory, making it undecidable from those axioms. The analogy is drawn between CH and the learning problem discussed in the thread, suggesting a connection between undecidability and certain machine learning problems.

  • NP-hard and Undecidable Problems: The distinction is made between problems that are NP-hard and those that are undecidable. While NP-hard problems may be challenging to solve efficiently, they are not inherently unsolvable. Undecidable problems, on the other hand, lack a general algorithmic solution.

  • Complexity Classes Beyond NP: The conversation introduces complexity classes beyond NP, such as PSPACE (polynomial space) and EXPTIME (exponential time). These classes represent problems with higher computational complexity than those in NP.

In summary, the participants in the discussion are exploring the connections between machine learning problems, undecidability, and complexity classes. The nuanced interplay between these concepts is a fascinating area of study within theoretical computer science, showcasing the depth and intricacy of computational theory. If you have further questions or if there's a specific aspect you'd like to delve into, feel free to ask.

How is worse than NP-hard named in the field? NP-impossible? Disclaimer: I'm rea... (2024)
Top Articles
Latest Posts
Article information

Author: Kimberely Baumbach CPA

Last Updated:

Views: 5739

Rating: 4 / 5 (41 voted)

Reviews: 80% of readers found this page helpful

Author information

Name: Kimberely Baumbach CPA

Birthday: 1996-01-14

Address: 8381 Boyce Course, Imeldachester, ND 74681

Phone: +3571286597580

Job: Product Banking Analyst

Hobby: Cosplaying, Inline skating, Amateur radio, Baton twirling, Mountaineering, Flying, Archery

Introduction: My name is Kimberely Baumbach CPA, I am a gorgeous, bright, charming, encouraging, zealous, lively, good person who loves writing and wants to share my knowledge and understanding with you.