The algorithm is called Shannon-Fano coding and not Shennon-Fano. See e.g. https://en.wikipedia.org/wiki/Shannon%E2%80%93Fano_coding or Mark Nelson, "The Data Compression Book".