Author | Message |
---|---|
Redalb
Posts: 22
|
Posted 22:34 Apr 20, 2011 |
Here are my outputs for the 4 files. If anyone wants to see my tables I will add them. For now I'll just output everything else my program generates.
Test file 1:
abababab
<Table>
Test file 2:
abbaabbaababbaaaabaabba <Table>
Number of input symbols(23) * 8 bits: 184 bits
xxyyxyxyxxyyyxyxxyxxyyx <Table>
Number of input symbols(23) * 8 bits: 184 bits
I'm not going to output the reductions for this one, its too long. I'll just show what I got for the last part.
Number of input symbols(1011) * 8 bits: 8088 bits -Todd Last edited by Redalb at
22:59 Apr 20, 2011.
|
cbort
Posts: 95
|
Posted 13:28 Apr 23, 2011 |
Do we actually need to create a decoder or just encoder? I don't see anywhere it asks us to decode. |
cbort
Posts: 95
|
Posted 16:09 Apr 23, 2011 |
Test 1 Out:
The original input was:
Test 2 out:
The original input was:
Test 3 output:
Test 4 output: The compression ratio [5130/8088] is 0.634272997032641
Can someone else please upload their results so we can compare the output of test4 since the two of us got different answers...
-bort |
hmodi
Posts: 27
|
Posted 17:05 Apr 23, 2011 |
I am getting different results too, for test4. |
cbort
Posts: 95
|
Posted 17:55 Apr 23, 2011 |
My new Test4 The compression ratio [4560/8088] is 0.5637982195845698
my index was incrementing before it calculated the number of bits required... I believe that my answer is correct now |
hmodi
Posts: 27
|
Posted 18:20 Apr 23, 2011 |
Hi Cbort, |
cbort
Posts: 95
|
Posted 18:31 Apr 23, 2011 |
Ya I calculate the number of bits at the end, but its not dependent on the number of characters directly... I am using a ceiling function on Log2 of the number of dictionary indexes that there are. Bits = Ceiling(Log2(Total Number of Dictionary Entries)) I was getting the wrong number because at the end of one of my for loops on the last iteration I incremented the index even though I did not add anything to the dictionary... So my answer was being multiplied by 9 bits instead of 8 bits... Last edited by cbort at
18:32 Apr 23, 2011.
|
kwalitv
Posts: 2
|
Posted 01:42 Apr 24, 2011 |
So i just want to be sure are we suppose to also do the decoder too or just the encoder? |
mchan
Posts: 4
|
Posted 01:54 Apr 24, 2011 |
Those numbers are similar to mine. Only difference is that I have 8088/4560 = 1.77. The ratio thing was discussed in another thread.... A rough list of my dictionary results are as follows:
--- Dictionary ----
Index Entry
(Every 50th entry)
1 M
51 a a
101 .
151 n
201 ra
251 l.
Last edited by mchan at
01:59 Apr 24, 2011.
|
kknaur
Posts: 540
|
Posted 13:32 Apr 24, 2011 |
My Results: |
Redalb
Posts: 22
|
Posted 15:18 Apr 24, 2011 |
. Last edited by Redalb at
15:22 Apr 24, 2011.
|
Redalb
Posts: 22
|
Posted 15:18 Apr 24, 2011 |
. Last edited by Redalb at
15:22 Apr 24, 2011.
|