Java implementation of a binary digital tree built from records containing strings and binary codes.
- Reads fixed-size records from a binary file.
- Builds a tree by following
0and1paths. - Supports tree compaction logic.
- Includes a decoding method based on binary sequences.
- Uses
RandomAccessFilefor record-based file access.
This implementation currently does not include a Main.java demo. The source compiles as a reusable structure and can be exercised by creating records with Registro and loading them through Arquivo.
Arvore.java: binary digital tree logic.No.java: tree node.Registro.java: fixed-size record with text and binary code.Arquivo.java: file abstraction usingRandomAccessFile.Pilha.javaandNoPilha.java: custom stack used by traversal/compaction routines.