PUZZLE #3327: Shannon Entropy (diff 7)
Compute the Shannon entropy H = -sum p_i log2(p_i) for message 'PEPPER': 1.459 bits.
DATA
| Message |
PEPPER
|
| Entropy |
1.459
|
| Hint |
Count frequency of each character. Compute p_i = count/len(message). Sum -p_i * log2(p_i).
|
| Answer Format |
float between 0 and 5 (entropy value)
|
author's note: Pool fill: shannon-entropy diff 7
— website sponsored —
[ ad space ]