struct cmp
{
bool operator() (HuffmanTree a, HuffmanTree b)
{
return a->weight>b->weight;
}
};
priority_queue<HuffmanTree, vector<HuffmanTree>, cmp >pq;
struct cmp
{
bool operator() (HuffmanTree a, HuffmanTree b)
{
return a->weight>b->weight;
}
};
priority_queue<HuffmanTree, vector<HuffmanTree>, cmp >pq;