Reducing the length of Shannon-Fano-Elias codes and Shannon-Fano codes

  • Authors:
  • Xiaoyu Ruan;Rajendra Katti

  • Affiliations:
  • Department of Electrical and Computer Engineering, North Dakota State University, Fargo, ND;Department of Electrical and Computer Engineering, North Dakota State University, Fargo, ND

  • Venue:
  • MILCOM'06 Proceedings of the 2006 IEEE conference on Military communications
  • Year:
  • 2006

Quantified Score

Hi-index 0.00

Visualization

Abstract

In some applications, both data compression and encryption are required. If the cryptanalyst knows the code construction rule and the probability mass function (PMF) of the source, then Huffman code provides no ambiguity, but Shannon-Fano-Elias coding is a good candidate since the order of symbols can be arbitrary in the encoding process, which produces exponential complexity for deciphering. However, the conventional Shannon-Fano-Elias code has relatively large expected length which makes it inefficient. In this paper, we propose two simple algorithms to reduce the expected length of Shannon-Fano-Elias code so that its efficiency is improved. This is achieved by first utilizing some proper PMF instead of the actual PMF in encoding, and then performing a codeword truncation. By applying the same strategy we can also reduce the length of Shannon-Fano codes.