How can I determine the upper limit of Shannon Entropy?

551 Views Asked by At

I know that the maximum possible Shannon Entropy for an alphabet $X$ is $\log|X|$, where Shannon Entropy is:

$$H(X) = - \sum_{x \in X} \; p(x) \log p(x)$$

but how is this upper limit computed?