halting-problem Questions

7

Solved

It is known that the halting problem cannot have a definite solution, one that a) returns true <==> the program does indeed halt, and b) handles any input, but I was wondering if there are good ...
Essential asked 18/3, 2010 at 0:0

24

Whenever people ask about the halting problem as it pertains to programming, people respond with "If you just add one loop, you've got the halting program and therefore you can't automate task" Ma...
Lozano asked 10/7, 2009 at 18:18

1

Solved

Since Nothing >>= f = Nothing for every f, the following trivial definition is suitable for mfix: mfix _ = Nothing But this has no practical use, so we have the following nontotal definiti...

3

Solved

By the time I first read serious criticism on -XUndecidableInstances, I had already completely accustomed to it, seeing it as merely removal of an annoying restriction Haskell98 has to make compile...

24

Solved

In class, we learned about the halting problem, Turing machines, reductions, etc. A lot of classmates are saying these are all abstract and useless concepts, and there's no real point in knowing th...
Elnaelnar asked 24/10, 2008 at 22:0

2

I've read some articles about big-Oh calculation and the halting problem. Obviously it's not possible for ALL algoritms to say if they ever are going to stop, for example: while(System.in.readline...
Chartography asked 7/9, 2011 at 9:45

9

Solved

I have written a simple brainfuck interpreter in MATLAB script language. It is fed random bf programs to execute (as part of a genetic algorithm project). The problem I face is, the program turns o...

4

Solved

Was just reading the highly voted question regarding Emulators and the statement It's been proven that finding all the code in a given binary is equivalent to the Halting problem. Really st...
Moonier asked 14/3, 2011 at 13:59

4

I'm not too deeply rooted in the very formal side of static code analysis, hence this question. A couple of years ago I read that distinguishing code from data using static code analysis is equiva...
Marolda asked 30/12, 2013 at 22:53

2

Solved

I'm going over the proof for The Halting Problem in Intro to the Theory of Computation by Sipser and my main concern is about the proof below: If TM M doesn't know when it's looping (it can't acc...
Barbiturism asked 6/12, 2011 at 1:59

4

I have a large collection of regular expression that when matched call a particular http handler. Some of the older regex's are unreachable (e.g. a.c* ⊃ abc*) and I'd like to prune them. Is there ...
Currency asked 10/9, 2013 at 21:27

3

Solved

There are a lot of related questions here on SO, but they all ask about writing a program to compute the complexity of arbitrary algorithms (which is obviously undecideable). I am willing to make t...

13

Solved

When have you ever personally come upon the halting problem in the field? This can be when a co-worker / boss suggested a solution which would violate the fundamental limits of computation, o...

2

Solved

Is it possible to construct a higher order function isAssociative that takes another function of two arguments and determines whether that function is associative? Similar question but for other p...

15

Solved

Look at the following infinite while loop in Java. It causes a compile-time error for the statement below it. while(true) { System.out.println("inside while"); } System.out.println("while termin...
Natation asked 20/12, 2011 at 2:54

8

Nearly all programming languages used are Turing Complete, and while this affords the language to represent any computable algorithm, it also comes with its own set of problems. Seeing as all the a...

1

Solved

In this answer to a question about the definitions of NP, NP-hard, and NP-complete, Jason makes the claim that The halting problem is the classic NP-hard problem. This is the problem that gi...
Besot asked 9/8, 2011 at 2:6

8

Solved

Is there any regular expression that will, for some input string, search for a match forever?
Schematism asked 6/8, 2009 at 20:28

3

Solved

The halting problem cannot be solved for Turing complete languages and it can be solved trivially for some non-TC languages like regexes where it always halts. I was wondering if there are any la...
Gagne asked 24/1, 2009 at 2:23
1

© 2022 - 2024 — McMap. All rights reserved.