Huffman coding: Difference between revisions

m
→‎{{header|Picat}}: Added {{trans}} and {{out}}
m (→‎{{header|Picat}}: Added {{trans}} and {{out}})
Line 4,761:
 
=={{header|Picat}}==
{{trans|Prolog}}
Adapted from the Prolog solution.
<lang Picat>go =>
huffman("this is an example for huffman encoding").
Line 4,812:
different_terms(V, Other).</lang>
 
{{out}}
Output:
<pre>Symbol Weight Code
c: 1 01010
Line 4,833:
n: 4 000
: 6 101</pre>
 
 
=={{header|PicoLisp}}==
495

edits