Re: Lab 3 Treehouse.c Code

From: Paul Berube (berube@ugrad.cs.ualberta.ca)
Date: Wed Oct 17 2001 - 21:14:06 MDT


Oh my... It looks like I never got the message out...

when the lab was updated (sunday, monday?) a new version of treehouse.c
was posted. the difference between this and "version 2" is that the order
of output for the digits is reversed (ie v2 gives 21, new one (v3) gives
12).
the problem with v1 was that the entire order of the bits was reversed,
but in v2 the order of the char output was still reversed, and this was
finally fixed in the latest version. the latest version is (finally)
correct (i hope).

my greatest appologies that this was not announced properly - i don't know
how I missed that. I hope this has not resulted in much frustration and lost
time for any of you.

Again, I'm terribly sorry about this.

On Wed, 17 Oct 2001, John Pasula wrote:

>Hi, I've been working with the lab 3 treehouse code (the one that was
>mailed to us). I never noticed in it where the bits were reversed. I
>kept the original and ran it for all the possible combinations. (8 *
>16). I then generated this output table:
>81 24 21 C0 09 14 30 C0
>0E 91 58 16 A4 23 8C 1C
>3C C3 D4 0F 66 A9 4E 35
>33 56 AC 99 C3 9A E2 69
>DA BA 4F 7A 9E C7 97 8F
>55 0F 36 AC 33 F0 2B 53
>E7 7D BB F5 F9 7E F9 FA
>E8 E8 C3 63 5C 4D 55 A6
>71 4E A6 A9 53 D8 63 63
>7E DB DE 3F F6 EB CF 3F
>CC A9 53 66 3C 65 1D 96
>43 1C 2A B0 91 52 A1 4A
>AA F0 C9 53 CC 0F D4 AC
>AA F0 C9 53 CC 0F D4 AC
>97 37 3D DC AB B6 BA D9
>18 82 44 0A 06 81 06 05
>
>I then ran it with a bit revision in it, and generated this output:
>81 24 21 C0 09 14 30 C0
>71 4E A6 A9 53 D8 63 63
>DA BA 4F 7A 9E C7 97 8F
>AA F0 C9 53 CC 0F D4 AC
>3C C3 D4 0F 66 A9 4E 35
>CC A9 53 66 3C 65 1D 96
>E7 7D BB F5 F9 7E F9 FA
>97 37 3D DC AB B6 BA D9
>0E 91 58 16 A4 23 8C 1C
>7E DB DE 3F F6 EB CF 3F
>55 0F 36 AC 33 F0 2B 53
>A5 65 B1 C5 69 3C 78 F0
>33 56 AC 99 C3 9A E2 69
>43 1C 2A B0 91 52 A1 4A
>E8 E8 C3 63 5C 4D 55 A6
>18 82 44 0A 06 81 06 05
>
>I'm guessing the second version is what I should compare our encrypt
>output too?
>
>John Pasula
>

  "Oh, there it is...
      ...Then what the heck was that other piece of code we changed?"



This archive was generated by hypermail 2.1.3 : Wed Nov 21 2001 - 15:50:12 MST