Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
14
Task/Huffman-coding/Ursala/huffman-coding.ursala
Normal file
14
Task/Huffman-coding/Ursala/huffman-coding.ursala
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
#import std
|
||||
#import nat
|
||||
#import flo
|
||||
|
||||
code_table = # takes a training dataset to a table <char: code...>
|
||||
|
||||
-+
|
||||
*^ ~&v?\~&iNC @v ~&t?\~&h ~&plrDSLrnPlrmPCAS/'01',
|
||||
~&itB->h fleq-<&d; ^C\~&tt @hthPX ^V\~&lrNCC plus@bd,
|
||||
^V(div@rrPlX,~&rlNVNC)^*D(plus:-0.@rS,~&)+ *K2 ^/~&h float+ length+-
|
||||
|
||||
#cast %csAL
|
||||
|
||||
table = code_table 'this is an example for huffman encoding'
|
||||
Loading…
Add table
Add a link
Reference in a new issue