Change weights on HuffmanTree generation.
This commit is contained in:
@@ -81,21 +81,21 @@ namespace VAR.UrlCompressor
|
|||||||
{ '8', 1000},
|
{ '8', 1000},
|
||||||
{ '9', 1000},
|
{ '9', 1000},
|
||||||
|
|
||||||
// Common simbols
|
// Common symbols
|
||||||
{ ' ', 100},
|
{ ' ', 100},
|
||||||
{ '!', 100},
|
{ '!', 100},
|
||||||
{ '"', 100},
|
{ '"', 100},
|
||||||
{ '#', 50000}, // NOTE: Exagerate to minimize bitstream of this symbol '#'
|
{ '#', 20000}, // NOTE: Exagerate to minimize bitstream of this symbol '#'
|
||||||
{ '$', 50000}, // NOTE: Exagerate to minimize bitstream of this symbol '$'
|
{ '$', 20000}, // NOTE: Exagerate to minimize bitstream of this symbol '$'
|
||||||
{ '%', 100},
|
{ '%', 100},
|
||||||
{ '&', 100},
|
{ '&', 100},
|
||||||
{ '\'', 100},
|
{ '\'', 20000}, // NOTE: Exagerate to minimize bitstream of this symbol '/'
|
||||||
{ '(', 100},
|
{ '(', 100},
|
||||||
{ '*', 100},
|
{ '*', 100},
|
||||||
{ '+', 100},
|
{ '+', 100},
|
||||||
{ ',', 100},
|
{ ',', 100},
|
||||||
{ '-', 100},
|
{ '-', 100},
|
||||||
{ '.', 100},
|
{ '.', 20000}, // NOTE: Exagerate to minimize bitstream of this symbol '.'
|
||||||
{ '/', 100},
|
{ '/', 100},
|
||||||
{ ':', 100},
|
{ ':', 100},
|
||||||
{ ';', 100},
|
{ ';', 100},
|
||||||
|
|||||||
Reference in New Issue
Block a user