|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
Three guided demonstrations of adaptive Huffman coding. More...
#include <Adaptive_Huffman.H>#include <ah-errors.H>#include "adaptive_huffman_demo_support.H"#include <algorithm>#include <cstddef>#include <exception>#include <iomanip>#include <iostream>#include <string>#include <string_view>Go to the source code of this file.
Functions | |
| int | main (int argc, char *argv[]) |
| Run the guided, self-checking adaptive Huffman demonstrations. | |
Three guided demonstrations of adaptive Huffman coding.
Build: cmake –build build –target adaptive_huffman_example Run: ./build/Examples/adaptive_huffman_example [text]
Demonstrates exact transmitted bits and tree snapshots, adaptation to changing frequencies, and binary data received in arbitrarily cut chunks. All demonstrations verify their decoded output. Display trees use only public encoder operations.
Definition in file adaptive_huffman_example.cc.
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
Run the guided, self-checking adaptive Huffman demonstrations.
| argc | Number of command-line arguments. |
| argv | Optional short trace text in argv[1]; –help prints usage. |
Definition at line 181 of file adaptive_huffman_example.cc.
References ah_invalid_argument_if, Aleph::and, and Aleph::error().