World Library  
Flag as Inappropriate
Email this Article

Modulo-N code

Article Id: WHEBN0005184821
Reproduction Date:

Title: Modulo-N code  
Author: World Heritage Encyclopedia
Language: English
Subject: Data compression, DISCUS, Wireless sensor network, Augmented sixth chord, Information theory
Collection:
Publisher: World Heritage Encyclopedia
Publication
Date:
 

Modulo-N code

Modulo-N code is a lossy compression algorithm used to compress correlated data sources using modulo arithmetic.

Contents

  • Compression 1
  • Decompression 2
  • Example 3
    • See also 3.1

Compression

When applied to two nodes in a network whose data are in close range of each other Modulo-N code requires one node (say odd) to send the coded data value as the raw data M_o = D_o; the even node is required to send the coded data as the M_e = (D_e) mod (N) . Hence the name Modulo-N code.

Since it is known that for a number K, at least log_2(K) bits are required to represent it in binary. So the modulo coded data of the two nodes requires totally log_2(M_o) + log_2(M_e). As we can generally expect log_2(M_e) \le log_2(M_o) always, because M_e \le N. This is the how compression is achieved.

A compression ratio achieved is C.R = \frac{log_2(M_o) + log_2(M_e)}{2log_2(M_o)}.

Decompression

At the receiver by joint decoding we may complete the process of extracting the data and rebuilding the original values. The code from the even node is reconstructed by the assumption that it must be close to the data from the odd node. Hence the decoding algorithm retrieves even node data as
CLOSEST(M_o,N.k+ M_e).

The decoder essentially finds the closest match to M_o \simeq N.k + M_e and the decoded value is declared as N.k + M_e

Example

For a mod-8 code, we have Encoder

D_o=43,D_e=47
M_o=43,M_e=47 mod(8) = 7,

Decoder

 M_o=43,M_e=47 mod(8) = 7,
 D_o=43,D_e=CLOSEST(43,8.k + 7)
 43 \simeq 8.5 + 7
 D_o=43,D_e=47

Modulo-N decoding is similar to phase unwrapping and has the same limitation: If the difference from one node to the next is more than N/2 (if the phase changes from one sample to the next more than \pi), then decoding leads to an incorrect value.

See also

  • DISCUS is a more sophisticated technique for compressing correlated data sources.
  • Delta encoding is a related algorithm used in lossless compression algorithms designed for correlated data sources.
This article was sourced from Creative Commons Attribution-ShareAlike License; additional terms may apply. World Heritage Encyclopedia content is assembled from numerous content providers, Open Access Publishing, and in compliance with The Fair Access to Science and Technology Research Act (FASTR), Wikimedia Foundation, Inc., Public Library of Science, The Encyclopedia of Life, Open Book Publishers (OBP), PubMed, U.S. National Library of Medicine, National Center for Biotechnology Information, U.S. National Library of Medicine, National Institutes of Health (NIH), U.S. Department of Health & Human Services, and USA.gov, which sources content from all federal, state, local, tribal, and territorial government publication portals (.gov, .mil, .edu). Funding for USA.gov and content contributors is made possible from the U.S. Congress, E-Government Act of 2002.
 
Crowd sourced content that is contributed to World Heritage Encyclopedia is peer reviewed and edited by our editorial staff to ensure quality scholarly research articles.
 
By using this site, you agree to the Terms of Use and Privacy Policy. World Heritage Encyclopedia™ is a registered trademark of the World Public Library Association, a non-profit organization.
 


Copyright © World Library Foundation. All rights reserved. eBooks from Project Gutenberg are sponsored by the World Library Foundation,
a 501c(4) Member's Support Non-Profit Organization, and is NOT affiliated with any governmental agency or department.