MCPcopy Create free account
hub / github.com/PrajaktaSathe/Java / ImplementComparator

Class ImplementComparator

Programs/HuffmanCoding.java:14–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12
13// For comparing the nodes
14class ImplementComparator implements Comparator<HuffmanNode> {
15 public int compare(HuffmanNode x, HuffmanNode y) {
16 return x.item - y.item;
17 }
18}
19
20// Implementing the huffman algorithm
21public class Huffman {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected