Added sample output in huffman code.
This commit is contained in:
@@ -85,3 +85,18 @@ int main() {
|
|||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// SAMPLE OUTPUT
|
||||||
|
/*
|
||||||
|
* $ ./a.out
|
||||||
|
* Enter number of characters: 5
|
||||||
|
* Enter characters: a f v c w
|
||||||
|
* Enter corresponding frequencies: 3 2 1 5 7
|
||||||
|
*
|
||||||
|
* Huffman Codes:
|
||||||
|
* w : 0
|
||||||
|
* c : 10
|
||||||
|
* a : 110
|
||||||
|
* v : 1110
|
||||||
|
* f : 1111
|
||||||
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user