Method multiplicity
/* Return the number of occurrences of item in the multiset. */
public int multiplicity(int item)
{
int k = search(item);
if (k != currentSize)
return freq[k];
else
return 0;
}
Previous slide
Next slide
Back to first slide
View graphic version