How thea0924/huffman works
Huffman is a small ASP.NET Core Razor Pages app that accepts text and reports a Huffman encoding and compression statistics. Its principal workflow is handled by the Index page: count character frequencies, build a tree, generate codes, encode the input, and calculate bit and reduction metrics. The tree and encoder operate on NodoHuffman. Source excerpts show the handler and algorithm calls; the Razor view and partial markup were not sampled, so presentation details are not inferred.
Main entry points: Index.cshtml.cs Text submission · CodificadorHuffman.cs Code generation · Program.cs ASP.NET host · ArbolHuffman.cs Tree construction
Components 8
Web entry
- ASP.NET host
Huffman/Program.cs - Text submission
Huffman/Pages/Index.cshtml.cs
Huffman processing
- Frequency counting
Huffman/Pages/Index.cshtml.cs - Tree construction
Huffman/Modelos/ArbolHuffman.cs - Code generation
Huffman/Modelos/CodificadorHuffman.cs - Text encoding
Huffman/Modelos/CodificadorHuffman.cs - Tree node
Huffman/Modelos/NodoHuffman.cs
Other components
- User
Connections 9
- User → ASP.NET host: submits text
- ASP.NET host → Text submission: maps Razor pages
Huffman/Program.cs - Text submission → Frequency counting: counts characters
Huffman/Pages/Index.cshtml.cs - Text submission → Tree construction: builds tree
Huffman/Pages/Index.cshtml.cs - Tree construction → Tree node: creates nodes
Huffman/Modelos/ArbolHuffman.cs - Text submission → Code generation: generates codes
Huffman/Pages/Index.cshtml.cs - Code generation → Tree node: traverses tree
Huffman/Modelos/CodificadorHuffman.cs - Text submission → Text encoding: encodes text
Huffman/Pages/Index.cshtml.cs - Text encoding → Code generation: uses codes
Huffman/Pages/Index.cshtml.cs