encyclopegia.org

Modulo-N code

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

Modulo-N code is a lossy compression algorithm used to compress correlated data sources using modular arithmetic. ==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 \bmod N . Hence the name modulo-N code. Since at least \log_2 K bits are required to represent a number K in binary, the modulo coded data of the two nodes requires \log_2 M_o + \log_2 M_e bits. As we can generally expect \log_2 M_e \le \log_2 M_o always, because M_e \le N . This is how compression is achieved. A compression ratio achieved is \text{C.R.} = \frac{\log_2 M_o + \log_2 M_e}{2\log_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 \operatorname{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 \cdot 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. ==References==

References

No reference rows published for this article.

Cite this article

MLA

"Modulo-N code." encyclopegia.org, 2025, https://encyclopegia.org/wiki/modulo-n-code. Accessed 24 November 2026.

Chicago

"Modulo-N code." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/modulo-n-code.

APA

encyclopegia.org. (2025). Modulo-N code. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/modulo-n-code

Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

La Paz (B&O)

enwiki · references available

William H. Zimmer Power Station

enwiki · references available

World Horror Convention

enwiki · references available

Super Tourenwagen Cup

enwiki · references available

Latin American Idol

enwiki · references available

Phobia (Breaking Benjamin album)

enwiki · references available

Error exponent

enwiki · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1314884534 · 0.5 · snapshot enwiki-001314884534

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.