Path: utzoo!attcan!uunet!lll-winken!lll-lcc!ames!mailrus!uwmcsd1!nic.MR.NET!umn-cs!amit
From: amit@umn-cs.cs.umn.edu (Neta Amit)
Newsgroups: comp.lang.apl
Subject: encode question
Message-ID: <6238@umn-cs.cs.umn.edu>
Date: 15 Jul 88 20:15:16 GMT
Reply-To: amit@umn-cs.UUCP (Neta Amit)
Organization: University of Minnesota
Lines: 21

Do you know a trick (or an implementation) that will make

     1 1 1 1 encode 2

return
    
     0 0 1 1   ?

Granted, the answer is ambiguous, as 0 1 0 1 etc. would qualify just as
well, but nonethteless 0 0 1 1 is the "obvious" answer, derived from a
unary representation.

I's quite surprised to find out that all 4 of the implementations I have
access to returned   0 0 0 0 .  What gives?




-- 
  Neta Amit 
  U of Minnesota CSci
  Arpanet: amit@umn-cs.cs.umn.edu