From: "Isidro Jimenez Ovelar" <PACHINO3@santandersupernet.com>
To: <caml-list@inria.fr>
Subject: huffman compresion
Date: Fri, 5 Sep 1997 23:49:30 +0200 [thread overview]
Message-ID: <19970905224552.AAA2450@default> (raw)
I am new in this group, I am a student of informatic at
Politecnica of Madrid University. I have to use caml to make
a practice and I 'd be very pleased if someone of you
could help a little bit.
This the job: Huffman compression
The functions I have to do are:
Frecuency1: (* File -> (int ,float) Tabla *)
(* this function read a file in binary mode and give one
table with the frecuencies of each simbol *)
Maketree: (* (`symbol , float) Table -> `symbol list -> symbol Huftree
(* This function take the table of relatives frecuencies and the
list of symbols of the file and gives a Huffman tree *)
Compress (* int Hufftree -> file -> file -> unit *)
¦
¦ (* This function takes the name of a file to compress and the
compressed
¦ filed and inteprets the data byte to byte *)
¦
¦ UnCompress (*int Hufftree -> File -> File -> unit *)
¦ (*This function makes the opposite of Compress*)
¦
¦ I use these types:
¦
¦
¦
¦type 'symbol Huftree =
¦
¦ Hoja of 'symbol
¦ |final
¦ |Nodo of 'symbol Huftree * 'symbol Huftree;;
¦
¦type file == string;;
¦
¦
¦ I have some problems to make the Huffman tree and the compress
and
¦ uncompress functions. If someone have done something similar or
have
¦ any ideas to help me I would be very grateful.
¦
¦ Thanks for all.
¦
¦
¦
reply other threads:[~1997-09-08 7:02 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=19970905224552.AAA2450@default \
--to=pachino3@santandersupernet.com \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox