package huffman

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Huffman index

This package provides a simple way to generate Huffman trees based on the description of an emitter.

Example

open Huffman
(* A simple emitter capable to emit characters 'a' 'b' or 'c' with frequencies .1, .2 and .7 *)
let emitter = ['a',0.1; 'b',0.2; 'c',0.7]
let _ = emitter |> huffman |> dump_as_dot "test.dot"

Library huffman

The entry point of this library is the module: Huffman.

OCaml

Innovation. Community. Security.