halting problem I've got more questions
- From: mainargv@xxxxxxxxx
- Date: 26 Feb 2007 11:29:33 -0800
hi
After thinking more about it, I've got more problems then before. I've
looked at several versions of the halting problem argument. Most of
them are in C language. after some thought, it's clearly not right.
(because C is not interpreted, and a function is different from a
program.)
I've tred to it in bash version, but still it doesn't work. Now the
only option is to do it in scheme or lisp. any thought?
will_it_halt.sh
# usage: will_it_halt.sh program.sh input.txt
# if program.sh halts prints TRUE
# else prints FALSE
#!/bin/bash
# try_this.sh
RESULT=`will_it_halt.sh $1 $2`
if [ "$RESULT" = "TRUE" ] ; then
while [ "1" = "1" ] ; do
i = i + 1
done
else
echo TRUE
fi
try_this.sh try_this.sh try_this.sh
my problem is with do I feed the code with "the program" or "the
program plus the machine or the interpreter"? there is clearly a
distinction between them.
.
- Follow-Ups:
- Re: halting problem I've got more questions
- From: Barb Knox
- Re: halting problem I've got more questions
- Prev by Date: Re: revisit halting problem
- Next by Date: Re: A restricted case of graph coloring, is this a known problem?
- Previous by thread: revisit halting problem
- Next by thread: Re: halting problem I've got more questions
- Index(es):
Relevant Pages
|