none
what do you think of this universal compiler-decompiler RRS feed

Answers

  • Antonio,

    I think these programs are interesting.  I tried 4-digit 2222 but couldn't get the result.

    By the way, I have two questions about these programs.

    (1) What is the purpose of these programs?  Encryption or compression?

    (2) Why 2 is used instead of 0?


    Nonki Takahashi

    Wednesday, May 15, 2013 1:32 PM
    Moderator

All replies

  • Oh, these are compression and decompression programs.

    I used the first one as:

    from how many digits do you want to make the conversion bigger implies slower
    maximum12= which implies very slow
    from how many digits do you want to make the conversion
    3
    2
    1
    12
    11
    122
    121
    112
    111
    plz wait while the matrix creates, unless you have a very fast pc go for a snack
    plz wait while the matrix creates,it will take a couple of minutes   1
    plz wait while the matrix creates,it will take a couple of minutes   0
    *******
    *******
    *******
    *******
    2*******
    1*******
    12*******
    11*******
    *******
    *******
    *******
    *******
    *******
    *******
    *******
    *******
    *******
    *******
    *******
    *******
    enter binary number with 2 STANDING AS 0 like 22122121 
    remember that the 0 to the left in this case a 2 doesnt count
    121
    the compiled number is 1 after 1 transformations
    enter number to decompile
    1
    enter number of transformations
    1
    121
    enter binary number with 2 STANDING AS 0 like 22122121 
    remember that the 0 to the left in this case a 2 doesnt count


    Nonki Takahashi


    Tuesday, May 7, 2013 12:54 AM
    Moderator
  • Antonio,

    I think these programs are interesting.  I tried 4-digit 2222 but couldn't get the result.

    By the way, I have two questions about these programs.

    (1) What is the purpose of these programs?  Encryption or compression?

    (2) Why 2 is used instead of 0?


    Nonki Takahashi

    Wednesday, May 15, 2013 1:32 PM
    Moderator
  • i worked out better the concept:

    2*******
    1*******
    22    *2******
    21    *1******
    12    *22    *2*****
    11    *21    *1*****
    222  *12   *22 *2****
    221  *11   *21 *1****
    212  *222  *12    *22    *2***
    211  *221  *11    *21    *1***
    122  *212  *222  *12    *22    *2**
    121  *211  *221  *11    *21    *1**
    112  *122  *212  *222  *12    *22    *2*
    111  *121  *211  *221  *11    *21    *1*
    2222*112  *122  *212  *222  *12    *22    *2
    2221*111  *121  *211  *221  *11    *21    *1
    2212*2222*112  *122  *212  *222  *12    *22    *2
    2211*2221*111  *121  *211  *221  *11    *21    *1
    2122*2212*2222*112  *122  *212  *222  *12    *22  *2
    2121*2211*2221*111  *121  *211  *221  *11    *21  *1
    2112*2122*2212*2222*112  *122  *212  *222  *12  *22  *2
    2111*2121*2211*2221*111  *121  *211  *221  *11  *21  *1
    1222*2112*2122*2212*2222*112  *122  *212  *222*12  *22  *2
    1221*2111*2121*2211*2221*111  *121  *211  *221*11  *21  *1
    1212*1222*2112*2122*2212*2222*112  *122  *212*222*12  *22  *2
    1211*1221*2111*2121*2211*2221*111  *121  *211*221*11  *21  *1
    1122*1212*1222*2112*2122*2212*2222*112  *122*212*222*12  *22*2
    1121*1211*1221*2111*2121*2211*2221*111  *121*211*221*11  *21*1
    1112*1122*1212*1222*2112*2122*2212*2222*112*122*212*222*12*22*2
    1111*1121*1211*1221*2111*2121*2211*2221*111*121*211*221*11*21*1
    compressing is counting up and right which always ends on 2 or 1 decompressing the opposite

    for example from 1222 i count one up and one right till i can go no more i would count seven steps 
    till i arrive to 1 so the number would express as 1 with seven steps or 1, 222 so this number just
     doesnt compress
    but if i try 2222 i end on 1 after 5 steps so it would transform into 1 11 or 111

    111 i count up and right again and i arrive to 1 after four transformations so it would be  1 21

    121 arrives to 1 after 4 steps so it would be 121 so it can be compressed no farther

    for decompressing i take into account that if i start in a 1 the first movement is down while if in a 2 first step is left



    Saturday, May 18, 2013 8:12 AM