Optimal Binary Encoding and Shannon Entropy — SocialSnap.io