The top rated answer to Why, really, is the Halting Problem so important? lists a few examples for a noncomputable problem. However, these mostly involve an infinite search space. Are there noncomputable problems with a finite search space? If not, why not?
1 Answers
Depends on what exactly you have in mind.
If the problem is to find an element with decidable (!) properties among a recursively enumerable set $A$ (of finitely represented elements), then yes: if $A$ is finite, the problem is trivially computable. Just check every element.
If $A$ is finite but unknown, it's more interesting but still: the problem is computable, since there is an algorithm that checks the every element in $A$, even though we can't point it out. See this for an example.
If the identifying property is undecidable, then the problem may be¹ uncomputable. For instance, the search space for the question "Does TM M halt on input x?" is finite -- just two possible answers -- but the problem is (in)famously undecidable.
- It's possible that the property as written down is not needed to identify the correct element.

- 72,336
- 29
- 179
- 389
-
I should revise the question a little bit. Would you have a "real world" example / application for a case where $A$ is finite but the defining property is undecidable? I know the halting problem but it sometimes seem too abstract to explain it to other less technical versed persons. – Karsten Nov 06 '17 at 20:58
-
-
Thanks for the links. I read up more on computable functions. I'm probably too hung up on this term "search space", i.e. the function should decide wether an element is in an infinite set. Practically all of the examples given in the linkes answers have this property.
Are there some inputs that make my program crash?
E.g. here the function would have to check any possible input. Am I missing something?
– Karsten Nov 06 '17 at 22:26 -
@Karsten No, it wouldn't necessarily. The search space, as I understand it, is ${0,1}$ -- either the property is true or not. Just think of any correctness proof: we don't have to investigate all inputs individually to establish an algorithm is correct! The Pi question is my favorite example -- no, we don't have to check all decimal digits! – Raphael Nov 07 '17 at 17:49
-
@Karsten But as for your question, yes, you'll get better answers if you can clarify what exactly you mean by "search space" respectively "search problem". – Raphael Nov 07 '17 at 17:50
-
thanks for clarifying. During my research I've found that finding the cheapes flight fare between two cities is actually uncomputable. I'll dive more into understanding why. – Karsten Nov 12 '17 at 19:05
So I was wondering if there are non-computable functions with a finite search space. If that is the right wording.
– Karsten Nov 06 '17 at 21:30