// This is the CPP file you will edit and turn in. // Also remove these comments here and add your own, along with // comments on every function and on complex code sections. // TODO: remove this comment header #include "encoding.h" // TODO: include any other headers you need map buildFrequencyTable(istream& input) { // TODO: implement this function map freqTable; return freqTable; } HuffmanNode* buildEncodingTree(const map &freqTable) { // TODO: implement this function return nullptr; } map buildEncodingMap(HuffmanNode* encodingTree) { // TODO: implement this function map encodingMap; return encodingMap; } void encodeData(istream& input, const map &encodingMap, obitstream& output) { // TODO: implement this function } void decodeData(ibitstream& input, HuffmanNode* encodingTree, ostream& output) { // TODO: implement this function } void compress(istream& input, obitstream& output) { // TODO: implement this function } void decompress(ibitstream& input, ostream& output) { // TODO: implement this function } void freeTree(HuffmanNode* node) { // TODO: implement this function }