which in the perfect disorder limit (all P n = 1/ W) leads to Boltzmann's formula, while in the opposite limit (one configuration with probability 1), the entropy vanishes. This formulation is called the Gibbs entropy formula and is analogous to that of Shannon's information entropy.