diff --git a/data/strings.HuffmanDecoder/LoremIpsum.txt b/data/strings.HuffmanDecoder/LoremIpsum.txt new file mode 100644 index 0000000..3ca176f --- /dev/null +++ b/data/strings.HuffmanDecoder/LoremIpsum.txt @@ -0,0 +1,100 @@ +Lorem ipsum dolor sit amet, consectetur adipiscing elit. +Fusce quis massa et augue semper imperdiet. +Duis rutrum purus vitae urna aliquet faucibus ac in lorem. +Quisque imperdiet quam sed faucibus rhoncus. +Aliquam aliquet libero id purus iaculis, quis semper dui interdum. +Vivamus volutpat turpis dignissim, dignissim mauris pellentesque, mattis erat. +Donec luctus dolor vel ultricies maximus. +Vestibulum eget eros interdum magna feugiat semper non et orci. +Praesent ut orci quis libero mollis viverra. +Fusce ullamcorper tellus id justo condimentum, quis pharetra nisi sagittis. +Phasellus fringilla enim eget blandit vulputate. +Aenean non justo lacinia, volutpat diam nec, auctor lorem. +Aliquam malesuada ante nec tellus congue rhoncus. +Nulla vitae velit quis sapien malesuada bibendum. +Phasellus porta ante vitae augue consectetur auctor. +Praesent ut nisl at metus viverra maximus. +Donec malesuada urna sed tortor porttitor, nec elementum massa venenatis. +Etiam pretium dolor vel ultricies laoreet. +Donec blandit turpis vel lorem imperdiet, ut facilisis ex egestas. +Aenean auctor quam at ipsum dignissim, sit amet auctor sem pharetra. +In cursus lorem ut nibh convallis placerat. +Morbi a tellus auctor, sollicitudin nisl ut, dignissim sem. +Etiam in urna et dolor fringilla volutpat vitae quis augue. +Maecenas ac nibh sollicitudin, sagittis sem in, tincidunt lectus. +Etiam tristique justo vitae dolor malesuada efficitur. +Pellentesque in ante egestas ligula maximus consequat ac vel ex. +Quisque vitae odio condimentum, euismod lorem sed, volutpat tortor. +Aenean congue orci quis purus mattis, a porttitor tellus suscipit. +In varius enim id orci imperdiet feugiat sed et felis. +Vestibulum interdum diam a erat gravida mattis. +Suspendisse varius sem sit amet libero molestie, eget elementum libero tristique. +Nunc porttitor felis id elit pharetra, quis vulputate quam accumsan. +Vivamus imperdiet arcu et semper dapibus. +Aliquam quis erat in dui fringilla malesuada quis id enim. +Pellentesque rutrum velit vel pulvinar ultrices. +Pellentesque rutrum turpis id nunc auctor, at scelerisque metus eleifend. +Praesent id justo egestas, scelerisque eros id, fringilla felis. +Ut fringilla tortor in tortor feugiat maximus. +Morbi dapibus neque at dolor ultricies porta. +Quisque accumsan quam quis fermentum imperdiet. +Nullam ullamcorper tellus sed nisi dictum commodo. +Vivamus in quam nec arcu lobortis sodales at vitae est. +Donec et felis in ligula elementum egestas quis malesuada nunc. +Mauris bibendum sapien a lorem sodales vulputate. +Ut sodales neque a arcu pellentesque ultricies et at nisi. +Donec nec magna efficitur, scelerisque est nec, posuere ante. +Vivamus quis odio commodo, scelerisque nisi vitae, posuere eros. +Vestibulum rhoncus est eu commodo sodales. +Suspendisse sit amet odio vehicula, fermentum tellus at, venenatis est. +Integer vitae elit faucibus, feugiat enim in, ullamcorper turpis. +Sed mattis quam et nunc suscipit laoreet. +Donec non nisl id velit luctus tincidunt. +Praesent ut neque aliquam, vehicula purus eu, eleifend est. +Ut tempus nisl at lectus feugiat egestas. +Nullam a nunc condimentum, gravida lorem sed, tempus tortor. +Phasellus ultricies odio in rhoncus volutpat. +Mauris vel nisl nec lacus maximus rutrum non ut eros. +Proin vestibulum risus a tincidunt scelerisque. +Etiam congue nunc sed ante pulvinar, eget cursus purus lacinia. +Mauris in felis vitae quam dictum tristique. +Aenean pharetra augue eu velit lacinia, ut egestas massa tristique. +Vestibulum scelerisque ante sed augue congue, laoreet dapibus dui consectetur. +Etiam id lectus at diam egestas mattis. +Duis vitae urna vitae orci feugiat tristique. +Praesent laoreet dolor id efficitur mollis. +Curabitur vel orci pretium, fermentum velit vitae, viverra erat. +Mauris mattis nisi placerat, accumsan ipsum sit amet, hendrerit lorem. +Sed finibus tellus ut blandit blandit. +Aliquam in eros sit amet lacus molestie egestas nec sit amet eros. +Curabitur quis massa id tortor semper aliquet nec id ipsum. +Vestibulum ac leo cursus, vehicula ex id, lobortis mauris. +Sed euismod sapien posuere semper mattis. +Vestibulum scelerisque lorem convallis diam rutrum, id imperdiet magna porta. +Maecenas lobortis arcu quis urna pretium commodo. +Nullam tristique ligula vel urna laoreet pharetra. +Cras venenatis libero quis augue fringilla blandit. +Vivamus finibus urna ac eros fermentum, eu condimentum turpis varius. +Vestibulum malesuada tortor et varius elementum. +Sed convallis augue a nisi aliquet lobortis. +Sed sed ipsum posuere, sollicitudin turpis accumsan, sollicitudin diam. +Praesent malesuada nibh eu ultricies placerat. +Maecenas aliquet ligula convallis mauris sodales mattis. +Maecenas ultrices quam et convallis suscipit. +Duis eleifend enim ut sem viverra blandit. +Duis egestas nunc in faucibus vehicula. +Suspendisse eleifend tortor vel ultricies ultricies. +Etiam sit amet lorem blandit, viverra massa congue, elementum arcu. +Quisque rutrum dui eget eros tincidunt, et malesuada neque condimentum. +Integer nec mi eleifend, ultricies diam rutrum, convallis turpis. +Mauris ut felis eget nisi ultricies venenatis sit amet nec elit. +Sed accumsan lacus a neque consequat pulvinar. +Aenean vitae tellus sed quam ullamcorper porta sed ac ipsum. +Cras eget velit id justo ultricies auctor. +Cras ullamcorper felis ac venenatis aliquet. +Sed faucibus risus eu nunc imperdiet posuere. +Quisque fermentum nunc et nisi varius rutrum nec quis felis. +Proin in ante in mi commodo fringilla a ut quam. +Duis ultrices turpis a nisi porttitor tempus. +Mauris eu ligula ut lorem congue scelerisque. +Integer imperdiet nisi vitae nisi fermentum consectetur. \ No newline at end of file diff --git a/data/strings.HuffmanDecoder/in_0 b/data/strings.HuffmanDecoder/in_0 new file mode 100644 index 0000000..6712306 --- /dev/null +++ b/data/strings.HuffmanDecoder/in_0 @@ -0,0 +1,2 @@ +Lorem ipsum dolor sit amet, consectetur adipiscing elit. +1001101100100011110011011010110101110110110011011101011100101101100100001111100100000111010000111111000100100011001011001011111101111001000011110001101110000111010010101010110100101110001001010111100111011111110110010000100101 diff --git a/data/strings.HuffmanDecoder/in_1 b/data/strings.HuffmanDecoder/in_1 new file mode 100644 index 0000000..acd8bfb --- /dev/null +++ b/data/strings.HuffmanDecoder/in_1 @@ -0,0 +1,2 @@ +Fusce quis massa et augue semper imperdiet. +1111010100111111101101000000101010110111001110101001101110101001100011100101001000000010110100011110111000011100010100101111100001110001011111110111100011111100 diff --git a/data/strings.HuffmanDecoder/in_10 b/data/strings.HuffmanDecoder/in_10 new file mode 100644 index 0000000..01f6732 --- /dev/null +++ b/data/strings.HuffmanDecoder/in_10 @@ -0,0 +1,2 @@ +Phasellus fringilla enim eget blandit vulputate. +10110111010111000110010100100101001100011101001111101110011111011111010010011000010100111111011110000101011011010000001101110100110001111011111110000001111111101010011110110100001100000010101100 diff --git a/data/strings.HuffmanDecoder/in_11 b/data/strings.HuffmanDecoder/in_11 new file mode 100644 index 0000000..93ee909 --- /dev/null +++ b/data/strings.HuffmanDecoder/in_11 @@ -0,0 +1,2 @@ +Aenean non justo lacinia, volutpat diam nec, auctor lorem. +101001101101010110000101000101110010100101011011011001111011110100001100011111001001000100000111110001110111000110110110111001000011011001010100010000110001000101011111110111110000001101111111011110111101000011111011110101111000101000 diff --git a/data/strings.HuffmanDecoder/in_12 b/data/strings.HuffmanDecoder/in_12 new file mode 100644 index 0000000..cb916e1 --- /dev/null +++ b/data/strings.HuffmanDecoder/in_12 @@ -0,0 +1,2 @@ +Aliquam malesuada ante nec tellus congue rhoncus. +101101110111000111111001100011001100110010001101001101001100010111000010000011100100001100111000101011000100001110111010111010100010111110111010111101100110011111111000011110111001010111010101100 diff --git a/data/strings.HuffmanDecoder/in_13 b/data/strings.HuffmanDecoder/in_13 new file mode 100644 index 0000000..e04c28f --- /dev/null +++ b/data/strings.HuffmanDecoder/in_13 @@ -0,0 +1,2 @@ +Nulla vitae velit quis sapien malesuada bibendum. +1011010001101110110001111111010111101000010111111100111010101111001111101100001010100111010100111010010001111000111100110011010011010000100110001000111011101010111001111001100000011001101100 diff --git a/data/strings.HuffmanDecoder/in_14 b/data/strings.HuffmanDecoder/in_14 new file mode 100644 index 0000000..c6298b2 --- /dev/null +++ b/data/strings.HuffmanDecoder/in_14 @@ -0,0 +1,2 @@ +Phasellus porta ante vitae augue consectetur auctor. +110011110101001100101111100111001111100100011011101011000101001000001111011010110001100011011010100101100000111111101001111011000010001011110110010110100101011101111110000000011111010010101011000110010 diff --git a/data/strings.HuffmanDecoder/in_15 b/data/strings.HuffmanDecoder/in_15 new file mode 100644 index 0000000..f967ea2 --- /dev/null +++ b/data/strings.HuffmanDecoder/in_15 @@ -0,0 +1,2 @@ +Praesent ut nisl at metus viverra maximus. +11100111001111000010000001001110011010111000010101001011101010011110111001011000011110101010000111010001100011001100111110010111111111011101010111101010111000 diff --git a/data/strings.HuffmanDecoder/in_16 b/data/strings.HuffmanDecoder/in_16 new file mode 100644 index 0000000..c36da4c --- /dev/null +++ b/data/strings.HuffmanDecoder/in_16 @@ -0,0 +1,2 @@ +Donec malesuada urna sed tortor porttitor, nec elementum massa venenatis. +00110010111110100001110110101111110100100110110101111101000111101110101110011101111011110110001000011000101111000001011110001100110110111100000000010010001011110000101001111101000011101110010100100010110011100001010101010110101111111011101111101100100100111010011101111000010011101001011 diff --git a/data/strings.HuffmanDecoder/in_17 b/data/strings.HuffmanDecoder/in_17 new file mode 100644 index 0000000..d80fa04 --- /dev/null +++ b/data/strings.HuffmanDecoder/in_17 @@ -0,0 +1,2 @@ +Etiam pretium dolor vel ultricies laoreet. +1100110101110110100000011000100011000101110101000000111101111011111110110010111100010011110111010111101000111101101101110100000110111111110101011001100100010110010 diff --git a/data/strings.HuffmanDecoder/in_18 b/data/strings.HuffmanDecoder/in_18 new file mode 100644 index 0000000..cf18ec9 --- /dev/null +++ b/data/strings.HuffmanDecoder/in_18 @@ -0,0 +1,2 @@ +Donec blandit turpis vel lorem imperdiet, ut facilisis ex egestas. +001110100111001001101000101001111100011111100100100100011101011110110010010110000001101101111100011100010110001001100100110101110100001011110000110010010010000111110001100101110011110101010100111110100000010000001101000110110101111110110101101010101111011110111111101001101 diff --git a/data/strings.HuffmanDecoder/in_19 b/data/strings.HuffmanDecoder/in_19 new file mode 100644 index 0000000..52dd8a9 --- /dev/null +++ b/data/strings.HuffmanDecoder/in_19 @@ -0,0 +1,2 @@ +Aenean auctor quam at ipsum dignissim, sit amet auctor sem pharetra. +001100100111101100101011101101010100000111000011010111101001001000010110110101000010111001110011111000110110100110111000110001110111001111111111001101001010101111111000001010101101100100010101010000011100001101011110111111001110110111100011001010011110010000111010001011 diff --git a/data/strings.HuffmanDecoder/in_2 b/data/strings.HuffmanDecoder/in_2 new file mode 100644 index 0000000..3b86262 --- /dev/null +++ b/data/strings.HuffmanDecoder/in_2 @@ -0,0 +1,2 @@ +Duis rutrum purus vitae urna aliquet faucibus ac in lorem. +011101111000010110100111101100011111001010111000111100111101011011100110000110110101001011110011001111011011101100010001100101110100011010101111111011111000000001111011101011011101100001010001001110110001110000001010010010011100 diff --git a/data/strings.HuffmanDecoder/in_20 b/data/strings.HuffmanDecoder/in_20 new file mode 100644 index 0000000..be34c73 --- /dev/null +++ b/data/strings.HuffmanDecoder/in_20 @@ -0,0 +1,2 @@ +In cursus lorem ut nibh convallis placerat. +1110111010011100111011011110011011100011001010010111111100010011110101010111010000011110011110101110010100101011100100000100100001100011000110011000100111111101110000101111010 diff --git a/data/strings.HuffmanDecoder/in_21 b/data/strings.HuffmanDecoder/in_21 new file mode 100644 index 0000000..3871671 --- /dev/null +++ b/data/strings.HuffmanDecoder/in_21 @@ -0,0 +1,2 @@ +Morbi a tellus auctor, sollicitudin nisl ut, dignissim sem. +010111010000001000101100111000001110111010011111111111000101110000111010010101101000000010100110010100111111111101001011010111110100111100001011000111000111110111110101101010011100111101000110001110001001110101010110011010010101010110 diff --git a/data/strings.HuffmanDecoder/in_22 b/data/strings.HuffmanDecoder/in_22 new file mode 100644 index 0000000..298c931 --- /dev/null +++ b/data/strings.HuffmanDecoder/in_22 @@ -0,0 +1,2 @@ +Etiam in urna et dolor fringilla volutpat vitae quis augue. +1000011110010000100110110010001111011110111001100011000101110110100010011010100110011111010001101110100011100100101010101000011010111011010101111111010011100011101101011101011100000010110101100111101010110111000011111001011110010100000 diff --git a/data/strings.HuffmanDecoder/in_23 b/data/strings.HuffmanDecoder/in_23 new file mode 100644 index 0000000..f15c094 --- /dev/null +++ b/data/strings.HuffmanDecoder/in_23 @@ -0,0 +1,2 @@ +Maecenas ac nibh sollicitudin, sagittis sem in, tincidunt lectus. +01010110001010101110101111100000001110001011011111111001011010011001100011101011100111001101011110001010010010110111111101101100010000101111100010011100000110001010100111011110111111101101100111011111011110100100100111100101111100101010110010100000010100 diff --git a/data/strings.HuffmanDecoder/in_24 b/data/strings.HuffmanDecoder/in_24 new file mode 100644 index 0000000..e3990f8 --- /dev/null +++ b/data/strings.HuffmanDecoder/in_24 @@ -0,0 +1,2 @@ +Etiam tristique justo vitae dolor malesuada efficitur. +101001100010111111011001100011001001111000100000011101100001101011111001111000001001000010101001111110000110110000111010000101100011101111111101011000111111011111011011110011100101111011101010101001010011100110101000 diff --git a/data/strings.HuffmanDecoder/in_25 b/data/strings.HuffmanDecoder/in_25 new file mode 100644 index 0000000..c1d5f59 --- /dev/null +++ b/data/strings.HuffmanDecoder/in_25 @@ -0,0 +1,2 @@ +Pellentesque in ante egestas ligula maximus consequat ac vel ex. +0100011101110111011001101000110111101111100111010100010110101001011010001101011100101011011111000001111110111100001010101001111000110101011001000000010101110011111101010010111000110111111001111100100110001010010100110101110111011101011100000010000 diff --git a/data/strings.HuffmanDecoder/in_26 b/data/strings.HuffmanDecoder/in_26 new file mode 100644 index 0000000..f256a96 --- /dev/null +++ b/data/strings.HuffmanDecoder/in_26 @@ -0,0 +1,2 @@ +Quisque vitae odio condimentum, euismod lorem sed, volutpat tortor. +0011011101110000101111001101111001010011110000000111111001010101111100101010011000101100100111110010001110100100001101100011110101011101101110000101000101011101001101101111111110100001000101110011111110101010011101011011101000011001001110000100001011111100010111111001100 diff --git a/data/strings.HuffmanDecoder/in_27 b/data/strings.HuffmanDecoder/in_27 new file mode 100644 index 0000000..bd0f31b --- /dev/null +++ b/data/strings.HuffmanDecoder/in_27 @@ -0,0 +1,2 @@ +Aenean congue orci quis purus mattis, a porttitor tellus suscipit. +0110100111111100111110101111010111011100111110011011001011110110011100110111110101100011001111000010111111001110000100010110001011010010010111000001100010111010101111111001110001001011100101001110010101001111000010000001000101000001000110111110111111110010011001 diff --git a/data/strings.HuffmanDecoder/in_28 b/data/strings.HuffmanDecoder/in_28 new file mode 100644 index 0000000..53fb4f3 --- /dev/null +++ b/data/strings.HuffmanDecoder/in_28 @@ -0,0 +1,2 @@ +In varius enim id orci imperdiet feugiat sed et felis. +10010100001110001110011010011000100101111011000011010111111110001111110110101001010001101111101011100010011010000111100111000111101010110010101001110100111000111010101100111110111000111101010111011001100101100100 diff --git a/data/strings.HuffmanDecoder/in_29 b/data/strings.HuffmanDecoder/in_29 new file mode 100644 index 0000000..ab58111 --- /dev/null +++ b/data/strings.HuffmanDecoder/in_29 @@ -0,0 +1,2 @@ +Vestibulum interdum diam a erat gravida mattis. +11011110100010010000111000110011101011001111011000111011010101010110011110011110110011000100111101110001110101011100010011111001101110011010000001110001111111000100100000010110110 diff --git a/data/strings.HuffmanDecoder/in_3 b/data/strings.HuffmanDecoder/in_3 new file mode 100644 index 0000000..ab5bf21 --- /dev/null +++ b/data/strings.HuffmanDecoder/in_3 @@ -0,0 +1,2 @@ +Quisque imperdiet quam sed faucibus rhoncus. +100111101000010001110111100110001111100101111010001101100011101001001100111011100011111011010111011011011110011110001011101000011001010101001110001111000010011110111010101010100110 diff --git a/data/strings.HuffmanDecoder/in_30 b/data/strings.HuffmanDecoder/in_30 new file mode 100644 index 0000000..50d1fc1 --- /dev/null +++ b/data/strings.HuffmanDecoder/in_30 @@ -0,0 +1,2 @@ +Suspendisse varius sem sit amet libero molestie, eget elementum libero tristique. +11110100101011000001110000011111011001011011110100101101111110010000101010111000111101010100011001111010011111010101101110100000100111111111001001011110010101011100011100111110001110111100010011000000011011101001100001110101011000001111001011010100000100111111111001001011110011100100001011111000110110001011101111001 diff --git a/data/strings.HuffmanDecoder/in_31 b/data/strings.HuffmanDecoder/in_31 new file mode 100644 index 0000000..c5ee708 --- /dev/null +++ b/data/strings.HuffmanDecoder/in_31 @@ -0,0 +1,2 @@ +Nunc porttitor felis id elit pharetra, quis vulputate quam accumsan. +0101000000111111100101111101000010010010011100001100001001101010110011011101110011111101110001010110101101110111000011011111001011111011001011000110011101010010101100010001100111111010100000011101111100000011101001011010110001000110101110101110111100111000000111011111110101111010011 diff --git a/data/strings.HuffmanDecoder/in_32 b/data/strings.HuffmanDecoder/in_32 new file mode 100644 index 0000000..037be1d --- /dev/null +++ b/data/strings.HuffmanDecoder/in_32 @@ -0,0 +1,2 @@ +Vivamus imperdiet arcu et semper dapibus. +1111110011111010011010111011010100011010101101111000001001011100001010011100000011110010011100001011010111010101101111000100001100110110010000011101101111110 diff --git a/data/strings.HuffmanDecoder/in_33 b/data/strings.HuffmanDecoder/in_33 new file mode 100644 index 0000000..a5fdc27 --- /dev/null +++ b/data/strings.HuffmanDecoder/in_33 @@ -0,0 +1,2 @@ +Aliquam quis erat in dui fringilla malesuada quis id enim. +100011111011001101111000010010101101111110011110100111001100010000101110010110100101111110101100100100111100101100101110111011100001010100000111000110111111100000100001010110111111001111011100010101001101011100100100010 diff --git a/data/strings.HuffmanDecoder/in_34 b/data/strings.HuffmanDecoder/in_34 new file mode 100644 index 0000000..8d712ad --- /dev/null +++ b/data/strings.HuffmanDecoder/in_34 @@ -0,0 +1,2 @@ +Pellentesque rutrum velit vel pulvinar ultrices. +01111110110010010111100000101111010111001010100111110100001111010110110001110010110001100000011100101100001110111010100110001101110011010011110010101000001111011011010110111101011110 diff --git a/data/strings.HuffmanDecoder/in_35 b/data/strings.HuffmanDecoder/in_35 new file mode 100644 index 0000000..7063ca7 --- /dev/null +++ b/data/strings.HuffmanDecoder/in_35 @@ -0,0 +1,2 @@ +Pellentesque rutrum turpis id nunc auctor, at scelerisque metus eleifend. +00001011000110011110010111111101110101000111101001011011111110110110100010011110111011010011001011101000010000111000101011010110101100000100111010111110100101011000000100000101111100111010101110001111010110010111010100011110100010001101111011111010011000111100010000011110010100011000001 diff --git a/data/strings.HuffmanDecoder/in_36 b/data/strings.HuffmanDecoder/in_36 new file mode 100644 index 0000000..75c6803 --- /dev/null +++ b/data/strings.HuffmanDecoder/in_36 @@ -0,0 +1,2 @@ +Praesent id justo egestas, scelerisque eros id, fringilla felis. +00110111101111011010111001111001001000001100010001111100111010010100100101100111011010100101111010111111101010100111011010001101110000101111110100111100101101110100101010100000110011111101001101111000001111011100001000100011110010011011101000000101001100 diff --git a/data/strings.HuffmanDecoder/in_37 b/data/strings.HuffmanDecoder/in_37 new file mode 100644 index 0000000..31862e9 --- /dev/null +++ b/data/strings.HuffmanDecoder/in_37 @@ -0,0 +1,2 @@ +Ut fringilla tortor in tortor feugiat maximus. +110011101100110110100011111111100001111011110101111001010000101010000101000011111110010100001010100001010011011110100011011100001011110110011110011111000001111100110110101110010 diff --git a/data/strings.HuffmanDecoder/in_38 b/data/strings.HuffmanDecoder/in_38 new file mode 100644 index 0000000..5b894dd --- /dev/null +++ b/data/strings.HuffmanDecoder/in_38 @@ -0,0 +1,2 @@ +Morbi dapibus neque at dolor ultricies porta. +1010110000101101011110111110010000010111111010110000110111101111001101001100100101110001011011111000001110100001001111001110110110101111110110111110010011011001000001010111000101010 diff --git a/data/strings.HuffmanDecoder/in_39 b/data/strings.HuffmanDecoder/in_39 new file mode 100644 index 0000000..b0e45fa --- /dev/null +++ b/data/strings.HuffmanDecoder/in_39 @@ -0,0 +1,2 @@ +Quisque accumsan quam quis fermentum imperdiet. +10001110111101100100110100100001111101011010101010110001111111000010011010111010000100110111101100000110111001111110100011111001101010100001110010100000011111111011011100010110100010 diff --git a/data/strings.HuffmanDecoder/in_4 b/data/strings.HuffmanDecoder/in_4 new file mode 100644 index 0000000..c26193c --- /dev/null +++ b/data/strings.HuffmanDecoder/in_4 @@ -0,0 +1,2 @@ +Aliquam aliquet libero id purus iaculis, quis semper dui interdum. +001100010011000101001111000001011111001001100010100111001011101010011000110111100110000101011101111110101010100011010001111011101111000111010001001100111000110101001010011001111010111111000000101011100110101111111001101011100011110101111100110111111000000000111 diff --git a/data/strings.HuffmanDecoder/in_40 b/data/strings.HuffmanDecoder/in_40 new file mode 100644 index 0000000..73c8b42 --- /dev/null +++ b/data/strings.HuffmanDecoder/in_40 @@ -0,0 +1,2 @@ +Nullam ullamcorper tellus sed nisi dictum commodo. +110001111110110111001000010111110110111001000001111101101111010101111101101000100111101101111110010101001011101100101101001000100110000100110100000110010111100001000111110000000111001101110110000 diff --git a/data/strings.HuffmanDecoder/in_41 b/data/strings.HuffmanDecoder/in_41 new file mode 100644 index 0000000..3e9aec8 --- /dev/null +++ b/data/strings.HuffmanDecoder/in_41 @@ -0,0 +1,2 @@ +Vivamus in quam nec arcu lobortis sodales at vitae est. +011011101000100101011101110001111010110001110110001110101011111111000100110001111010110011000101111111011000111000000011110011101101000011100000111000010101011010010001110101101111001010101101010100111110010001101011010 diff --git a/data/strings.HuffmanDecoder/in_42 b/data/strings.HuffmanDecoder/in_42 new file mode 100644 index 0000000..e625d9b --- /dev/null +++ b/data/strings.HuffmanDecoder/in_42 @@ -0,0 +1,2 @@ +Donec et felis in ligula elementum egestas quis malesuada nunc. +010101111100111010101011100101010010001100110111010111000100011111101001101011101101001110111001001011101101111111011110010000111111100101011011010000100110000010011110100101110001001111111001101101000001110001100011001001110001111001011010100 diff --git a/data/strings.HuffmanDecoder/in_43 b/data/strings.HuffmanDecoder/in_43 new file mode 100644 index 0000000..bc9cc58 --- /dev/null +++ b/data/strings.HuffmanDecoder/in_43 @@ -0,0 +1,2 @@ +Mauris bibendum sapien a lorem sodales vulputate. +10101100100011100100011110111011010001011001011001101110001100001111110011101110000101100101100101110011101011100010110000111111110101011100110010101111011101000001001110110001110100111101010101010 diff --git a/data/strings.HuffmanDecoder/in_44 b/data/strings.HuffmanDecoder/in_44 new file mode 100644 index 0000000..fd9867b --- /dev/null +++ b/data/strings.HuffmanDecoder/in_44 @@ -0,0 +1,2 @@ +Ut sodales neque a arcu pellentesque ultricies et at nisi. +010111001110000011111011110011010011110001100100111101001011111110011011001101010101110101111001010111100110011110100001111000101001011111110101110010011010110000111010001110001101110011100110001110010010000001000010110 diff --git a/data/strings.HuffmanDecoder/in_45 b/data/strings.HuffmanDecoder/in_45 new file mode 100644 index 0000000..6be859f --- /dev/null +++ b/data/strings.HuffmanDecoder/in_45 @@ -0,0 +1,2 @@ +Donec nec magna efficitur, scelerisque est nec, posuere ante. +01110100001101111110010011011111100100101010000110100011010001100111011110111100101100001001010110010000111100101111001111010011110100001010110011001101111001111011010110011011111100001111001010110000101101101110100111100000111010101111011100 diff --git a/data/strings.HuffmanDecoder/in_46 b/data/strings.HuffmanDecoder/in_46 new file mode 100644 index 0000000..14a5263 --- /dev/null +++ b/data/strings.HuffmanDecoder/in_46 @@ -0,0 +1,2 @@ +Vivamus quis odio commodo, scelerisque nisi vitae, posuere eros. +01011100011100101001110111010111001100111010000111000011011000000110010101001111011110100110110001010101000111010111111011101111010000001111001110111111001011110000110001001110000011000110100111101010100110000001011110111110100111110011110100001011010110 diff --git a/data/strings.HuffmanDecoder/in_47 b/data/strings.HuffmanDecoder/in_47 new file mode 100644 index 0000000..12f5301 --- /dev/null +++ b/data/strings.HuffmanDecoder/in_47 @@ -0,0 +1,2 @@ +Vestibulum rhoncus est eu commodo sodales. +110101111110100110000111011101000010101100011001010000010000100111000101010111111101001101111110100111110010011001100100111011000111011001110111011000011111101110100 diff --git a/data/strings.HuffmanDecoder/in_48 b/data/strings.HuffmanDecoder/in_48 new file mode 100644 index 0000000..583d322 --- /dev/null +++ b/data/strings.HuffmanDecoder/in_48 @@ -0,0 +1,2 @@ +Suspendisse sit amet odio vehicula, fermentum tellus at, venenatis est. +111110110100000101111100110010101011000000110100000101100110001001110111000110001110010101011011101000111111001011010111111110101011100010011110110011111111101111001110111001100011010111011000011101110011100101000010001000011111011000111111001101100110010000110110001001100000011111100 diff --git a/data/strings.HuffmanDecoder/in_49 b/data/strings.HuffmanDecoder/in_49 new file mode 100644 index 0000000..ed8683a --- /dev/null +++ b/data/strings.HuffmanDecoder/in_49 @@ -0,0 +1,2 @@ +Integer vitae elit faucibus, feugiat enim in, ullamcorper turpis. +010101111111101000101000001100011010000011101100000001100011110001110101110011100011101001000101011011101011101001011100110001110101000011000110101100011111001101010110011111101001011111011110111101000101011001001011111001011000011000111101111011001011000110111010100 diff --git a/data/strings.HuffmanDecoder/in_5 b/data/strings.HuffmanDecoder/in_5 new file mode 100644 index 0000000..6addbea --- /dev/null +++ b/data/strings.HuffmanDecoder/in_5 @@ -0,0 +1,2 @@ +Vivamus volutpat turpis dignissim, dignissim mauris pellentesque, mattis erat. +0010111010100101011001110001100001001010000110101100111111100010111110001111110011101111001010110000011010100111110111010110111011001001000000011010100111110111010110111011001000100101011100111011010110001110010001101011010100011011111110000110100011100100000100000100101011111111110101100010001110101011111001010 diff --git a/data/strings.HuffmanDecoder/in_50 b/data/strings.HuffmanDecoder/in_50 new file mode 100644 index 0000000..439ec0f --- /dev/null +++ b/data/strings.HuffmanDecoder/in_50 @@ -0,0 +1,2 @@ +Sed mattis quam et nunc suscipit laoreet. +11110100100000101000101111001001100110110101100111001110001101001100101010011100100111111011101111011011111111000101111001001010000101110101001101001001100111100 diff --git a/data/strings.HuffmanDecoder/in_51 b/data/strings.HuffmanDecoder/in_51 new file mode 100644 index 0000000..83cb926 --- /dev/null +++ b/data/strings.HuffmanDecoder/in_51 @@ -0,0 +1,2 @@ +Donec non nisl id velit luctus tincidunt. +1111110010110000110101001100010110100110011001110111000110000100111100001101101101010010111110101001011100011100010011110101001100001110110010111110 diff --git a/data/strings.HuffmanDecoder/in_52 b/data/strings.HuffmanDecoder/in_52 new file mode 100644 index 0000000..9b378ad --- /dev/null +++ b/data/strings.HuffmanDecoder/in_52 @@ -0,0 +1,2 @@ +Praesent ut neque aliquam, vehicula purus eu, eleifend est. +101001110111011111001111100100100100011010010000101111101001111110010110001000011010011101111001001011100010101111100010000101010011000110111001100110111101101100111001110110101110011100011110000110000111001010101110011100110100101000 diff --git a/data/strings.HuffmanDecoder/in_53 b/data/strings.HuffmanDecoder/in_53 new file mode 100644 index 0000000..7ee9d6d --- /dev/null +++ b/data/strings.HuffmanDecoder/in_53 @@ -0,0 +1,2 @@ +Ut tempus nisl at lectus feugiat egestas. +1100111111011110100110011000110110010101101001010000111010111111101001101000000111110110010100001010110100010010011111110101000010101001110111100110010 diff --git a/data/strings.HuffmanDecoder/in_54 b/data/strings.HuffmanDecoder/in_54 new file mode 100644 index 0000000..355bcd2 --- /dev/null +++ b/data/strings.HuffmanDecoder/in_54 @@ -0,0 +1,2 @@ +Nullam a nunc condimentum, gravida lorem sed, tempus tortor. +0110011110001000100111111101001110101010111010100110101001101101110100001100111111100010101101111011110011101010010011000111001101001100010111010001010111100100011110100000100000010011101011011000111110010111100000010110110111100110110111100011000 diff --git a/data/strings.HuffmanDecoder/in_55 b/data/strings.HuffmanDecoder/in_55 new file mode 100644 index 0000000..1e582c1 --- /dev/null +++ b/data/strings.HuffmanDecoder/in_55 @@ -0,0 +1,2 @@ +Phasellus ultricies odio in rhoncus volutpat. +10101111010101100011100111111111010001011010111110011000111010111111011001001011000110000111000001111101101101110001101000011011101110100010111010000011110101001110001101101001101010 diff --git a/data/strings.HuffmanDecoder/in_56 b/data/strings.HuffmanDecoder/in_56 new file mode 100644 index 0000000..a8a3dd1 --- /dev/null +++ b/data/strings.HuffmanDecoder/in_56 @@ -0,0 +1,2 @@ +Mauris vel nisl nec lacus maximus rutrum non ut eros. +101001001110011010101000111001000100011011110110101000011011110110100101011110110001110101100000111011100110010101010111100000111110110011001110110001111111011110001011111100110011110100110111000000101000 diff --git a/data/strings.HuffmanDecoder/in_57 b/data/strings.HuffmanDecoder/in_57 new file mode 100644 index 0000000..db589fb --- /dev/null +++ b/data/strings.HuffmanDecoder/in_57 @@ -0,0 +1,2 @@ +Proin vestibulum risus a tincidunt scelerisque. +110011101000100100001100011000111101010111001101010111110101111100100010101000100110100001101000001011100001111011100111000011001110110000101101111111110111111010100010001010111111110010 diff --git a/data/strings.HuffmanDecoder/in_58 b/data/strings.HuffmanDecoder/in_58 new file mode 100644 index 0000000..d1e13d8 --- /dev/null +++ b/data/strings.HuffmanDecoder/in_58 @@ -0,0 +1,2 @@ +Etiam congue nunc sed ante pulvinar, eget cursus purus lacinia. +011000001010001101100110101011110011100001101010111010100001000001111011100111001100110111010000010111010111110010100100011010000001101111110011101011110011011110001010101110101111111000101100101111100101111101011001011001011010111100000010001101001111 diff --git a/data/strings.HuffmanDecoder/in_59 b/data/strings.HuffmanDecoder/in_59 new file mode 100644 index 0000000..c642a79 --- /dev/null +++ b/data/strings.HuffmanDecoder/in_59 @@ -0,0 +1,2 @@ +Mauris in felis vitae quam dictum tristique. +111001011101001101101011100110000001001111001010111101110101110000001110001011110101000001010011111111100111011110111010001010111111000010110110101100111000010101010111000 diff --git a/data/strings.HuffmanDecoder/in_6 b/data/strings.HuffmanDecoder/in_6 new file mode 100644 index 0000000..7a652a7 --- /dev/null +++ b/data/strings.HuffmanDecoder/in_6 @@ -0,0 +1,2 @@ +Donec luctus dolor vel ultricies maximus. +11101111000010010101001011000010100110000101101011111101110000011000011011001011010000011010000100000111011100110111010110101111111111100111001011111110101101111010 diff --git a/data/strings.HuffmanDecoder/in_60 b/data/strings.HuffmanDecoder/in_60 new file mode 100644 index 0000000..68c7ff7 --- /dev/null +++ b/data/strings.HuffmanDecoder/in_60 @@ -0,0 +1,2 @@ +Aenean pharetra augue eu velit lacinia, ut egestas massa tristique. +0100001011101110110011011011110100010100100000010100100001000111001111010011111101011101111101100010101010111100001011010111000100011100110111100100000110011111100101110101001101111000110011100110101011001110111010001100100001100111000111001101011111101000111 diff --git a/data/strings.HuffmanDecoder/in_61 b/data/strings.HuffmanDecoder/in_61 new file mode 100644 index 0000000..374ede5 --- /dev/null +++ b/data/strings.HuffmanDecoder/in_61 @@ -0,0 +1,2 @@ +Vestibulum scelerisque ante sed augue congue, laoreet dapibus dui consectetur. +0000101101111101001100010010010110100000011010111100111101011011011101011011110111011001100100001101111010110010111111001111010000110000101100110010001111100101110010110011000000001010110000111100111011101101010010011110001011100011000100100111101001111100011001000111110010111111111000111010110101010011101000001 diff --git a/data/strings.HuffmanDecoder/in_62 b/data/strings.HuffmanDecoder/in_62 new file mode 100644 index 0000000..87945bb --- /dev/null +++ b/data/strings.HuffmanDecoder/in_62 @@ -0,0 +1,2 @@ +Etiam id lectus at diam egestas mattis. +00001111010100110110101000101010011011000001011100111011101100111101001001010011011011100000111100011111100011101110110011111101001100000 diff --git a/data/strings.HuffmanDecoder/in_63 b/data/strings.HuffmanDecoder/in_63 new file mode 100644 index 0000000..70737d2 --- /dev/null +++ b/data/strings.HuffmanDecoder/in_63 @@ -0,0 +1,2 @@ +Duis vitae urna vitae orci feugiat tristique. +11010101010100101000011101011111011111000101100000011110100001110101111101111100000101100110110101100110111111101000000101111001110001111001010010011101000110101111110100 diff --git a/data/strings.HuffmanDecoder/in_64 b/data/strings.HuffmanDecoder/in_64 new file mode 100644 index 0000000..03e81eb --- /dev/null +++ b/data/strings.HuffmanDecoder/in_64 @@ -0,0 +1,2 @@ +Praesent laoreet dolor id efficitur mollis. +110001010110011001010100111010101101100011001001010100100101101111011001000001010011111111011011100111001110011111101001111101111101101001111010100100000011111010110000 diff --git a/data/strings.HuffmanDecoder/in_65 b/data/strings.HuffmanDecoder/in_65 new file mode 100644 index 0000000..57ca86e --- /dev/null +++ b/data/strings.HuffmanDecoder/in_65 @@ -0,0 +1,2 @@ +Curabitur vel orci pretium, fermentum velit vitae, viverra erat. +001111101111001100111001111000101111001011101001010001010101011001110111110101010111101000001111101100100011001001111010011000101000111110001011001001011101001010011110000101110111100001101000011001011101111111010011011001100101001100110000001110 diff --git a/data/strings.HuffmanDecoder/in_66 b/data/strings.HuffmanDecoder/in_66 new file mode 100644 index 0000000..5486a57 --- /dev/null +++ b/data/strings.HuffmanDecoder/in_66 @@ -0,0 +1,2 @@ +Mauris mattis nisi placerat, accumsan ipsum sit amet, hendrerit lorem. +01100100111101110001011111001011001000000010111110011011010111101010001111011100011101010101100001000111001100001110101101011101101111110011101110001001111111111101101110011110100001000011011101000011100110001101110101101101101011001010110001000010001110111000110010101011011000 diff --git a/data/strings.HuffmanDecoder/in_67 b/data/strings.HuffmanDecoder/in_67 new file mode 100644 index 0000000..2c89984 --- /dev/null +++ b/data/strings.HuffmanDecoder/in_67 @@ -0,0 +1,2 @@ +Sed finibus tellus ut blandit blandit. +11011100011100100110100011110001101111111010100011000101001011111010100111101110010110100000111011000010111001011010000011101100001011110110 diff --git a/data/strings.HuffmanDecoder/in_68 b/data/strings.HuffmanDecoder/in_68 new file mode 100644 index 0000000..52ad458 --- /dev/null +++ b/data/strings.HuffmanDecoder/in_68 @@ -0,0 +1,2 @@ +Aliquam in eros sit amet lacus molestie egestas nec sit amet eros. +010001000011010101010111111000110111110101011111101011100001100111100110100111111000110101001111000011000100101111100111011000010000101100001110110111110101010010110000111001001110101110101001111100110100111111000110101001111101011100001100010000 diff --git a/data/strings.HuffmanDecoder/in_69 b/data/strings.HuffmanDecoder/in_69 new file mode 100644 index 0000000..95a0237 --- /dev/null +++ b/data/strings.HuffmanDecoder/in_69 @@ -0,0 +1,2 @@ +Curabitur quis massa id tortor semper aliquet nec id ipsum. +011001001111101110110100101011001111111011100001010000110111010111000000011111001010000110101110100111110111010011111100001001111011010110011111110011110001001011100001100110111101000111001011011110010100001100101010100000111101011000 diff --git a/data/strings.HuffmanDecoder/in_7 b/data/strings.HuffmanDecoder/in_7 new file mode 100644 index 0000000..8d03980 --- /dev/null +++ b/data/strings.HuffmanDecoder/in_7 @@ -0,0 +1,2 @@ +Vestibulum eget eros interdum magna feugiat semper non et orci. +0100011100011111101100100101110010110111001111011100001110111110111010010010001110101101000111111010010101001110011110101110000000110000000101010101110111000010110000011111010011110011101011111010011011000001010001011101111101001010010100110110010000 diff --git a/data/strings.HuffmanDecoder/in_70 b/data/strings.HuffmanDecoder/in_70 new file mode 100644 index 0000000..93c52bd --- /dev/null +++ b/data/strings.HuffmanDecoder/in_70 @@ -0,0 +1,2 @@ +Vestibulum ac leo cursus, vehicula ex id, lobortis mauris. +01111110111111110111110101000101100010110101000001001010011001011001110000100100110111101011110111010000000101110101111100010010110000011001011000011001110101010011101001100001110100001101101101111101111100110100001010011011101111011110 diff --git a/data/strings.HuffmanDecoder/in_71 b/data/strings.HuffmanDecoder/in_71 new file mode 100644 index 0000000..60ce2a7 --- /dev/null +++ b/data/strings.HuffmanDecoder/in_71 @@ -0,0 +1,2 @@ +Sed euismod sapien posuere semper mattis. +11001111100010111110101101010010110010000101110000001101101011111000011110100101000101111001111101110011110111101111001101110110000010001001010100110010 diff --git a/data/strings.HuffmanDecoder/in_72 b/data/strings.HuffmanDecoder/in_72 new file mode 100644 index 0000000..b05804b --- /dev/null +++ b/data/strings.HuffmanDecoder/in_72 @@ -0,0 +1,2 @@ +Vestibulum scelerisque lorem convallis diam rutrum, id imperdiet magna porta. +00100011110100010100000100110111001101111000110100001011111100111111110000010000110110111111011100111010111011111100011001011101000111110110100010011001000010001110101000100011000111110101101011110101111001101110011000101010110001100101001111111010101000111101010111100100000110000111100001110100110101110010110001101111 diff --git a/data/strings.HuffmanDecoder/in_73 b/data/strings.HuffmanDecoder/in_73 new file mode 100644 index 0000000..7907a98 --- /dev/null +++ b/data/strings.HuffmanDecoder/in_73 @@ -0,0 +1,2 @@ +Maecenas lobortis arcu quis urna pretium commodo. +101011110001110110011111100110010110101101100011101000011111111011000101101011001111011000001010100000100010110100001111111001100010110111111101111110110000001001010011000110011001001110101001101010 diff --git a/data/strings.HuffmanDecoder/in_74 b/data/strings.HuffmanDecoder/in_74 new file mode 100644 index 0000000..9f788d1 --- /dev/null +++ b/data/strings.HuffmanDecoder/in_74 @@ -0,0 +1,2 @@ +Nullam tristique ligula vel urna laoreet pharetra. +1001111111101101011110010010111000110001101111110100011011011110000101011000110000111110101101010010000101010111100111001101101010101111010000100000011100101101011100010110010001110001011100110 diff --git a/data/strings.HuffmanDecoder/in_75 b/data/strings.HuffmanDecoder/in_75 new file mode 100644 index 0000000..22b5230 --- /dev/null +++ b/data/strings.HuffmanDecoder/in_75 @@ -0,0 +1,2 @@ +Cras venenatis libero quis augue fringilla blandit. +101011001100010000101010011001111110011110000010011100001011100111011011000011110110010110111100101110000100001001110101001110001010111100110111111110100111110111000001010110111000011111011100110010101010 diff --git a/data/strings.HuffmanDecoder/in_76 b/data/strings.HuffmanDecoder/in_76 new file mode 100644 index 0000000..4b234a2 --- /dev/null +++ b/data/strings.HuffmanDecoder/in_76 @@ -0,0 +1,2 @@ +Vivamus finibus urna ac eros fermentum, eu condimentum turpis varius. +001010000111100011101101111101000101000011000000010110111110100011110111000011100001101000100101011010101111101000101010101101101110101100111110111011001000100101001110001000010111100010010000101110101100111110111011100111110111101010011000111010011110001111010000111110001001 diff --git a/data/strings.HuffmanDecoder/in_77 b/data/strings.HuffmanDecoder/in_77 new file mode 100644 index 0000000..dd20fac --- /dev/null +++ b/data/strings.HuffmanDecoder/in_77 @@ -0,0 +1,2 @@ +Vestibulum malesuada tortor et varius elementum. +11000110010110101110011001001100110111111000111111010011100101101111011100111101000010001010100100010101000010001000011101111011010111000111011000100001110011111001110100100111111110000 diff --git a/data/strings.HuffmanDecoder/in_78 b/data/strings.HuffmanDecoder/in_78 new file mode 100644 index 0000000..7fb3370 --- /dev/null +++ b/data/strings.HuffmanDecoder/in_78 @@ -0,0 +1,2 @@ +Sed convallis augue a nisi aliquet lobortis. +11011101111111101001111011010001011010111000000001010111001110110011111111000111100111010000100101011010100111000001000110110001110110100000101011110010100011101100101011110110 diff --git a/data/strings.HuffmanDecoder/in_79 b/data/strings.HuffmanDecoder/in_79 new file mode 100644 index 0000000..d5e1e77 --- /dev/null +++ b/data/strings.HuffmanDecoder/in_79 @@ -0,0 +1,2 @@ +Sed sed ipsum posuere, sollicitudin turpis accumsan, sollicitudin diam. +0011110111101101000001111011010100111010001111110100101110111100000111101111100001110011001000011100101010101000110100001011111011100110110100010111111000111011000000101100101100110111111010000110011101100110010000111001010101010001101000010111110111001101101010111001100111010001110 diff --git a/data/strings.HuffmanDecoder/in_8 b/data/strings.HuffmanDecoder/in_8 new file mode 100644 index 0000000..2b35ec3 --- /dev/null +++ b/data/strings.HuffmanDecoder/in_8 @@ -0,0 +1,2 @@ +Praesent ut orci quis libero mollis viverra. +11001101111100111111011111000010001100001000011001011011111011010100110000010010110110010100101110101111011101110000000101110101010010110110000110100011111101101111100110010 diff --git a/data/strings.HuffmanDecoder/in_80 b/data/strings.HuffmanDecoder/in_80 new file mode 100644 index 0000000..f865b30 --- /dev/null +++ b/data/strings.HuffmanDecoder/in_80 @@ -0,0 +1,2 @@ +Praesent malesuada nibh eu ultricies placerat. +101011101101001111000110001110100100001010100101111001110010111101010001000110001111000000000101111100011110100111011011100011111100001111000011010010010101111101110110101101101010 diff --git a/data/strings.HuffmanDecoder/in_81 b/data/strings.HuffmanDecoder/in_81 new file mode 100644 index 0000000..39b0a90 --- /dev/null +++ b/data/strings.HuffmanDecoder/in_81 @@ -0,0 +1,2 @@ +Maecenas aliquet ligula convallis mauris sodales mattis. +100011101110010010110011011101010000101001111111101001111100011000000111111001110111001101000100101110011011100001010010011111010000110101010111111011111101000001011100100110101001110001000011010101011001101111010100010 diff --git a/data/strings.HuffmanDecoder/in_82 b/data/strings.HuffmanDecoder/in_82 new file mode 100644 index 0000000..429ca16 --- /dev/null +++ b/data/strings.HuffmanDecoder/in_82 @@ -0,0 +1,2 @@ +Maecenas ultrices quam et convallis suscipit. +1100011101111111101111001011011000101011011110100110000011101111100010001111011110111001001011111010010111011001100100110111010111011100010001010010111001110000001100001010110000 diff --git a/data/strings.HuffmanDecoder/in_83 b/data/strings.HuffmanDecoder/in_83 new file mode 100644 index 0000000..13e7e1a --- /dev/null +++ b/data/strings.HuffmanDecoder/in_83 @@ -0,0 +1,2 @@ +Duis eleifend enim ut sem viverra blandit. +1110010101011001110111000001100111111011101001111111011101001011000110101010100101001111000011011000011100011000100010111011011111000000111011001111110110100111000 diff --git a/data/strings.HuffmanDecoder/in_84 b/data/strings.HuffmanDecoder/in_84 new file mode 100644 index 0000000..ec9f342 --- /dev/null +++ b/data/strings.HuffmanDecoder/in_84 @@ -0,0 +1,2 @@ +Duis egestas nunc in faucibus vehicula. +11111110100101001111010001011010101000110010100111110101111011000110011110011000011001101110000100000101010011111101101000110011100101100001001111110 diff --git a/data/strings.HuffmanDecoder/in_85 b/data/strings.HuffmanDecoder/in_85 new file mode 100644 index 0000000..1130af5 --- /dev/null +++ b/data/strings.HuffmanDecoder/in_85 @@ -0,0 +1,2 @@ +Suspendisse eleifend tortor vel ultricies ultricies. +1000110011010110001101110011001101101001010100010111011010111100001011100110011000111100101110111100101110000100001011101000001111011111111001110010011101010000001111011111111001110010011101010100010 diff --git a/data/strings.HuffmanDecoder/in_86 b/data/strings.HuffmanDecoder/in_86 new file mode 100644 index 0000000..e113f05 --- /dev/null +++ b/data/strings.HuffmanDecoder/in_86 @@ -0,0 +1,2 @@ +Etiam sit amet lorem blandit, viverra massa congue, elementum arcu. +0110011100100000111111010000100011001010011111010110010111100011111001010111110101101011100001111010110111000110011011110111010100011010010100110010011011111001000000000011010111001111111011101100001010110111101010111000101111010111011100000111111010011001011100001011000 diff --git a/data/strings.HuffmanDecoder/in_87 b/data/strings.HuffmanDecoder/in_87 new file mode 100644 index 0000000..1142c1d --- /dev/null +++ b/data/strings.HuffmanDecoder/in_87 @@ -0,0 +1,2 @@ +Quisque rutrum dui eget eros tincidunt, et malesuada neque condimentum. +00100010111001111101011101100011111101010001111010101000110011101110001110000100110000001110011110010101111101100011001101001011100001110111010001110110011100000011010011100111010100111111011110000111110001111011000101110110001100101010101101001111000100100110100010101001110111 diff --git a/data/strings.HuffmanDecoder/in_88 b/data/strings.HuffmanDecoder/in_88 new file mode 100644 index 0000000..179f286 --- /dev/null +++ b/data/strings.HuffmanDecoder/in_88 @@ -0,0 +1,2 @@ +Integer nec mi eleifend, ultricies diam rutrum, convallis turpis. +01010110101011000100011000111001110100001101101111110001011000100100000110001000010101000001001011110010011011111000111011001000111110111000000101011111100111110110010111110110011110010010111101111010010100100001011100110010011111101110111100111011010100111111010100 diff --git a/data/strings.HuffmanDecoder/in_89 b/data/strings.HuffmanDecoder/in_89 new file mode 100644 index 0000000..a1d0363 --- /dev/null +++ b/data/strings.HuffmanDecoder/in_89 @@ -0,0 +1,2 @@ +Mauris ut felis eget nisi ultricies venenatis sit amet nec elit. +011001110110001110101010011110001010111011100100000010100111110001110110001011111001010011011110001000001011010101011011011000011110111111001100100110011011010101001111001101010111110110111101000101111100100011011111000000101010011000 diff --git a/data/strings.HuffmanDecoder/in_9 b/data/strings.HuffmanDecoder/in_9 new file mode 100644 index 0000000..7a1254f --- /dev/null +++ b/data/strings.HuffmanDecoder/in_9 @@ -0,0 +1,2 @@ +Fusce ullamcorper tellus id justo condimentum, quis pharetra nisi sagittis. +0001001110001101101010100111001100110010010111101101100101110101110100111100110110100110011011100011001111000111000101011110001110111001100101101100111000000111111101111010110001101111010111000010100000001110111100110001011010100010001111010110101110100100110001111001111110000101000001011111110111011111001000011 diff --git a/data/strings.HuffmanDecoder/in_90 b/data/strings.HuffmanDecoder/in_90 new file mode 100644 index 0000000..60e9bb7 --- /dev/null +++ b/data/strings.HuffmanDecoder/in_90 @@ -0,0 +1,2 @@ +Sed accumsan lacus a neque consequat pulvinar. +1100011110110010100101110111010111111100101101000100111101011101011010110010110000011100011011111010011011111110000101111000110111010100010000100011111100100111001100010100101110000 diff --git a/data/strings.HuffmanDecoder/in_91 b/data/strings.HuffmanDecoder/in_91 new file mode 100644 index 0000000..6e30688 --- /dev/null +++ b/data/strings.HuffmanDecoder/in_91 @@ -0,0 +1,2 @@ +Aenean vitae tellus sed quam ullamcorper porta sed ac ipsum. +01110101010100010000101001101111011000101100000101100110010100110011110101111010110101000011011110011100001111111011101001100100011111011111010100110010010001111000101010100110110000110101101010000110000011111101000100101011111011111011100 diff --git a/data/strings.HuffmanDecoder/in_92 b/data/strings.HuffmanDecoder/in_92 new file mode 100644 index 0000000..bb0b04a --- /dev/null +++ b/data/strings.HuffmanDecoder/in_92 @@ -0,0 +1,2 @@ +Cras eget velit id justo ultricies auctor. +1110010111111011100101000111111000100101010010000101001100101001111110101010001101110010001101011101010110001110011111000100011001011110111011111010001100111111000 diff --git a/data/strings.HuffmanDecoder/in_93 b/data/strings.HuffmanDecoder/in_93 new file mode 100644 index 0000000..c96ebc5 --- /dev/null +++ b/data/strings.HuffmanDecoder/in_93 @@ -0,0 +1,2 @@ +Cras ullamcorper felis ac venenatis aliquet. +110101101101111000100011111111110111110011101100000101100001100101101011100010011111010110001001111011010000111001110110011101011001010101100010011111110100001000111000010110100 diff --git a/data/strings.HuffmanDecoder/in_94 b/data/strings.HuffmanDecoder/in_94 new file mode 100644 index 0000000..5d7a0ca --- /dev/null +++ b/data/strings.HuffmanDecoder/in_94 @@ -0,0 +1,2 @@ +Sed faucibus risus eu nunc imperdiet posuere. +110101100111010111111001101101011110000011011110101001111000000101010100111001010111111110111111111000110001111010011100110011101000100001010110011001000101011001100100110100 diff --git a/data/strings.HuffmanDecoder/in_95 b/data/strings.HuffmanDecoder/in_95 new file mode 100644 index 0000000..b5d11a2 --- /dev/null +++ b/data/strings.HuffmanDecoder/in_95 @@ -0,0 +1,2 @@ +Quisque fermentum nunc et nisi varius rutrum nec quis felis. +0110111010011111100011010001101000000010010100000111001011010100110111010111100111111000001011101110001111100111001100011100100100110111111101001101010110011010100110111000001111110100011010011111110100000000111010011111011010 diff --git a/data/strings.HuffmanDecoder/in_96 b/data/strings.HuffmanDecoder/in_96 new file mode 100644 index 0000000..9dc4088 --- /dev/null +++ b/data/strings.HuffmanDecoder/in_96 @@ -0,0 +1,2 @@ +Proin in ante in mi commodo fringilla a ut quam. +101001110111111100011001000110010110110100110000001000110011101000010101011111110111011111010111111001100011101110001111001010011010110101011001011000101010000110011010110111110101000 diff --git a/data/strings.HuffmanDecoder/in_97 b/data/strings.HuffmanDecoder/in_97 new file mode 100644 index 0000000..45234eb --- /dev/null +++ b/data/strings.HuffmanDecoder/in_97 @@ -0,0 +1,2 @@ +Duis ultrices turpis a nisi porttitor tempus. +1010110011000100110011111001100001001110011110101001111000100010111000100111110000111010010001010001110111111100011011010011011111000011110111011111011011001010101010 diff --git a/data/strings.HuffmanDecoder/in_98 b/data/strings.HuffmanDecoder/in_98 new file mode 100644 index 0000000..31c7a99 --- /dev/null +++ b/data/strings.HuffmanDecoder/in_98 @@ -0,0 +1,2 @@ +Mauris eu ligula ut lorem congue scelerisque. +1110011110111010100101101101110011001100001011111111000011101011110010010110000011101010000100011111100011001011111111010001110111111010000010010100101101101000110100111000 diff --git a/data/strings.HuffmanDecoder/in_99 b/data/strings.HuffmanDecoder/in_99 new file mode 100644 index 0000000..fe70e86 --- /dev/null +++ b/data/strings.HuffmanDecoder/in_99 @@ -0,0 +1,2 @@ +Integer imperdiet nisi vitae nisi fermentum consectetur. +01011111110111101011011101110001100000110111111011101010011001100110011111100010010000101010100011101000110001111110001001000011011001101110000111011110110000000100110101101110111101001101010101111001100001110010110 diff --git a/src/main/java/strings/HuffmanDecoder.java b/src/main/java/strings/HuffmanDecoder.java new file mode 100644 index 0000000..5c6d2b0 --- /dev/null +++ b/src/main/java/strings/HuffmanDecoder.java @@ -0,0 +1,168 @@ +package strings; + +import java.util.ArrayList; + +/** + * You are a secret agent and your just received a new mission. The mission was sent to you as a Huffman encoded + * message with the Huffman tree to decode it. BUT, to keep the mission order secret, your boss messed the Huffman tree + * by exchanging some leaves of the tree. + * + * Your task is to repair the Huffman tree and decode the secret mission. + * + * Each node in the tree has a symbol and a frequency. The frequency and the symbol of a non leaf node are the sum of + * the frequencies and symbols of their children. + * Here is an example of a messed tree. The leaves (c, 3) and (e, 2) are exchanged. + * + * (abcde, 15) + * | + * (ab, 9) -------------------- (cde, 6) + * | | + * (a, 4)------(b, 5) (e, 2)----------(de, 3) + * | + * (d, 1)------(c, 3) + */ +public class HuffmanDecoder { + + + /** + * Decoder for a Huffman encoding. Should return the decoded string. + * You should return an empty string if the encoded string is empty. + * + * @param encoded is the encoded message to decode + * @param root the root of the Huffman tree + * @return the decoded message + */ + public static String decode(String encoded, Node root) { + // BEGIN STRIP + if (encoded.isEmpty()) return ""; + char[] chararray = encoded.toCharArray(); + if (chararray.length == 1) return root.symbol; + + StringBuilder decoded = new StringBuilder(); + repairTree(root); + Node current = root; + + for (char bit : chararray) { + if (bit == '0') current = current.left; + else current = current.right; + + if (current.left == null && current.right == null) { + decoded.append(current.symbol); + current = root; + } + } + return decoded.toString(); + // END STRIP + // STUDENT return ""; + } + + + + public static boolean IsLeaf(Node node) { + /** + * Returns true if the node is a leaf, or else returns false + */ + // BEGIN STRIP + return node.left == null && node.right == null; + } + + public static Node swapleaves(HuffmanDecoder.Node current, HuffmanDecoder.Node node2){ + /** + * Swap the two leaves current and node2, and returns node2 + */ + HuffmanDecoder.Node parent1 = current.parent; + HuffmanDecoder.Node parent2 = node2.parent; + + if (parent1.left.equals(current)){ + if (parent2.left.equals(node2)){ + parent1.left = node2; + node2.parent = parent1; + parent2.left = current; + current.parent = parent2; + }else{ + parent1.left = node2; + node2.parent = parent1; + parent2.right = current; + current.parent = parent2; + } + }else{ + if (parent2.left.equals(node2)){ + parent1.right = node2; + node2.parent = parent1; + parent2.left = current; + current.parent = parent2; + }else{ + parent1.right = node2; + node2.parent = parent1; + parent2.right = current; + current.parent = parent2; + } + } + return node2; + } + + public static void GetLeaves(Node root, ArrayList leaves) { + /** + * Fill an ArrayList with all the leaves + */ + if (root.left == null && root.right == null) { + leaves.add(root); + return; + } + GetLeaves(root.left, leaves); + GetLeaves(root.right, leaves); + // END STRIP + // STUDENT return false; + } + + public static void repairTree(Node root) { + /** + * Sort the Huffman tree so it can be used to decode an encoded message + */ + // BEGIN STRIP + ArrayList leaves = new ArrayList<>(); + ArrayList parents = new ArrayList<>(); + GetLeaves(root, leaves); + for (Node leaf : leaves) if(!parents.contains(leaf.parent)) parents.add(leaf.parent); + + + for (Node parent : parents){ + if (IsLeaf(parent.left) && parent.symbol.charAt(0) != parent.left.symbol.charAt(0)){ + for (Node leaf : leaves){ + if (parent.symbol.charAt(0) == leaf.symbol.charAt(0)) swapleaves(parent.left, leaf); + } + } + if (IsLeaf(parent.right) && parent.symbol.charAt(parent.symbol.length()-1) != parent.right.symbol.charAt(0)){ + for (Node leaf : leaves){ + if (parent.symbol.charAt(parent.symbol.length()-1) == leaf.symbol.charAt(0)) swapleaves(parent.right, leaf); + } + } + } + + // END STRIP + } + + + public static class Node implements Comparable { + String symbol; + int freq; + Node left; + Node right; + Node parent; + + public Node(String symbol, int frequency, Node left, Node right, Node parent) { + this.symbol = symbol; + this.freq = frequency; + this.left = left; + this.right = right; + this.parent = parent; + } + + @Override + public int compareTo(Node other) { + if (this.freq == other.freq) return this.symbol.compareTo(other.symbol); + return this.freq - other.freq; + } + } + +} \ No newline at end of file diff --git a/src/main/java/strings/HuffmanDecoderGenerator.java b/src/main/java/strings/HuffmanDecoderGenerator.java new file mode 100644 index 0000000..be81c55 --- /dev/null +++ b/src/main/java/strings/HuffmanDecoderGenerator.java @@ -0,0 +1,159 @@ +package strings; + +import java.util.*; +import java.io.PrintWriter; +import java.io.BufferedReader; +import java.io.FileReader; +import java.io.FileOutputStream; +import java.io.FileNotFoundException; + + +public class HuffmanDecoderGenerator { + private static Hashtable codes; + + public static void main(String [] args) throws Exception{ + HashMap sentences = new HashMap<>(); + BufferedReader br = new BufferedReader(new FileReader("data/strings.HuffmanDecoder/LoremIpsum.txt")); + + int LignNumber = 0; + String ligne; + while ((ligne = br.readLine()) != null) { + sentences.put(LignNumber, ligne); + LignNumber++; + } + br.close(); + + for (int instance_id = 0; instance_id < LignNumber; instance_id++) { + String sentence = sentences.get(instance_id); + HuffmanTree(sentence); + String encodedsentence = encode(sentence); + String instance_file = "data/strings.HuffmanDecoder/in_" + instance_id; + writeInstance(instance_file, sentence, encodedsentence); + } + } + + public static void GetLeaves(HuffmanDecoder.Node root, ArrayList leaves) { + /** + * Fill an ArrayList with all the leaves + */ + if (root.left == null && root.right == null) { + leaves.add(root); + return; + } + GetLeaves(root.left, leaves); + GetLeaves(root.right, leaves); + + } + + public static void swap(HuffmanDecoder.Node node1, HuffmanDecoder.Node node2){ + HuffmanDecoder.Node parent1 = node1.parent; + HuffmanDecoder.Node parent2 = node2.parent; + + if (parent1.left.equals(node1)){ + if (parent2.left.equals(node2)){ + parent1.left = node2; + node2.parent = parent1; + parent2.left = node1; + node1.parent = parent2; + }else{ + parent1.left = node2; + node2.parent = parent1; + parent2.right = node1; + node1.parent = parent2; + } + }else{ + if (parent2.left.equals(node2)){ + parent1.right = node2; + node2.parent = parent1; + parent2.left = node1; + node1.parent = parent2; + }else{ + parent1.right = node2; + node2.parent = parent1; + parent2.right = node1; + node1.parent = parent2; + } + } + } + + public static void MessTree(HuffmanDecoder.Node root) { + /** + * Builds a Huffman tree and return the encoded sentence s + */ + ArrayList leaves = new ArrayList<>(); + GetLeaves(root, leaves); + int nbLeaves = leaves.size(); + + Random r = new Random(); + if (r.nextInt(10) != 0){ + int nbShuffle = r.nextInt(nbLeaves-2)+2; + for (int i = 0; i < nbShuffle; i++) { + HuffmanDecoder.Node leaf1 = leaves.get(r.nextInt(nbLeaves)); + HuffmanDecoder.Node leaf2 = leaves.get(r.nextInt(nbLeaves)); + swap(leaf1, leaf2); + + } + } + } + + public static HuffmanDecoder.Node HuffmanTree(String s) { + /** + * Builds a Huffman tree and return the encoded sentence s + */ + Hashtable uniquesymbolfreq = new Hashtable<>(); + + for (char c : s.toCharArray()) { + uniquesymbolfreq.put(c, uniquesymbolfreq.getOrDefault(c, 0) + 1); + } + + PriorityQueue pq = new PriorityQueue<>(); + for (Character c : uniquesymbolfreq.keySet()) { + pq.add(new HuffmanDecoder.Node(String.valueOf(c), uniquesymbolfreq.get(c), null, null, null)); + } + + while (pq.size() > 1) { + HuffmanDecoder.Node left = pq.poll(); + HuffmanDecoder.Node right = pq.poll(); + HuffmanDecoder.Node parent = new HuffmanDecoder.Node(left.symbol + right.symbol, left.freq + right.freq, left, right, null); + left.parent = parent; + right.parent = parent; + pq.add(parent); + } + + HuffmanDecoder.Node root = pq.poll(); + codes = new Hashtable<>(); + generateCodes(root, ""); + + return root; + } + + private static void generateCodes(HuffmanDecoder.Node node, String code) { + if (node == null) return; + if (node.left == null && node.right == null) { + codes.put(node.symbol.charAt(0), code.isEmpty() ? "0" : code); + return; + } + generateCodes(node.left, code + "0"); + generateCodes(node.right, code + "1"); + } + + public static String encode(String s) { + StringBuilder encoded = new StringBuilder(); + for (char c : s.toCharArray()) { + encoded.append(codes.get(c)); + } + return encoded.toString(); + } + + + private static void writeInstance(String file, String sentence, String encodedsentence) { + try { + PrintWriter p = new PrintWriter(new FileOutputStream(file)); + p.println(sentence); + p.println(encodedsentence); + p.close(); + } catch (FileNotFoundException e) { + e.printStackTrace(); + } + } +} diff --git a/src/test/java/strings/HuffmanDecoderTest.java b/src/test/java/strings/HuffmanDecoderTest.java new file mode 100644 index 0000000..6cc7206 --- /dev/null +++ b/src/test/java/strings/HuffmanDecoderTest.java @@ -0,0 +1,91 @@ +package strings; + +import org.javagrader.Grade; +import org.javagrader.GradeFeedback; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; +import static org.junit.jupiter.api.Assertions.assertEquals; + +import java.io.File; +import java.io.FileInputStream; +import java.io.FileNotFoundException; +import java.util.Scanner; +import java.util.stream.Stream; + + +public class HuffmanDecoderTest { + + @Test + @Grade(value=1) + public void testExample() { + String sentence = "This is the small example."; + String encodedsentence = "100111101111001110111100111010001110100110101111111100010010101001100011001111000001000110010"; + HuffmanDecoder.Node root = HuffmanDecoderGenerator.HuffmanTree(sentence); + String studentdecodedsentence = HuffmanDecoder.decode(encodedsentence, root); + assertEquals(sentence, studentdecodedsentence); + } + + @Test + @Grade(value=1) + public void testExampleShuffle() { + String sentence = "This is the small example."; + String encodedsentence = "100111101111001110111100111010001110100110101111111100010010101001100011001111000001000110010"; + HuffmanDecoder.Node root = HuffmanDecoderGenerator.HuffmanTree(sentence); + HuffmanDecoderGenerator.MessTree(root); + String studentdecodedsentence = HuffmanDecoder.decode(encodedsentence, root); + assertEquals(sentence, studentdecodedsentence); + } + + @Test + @Grade(value=1) + public void testOneLetter() { + String sentence = "x"; + String encodedsentence = "0"; + HuffmanDecoder.Node root = HuffmanDecoderGenerator.HuffmanTree(sentence); + String studentdecodedsentence = HuffmanDecoder.decode(encodedsentence, root); + assertEquals(sentence, studentdecodedsentence); + } + + @Test + @Grade(value=1) + public void testEmpty() { + HuffmanDecoder.Node root = HuffmanDecoderGenerator.HuffmanTree(""); + String studentdecodedsentence = HuffmanDecoder.decode("", root); + assertEquals("", studentdecodedsentence); + } + + static Stream dataProvider() { + return Stream.of(new File("data/strings.HuffmanDecoder").listFiles()) + .filter(file -> !file.isDirectory()) + .filter(file -> !(file.getName().equals("LoremIpsum.txt"))) + .map(file -> new Instance(file.getPath())); + } + + @ParameterizedTest + @Grade(value = 1, cpuTimeout = 1000) + @GradeFeedback(message = "Sorry, something is wrong with your algorithm. Hint: debug on the small example") + @MethodSource("dataProvider") + public void test(Instance instance) { + assertEquals(instance.sentence, instance.studentdecodedsentence); + } + + static class Instance { + String sentence; + String encodedsentence; + String studentdecodedsentence; + + public Instance(String file) { + try { + Scanner scan = new Scanner(new FileInputStream(file)); + sentence = scan.nextLine(); + encodedsentence = scan.nextLine(); + HuffmanDecoder.Node root = HuffmanDecoderGenerator.HuffmanTree(sentence); + HuffmanDecoderGenerator.MessTree(root); + studentdecodedsentence = HuffmanDecoder.decode(encodedsentence, root); + } catch (FileNotFoundException e) { + e.printStackTrace(); + } + } + } +} \ No newline at end of file