Using it, this is the Shannon-Fano coding:
TO-DO.
[1] Robert M. Fano. The transmission of information. Massachusetts Institute of Technology, Research Laboratory of Electronics, 1949.
[2] Claude Elwood Shannon. A mathematical theory of communication. Bell system technical journal, 27(3):379–423, 1948.