From: Darren New <dnew@san.rr.com>
Subject: Re: Generation of permutations
Date: Thu, 09 May 2002 20:58:30 GMT
Date: 2002-05-09T20:58:30+00:00 [thread overview]
Message-ID: <3CDAE30B.CFFB6F29@san.rr.com> (raw)
In-Reply-To: uwuud2o12.fsf@gsfc.nasa.gov
Stephen Leake wrote:
>
> Darren New <dnew@san.rr.com> writes:
>
> > Right. So? The question is not whether it's possible to look at one
> > program and decide what it does. The question is whether it's possible
> > to write a program to look at all programs and decide whether or not
> > they sort.
>
> That's _your_ question. The question _I_ was addressing, as posed by
> TMoran, was "Is the sequence of instructions emitted by GNAT when it
> compiles bubble sort a program that sorts it's input".
Well, I was addressing the "misinterpretation" claim. I don't think
anyone claimed that the instructions emitted by compiling a bubble sort
don't sort the list. I thought TMoran was saying that he was surprised
that sorting was recursively undecidable since he can prove a bubble
sort does indeed sort. But that's not what "recursively undecidable"
means.
I was addressing this:
--------
> > but to determine whether a set of instructions constitutes a general
> > sorting algorithm is obviously recursively undecidable.
> So the set of instructions emitted by Gnat when it compiles bubble sort
> code may or may not constitute a general sorting algorithm, and whether
> it does or not is undecidable? I learn something new every day.
---------
That's a misinterpretation of what "general sorting algorithm" and
"recursively undecidable" means. Hence, that you're asking a different
question is kind of ... irrelevant, and therefore not addressed.
Everything you said was correct, except for any implication that it
relates to undecidability.
> You have to be careful in newsgroup discussions to pay attention to
> the question the poster is asking, and not assume they are talking
> about what you are talking about !
Well, you said "it doesn't sound like a misinterpretation to me". I was
explaining how the second part of the quote between the lines there is a
misinterpretation of the first part.
> Ok. So what Tom Moran and I were missing was the notion that A _must_
> be allowed to vary over _all_ instruction sequences, not just _a
> particular_ instruction sequence. That's an extremely important
> distinction, and it was _not_ clear in Robert's original post,
> although I can see how he thought it was implied.
Correct. It's easy to prove that (say) a bubble sort does indeed sort.
It's impossible to reliably determine if a given set of instructions
(i.e., one given to you, not one chosen by you) does indeed sort an
arbitrary list of numbers.
"A given set of instructions" means whatever set I give you, not one
that you get to pick. This is normal math-speak, so I'm not surprised
that it was considered implied. Consider
function square(a : double) return double is return a * a; end square;
-- (assuming I got the syntax right)
This "squares a given number". I.e., it squares whatever number you give
it. If it doesn't work for any number you give it, then it doesn't
"square a given number", at least in normal math-speak.
> I agree that this is a trivial question. That's why Tom Moran was
> surprised at Robert's response. (we are way lost in he said/she said
> at this point :).
I think so. I think the original point was that a slow-sort can't be
implemented by generating random instruction sets until you find one
that is a sort program, because you can't tell if any arbitrary
randomly-generated set of instructions is a sort or not. Sure, if you
design the code to be a sort, you can tell it's a sort, and even prove
it's a sort, but you can't generate programs at random and say anything
in particular about them.
--
Darren New
San Diego, CA, USA (PST). Cryptokeys on demand.
The 90/10 rule of toothpaste: the last 10% of
the tube lasts as long as the first 90%.
next prev parent reply other threads:[~2002-05-09 20:58 UTC|newest]
Thread overview: 88+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-29 11:54 Generation of permutations Reinert Korsnes
2002-04-30 13:52 ` Ted Dennison
2002-04-30 14:20 ` Marin David Condic
2002-05-02 12:32 ` Robert Dewar
2002-05-02 15:47 ` Ted Dennison
2002-05-02 16:16 ` Mark Biggar
2002-05-03 13:04 ` Marin David Condic
2002-05-05 0:52 ` Robert Dewar
2002-05-05 23:11 ` tmoran
2002-05-06 2:13 ` Chad R. Meiners
2002-05-06 13:52 ` Stephen Leake
2002-05-09 17:44 ` Darren New
2002-05-09 18:07 ` Stephen Leake
2002-05-09 20:58 ` Darren New [this message]
2002-05-09 23:21 ` tmoran
2002-05-09 23:51 ` Darren New
2002-05-10 3:37 ` tmoran
2002-05-10 3:59 ` Darren New
2002-05-10 13:13 ` Robert Dewar
2002-05-25 16:21 ` Robert I. Eachus
2002-05-09 23:24 ` Robert Dewar
2002-05-09 23:48 ` Robert Dewar
2002-05-10 3:37 ` tmoran
2002-05-10 15:10 ` Chad R. Meiners
2002-05-11 4:04 ` Robert Dewar
2002-05-16 1:35 ` Chad R. Meiners
2002-05-11 4:05 ` Robert Dewar
2002-05-06 15:46 ` Wes Groleau
2002-05-06 16:21 ` Chad R. Meiners
2002-05-06 16:33 ` Darren New
2002-05-07 0:06 ` tmoran
2002-05-07 0:26 ` Darren New
2002-05-07 1:56 ` tmoran
2002-05-07 10:39 ` Robert Dewar
2002-05-07 17:25 ` Chad R. Meiners
2002-05-08 2:27 ` Robert Dewar
2002-05-08 8:44 ` Mats Karlssohn
2002-05-07 17:00 ` Wes Groleau
2002-05-06 21:33 ` Robert Dewar
2002-05-06 17:26 ` Marin David Condic
2002-05-07 7:35 ` tmoran
2002-05-07 13:22 ` Marin David Condic
2002-05-08 5:23 ` tmoran
2002-05-08 14:10 ` Marin David Condic
2002-05-09 16:20 ` Darren New
2002-05-09 19:04 ` tmoran
2002-05-08 16:20 ` Darren New
2002-05-08 17:31 ` tmoran
2002-05-08 17:39 ` Chad R. Meiners
2002-05-07 15:34 ` Darren New
2002-05-07 17:44 ` Chad R. Meiners
2002-05-07 19:58 ` tmoran
2002-05-07 21:05 ` Turing-undecidable languages (OT) Chad R. Meiners
2002-05-08 8:24 ` Danx
2002-05-08 17:16 ` Chad R. Meiners
2002-05-10 2:37 ` Robert Dewar
2002-05-08 9:16 ` Dmitry A. Kazakov
2002-05-08 17:18 ` Chad R. Meiners
2002-05-09 20:56 ` Dmitry A.Kazakov
2002-05-09 16:18 ` Chad R. Meiners
2002-05-10 2:52 ` Robert Dewar
2002-05-08 2:17 ` Generation of permutations Robert Dewar
2002-05-03 13:13 ` Ted Dennison
2002-05-03 13:24 ` Lutz Donnerhacke
2002-04-30 15:06 ` Hyman Rosen
2002-05-01 8:40 ` Adrian Hoe
2002-05-01 19:53 ` Hyman Rosen
2002-05-11 1:52 ` Steven Deller
2002-05-02 16:24 ` Mark Biggar
2002-04-30 17:12 ` Wes Groleau
2002-04-30 22:57 ` Robert Dewar
2002-05-01 0:54 ` tmoran
2002-05-01 9:42 ` Florian Weimer
2002-05-02 12:34 ` Robert Dewar
2002-05-01 12:43 ` Robert Dewar
2002-05-01 15:05 ` TO WHOM IT MAY CONCERN Wes Groleau
2002-05-02 12:27 ` More on copyright, (Re: TO WHOM IT MAY CONCERN) Robert Dewar
2002-05-08 13:56 ` Wes Groleau
2002-05-08 18:01 ` Robert Dewar
2002-05-08 18:31 ` Hyman Rosen
2002-05-09 13:41 ` Wes Groleau
2002-05-01 12:46 ` Generation of permutations Robert Dewar
2002-05-01 18:22 ` OT:Copyright, was " tmoran
2002-05-01 21:56 ` Robert Dewar
2002-05-01 23:45 ` tmoran
2002-05-02 11:58 ` Robert Dewar
2002-05-01 14:55 ` Wes Groleau
2002-05-02 12:41 ` Robert Dewar
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox