I am learning data structures and algorithms in my uni and I came across the Huffman code in my textbook. I tried running the code on visual studio code but I am getting an error message for the heap data structure. The message is:
Heap cannot be resolved to a type
The code is as follow:
Heap<Tree> heap = new Heap<>(); // Defined in Listing 24.10
I also tried changing the heap to a priority queue but then the getSize() method shows an error.