Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

What's your favorite SICP passage?

Name: Anonymous 2013-09-07 16:55

I like 2.3.4, where it discusses Huffman encoding trees.
In general, we can attain significant savings if we use variable-length prefix codes that take advantage of the relative frequencies of the symbols in the messages to be encoded. One particular scheme for doing this is called the Huffman encoding method, after its discoverer, David Huffman. A Huffman code can be represented as a binary tree whose leaves are the symbols that are encoded. At each non-leaf node of the tree there is a set containing all the symbols in the leaves that lie below the node. In addition, each symbol at a leaf is assigned a weight (which is its relative frequency), and each non-leaf node contains a weight that is the sum of all the weights of the leaves lying below it. The weights are not used in the encoding or the decoding process. We will see below how they are used to help construct the tree.
It was hard to understand at first, but well worth it.

Name: Anonymous 2013-09-07 21:50

There's this thing called function call overhead. Recursion will make your programs run slow like Ruby even if it's C.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List