Re: Recursively enumerable sets
- From: Ben Bacarisse <ben.usenet@xxxxxxxxx>
- Date: Tue, 30 Oct 2007 00:51:12 +0000
Twoflower <standa.kurik@xxxxxxxxx> writes:
The definition of recursive enumerability does not require that the list
operation be completed in a finite number of steps. All that is required
is that if a given n is a member of the set, then n must appear as an
output within some finite number of steps. If n is not a member of the
set, then there is no requirement that we be able to learn that fact in
any finite number of steps.
If an r.e. set happens to have the property that its complement is also
r.e., then the set is recursive, because we can then alternate between
the two lists, knowing that any given n will eventually turn up on
exactly one of the two lists.
Thank you for your reply Dave.
What confuses me is this statement (I've taken it from Wikipedia)
about recursively enumerable sets:
"There is an algorithm that enumerates the members of S. That means
that its output is simply a list of the members of S: s1, s2,
s3, ... . If necessary, this algorithm may run forever."
A language L is in RE iff there is a TM, M, that computes:
f(x) = 1 if x is in L, else undefined
(i.e. f is partial -- the TM may not terminate for some input
strings).
We can construct a list of all the possible input strings (they are
countable) x1, x2, x3... The problem you have is then to compute
f(x1), f(x2), f(x3)... without "getting stuck" on any one of the x's.
One way is to make a new machine, M' that simulates:
step 1 of f(x1)
step 2 of f(x1) and step 1 of f(x2)
step 3 of f(x1), step 2 of f(x2) and step 1 of f(x3)
and so on. At each stage, if the simulation of step n of f(xi) accepts
xi, then this algorithm adds xi to its output. Eventually, every
element of L will be produced by this algorithm.
I hope helps and that this memory dump from a long time ago does not
contain any daft errors!
--
Ben.
.
- References:
- Re: Recursively enumerable sets
- From: Twoflower
- Re: Recursively enumerable sets
- Prev by Date: Re: Recursively enumerable sets
- Next by Date: Re: Urgent Recurrence Problem, Please Help !
- Previous by thread: Re: Recursively enumerable sets
- Next by thread: Re: Recursively enumerable sets
- Index(es):
Relevant Pages
|