This code will be submitted to Profesor Park in KNU. All code based on R2018b, No additional library used All copyright by me and matlab_Documentation
And I use Probability instead There is no pointer in the MATLAB. But they can refer the Object instance. So I can make Tree with pointing their child. Code has Four Parts, FILE I/O, Validation Check for probability, Huffman Code Algorithm, Print Tree.
- Sum Cannot Exceed 1
- Probability Cannot be lower than 0
- Check 3 case
1-1. Both Two minimum probability node don't have root
1-2. Either Two minimum probability have root or not
1-3. Both Two minimum probability have root