Constructor NatMultiset
/* Construct a NatMultiset for up to maxElements elements in the range 0 through maxValue. */
public NatMultiset(
int maxValue,
int maxElements
)
{
this.maxValue = maxValue;
freq = new int[maxValue+1];
for (int k = 0; k <= maxValue; k++)
freq[k]=0;
}
Previous slide
Next slide
Back to first slide
View graphic version