The relevant class notes is here: click here
|
θ is the support level (frequency ≥ θ)
inputFile is the input "stream" (in the form of a file)
|
Example output:
|
means: value 4 has count 5 at the end of the algorithm, and the value 2 has count 1 at the end of the algorithm
|
|
Compile with: cc -o FindHeavy FindHeavy.c
Usage: FindHeavy θ < inputFile