From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,c42dbf68f5320193 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-05-09 09:54:51 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!hammer.uoregon.edu!skates!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: Generation of permutations Date: 06 May 2002 09:52:02 -0400 Organization: NASA Goddard Space Flight Center (skates.gsfc.nasa.gov) Message-ID: References: <5ee5b646.0205041652.63032ba6@posting.google.com> NNTP-Posting-Host: anarres.gsfc.nasa.gov Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: skates.gsfc.nasa.gov 1020693526 27213 128.183.220.71 (6 May 2002 13:58:46 GMT) X-Complaints-To: usenet@news.gsfc.nasa.gov NNTP-Posting-Date: 6 May 2002 13:58:46 GMT User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Xref: archiver1.google.com comp.lang.ada:23779 Date: 2002-05-06T13:58:46+00:00 List-Id: "Chad R. Meiners" writes: > No that is not what Robert was saying. He was referring to Rice's Theorem > for which you can clearly show that the problem of determining whether a > given set of machine instructions will sort an given input is > Turing-undecidable. How did you come to such a misinterpretation? Doesn't sound like a "misinterpretation" to me. Let's try some symbolic logic: A : "a given set of machine instructions" B : "a given input" C : A sorts B Rice's Theorem says statement C is "Turing-undecideable". Question; does that mean C is "false"? A' : "set of instructions emitted by GNAT for bubble sort" B' : "a given input" C' : A' sorts B' So Rice's Theorem says statement C' is "Turing-undecideable". Is C' "true"? If C' is "true", does that mean A' "constitutes a general sorting algorithm". I think so, if we assume B' is allowed to vary over all possible inputs. I suspect the problem here lies in the conflict between the English meanings of "true" and "decideable", and the formal meaning of "Turing-(un)decideable". We all believe that C' is "true", but that's not the same as "Turing-decideable". I'll leave it to someone else to give the formal definition of "Turing-decideable"; I'm sure I'd get it wrong :). > > > wrote in message > news:p_iB8.3409$9d1.36389081@newssvr21.news.prodigy.com... > > 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. > > -- -- Stephe