huffman_table 1.0.0 huffman_table: ^1.0.0 copied to clipboard
Implements Huffman coding for data compression, providing methods to encode and decode data using frequency-based tree structures.
example/huffman_table_example.dart
import 'package:huffman_table/huffman_table.dart';
void main() {
var phase = 'a dead dad ceded a bad babe a beaded abaca bed';
var table = HuffmanTable.fromIterable(phase.split(''));
print(table.encode());
}