I am quite new to knapsack cryptosystems (specifically the merkle-hellman cryptosystem) and don't quite understand what exactly is the density $d(a) = \frac{n}{\log_2max_i a_i}$ defined here among other things. The denominator of the formula of $d(a)$ is the largest element of the weights (i.e. the public key)? What exactly is the paramter $n$ in this?
And then what is the general meaning of density? Is it about the ratio of plaintext bits to ciphertext bits (as in the information rate formula $d(a) = \frac{\text{number of bits in plaintext messag}}{\text{average number of bits in cipher-text message}}$ below in the paper)?
Maybe you can also give me an example, it's just not clear to me yet, thanks a lot.