An algorithm for source coding
J. Schalkwijk · IEEE Transactions on Information Theory · 1972
We derive a simple algorithm for the ranking of binary sequences of lengthnand weightw. This algorithm is then used for source encoding a memoryless binary source that generates O's with probabilityqand l's with probabilityp = 1 - q.