<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://en.zaoniao.it/index.php?action=history&amp;feed=atom&amp;title=Constant-weight_code</id>
	<title>Constant-weight code - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://en.zaoniao.it/index.php?action=history&amp;feed=atom&amp;title=Constant-weight_code"/>
	<link rel="alternate" type="text/html" href="http://en.zaoniao.it/index.php?title=Constant-weight_code&amp;action=history"/>
	<updated>2026-05-15T09:16:01Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.32.0</generator>
	<entry>
		<id>http://en.zaoniao.it/index.php?title=Constant-weight_code&amp;diff=4155&amp;oldid=prev</id>
		<title>Admin: Created page with &quot;In coding theory, a '''constant-weight code''', also called an '''m of n code''', is an error detection and correction code where all codewords share the same Hammin...&quot;</title>
		<link rel="alternate" type="text/html" href="http://en.zaoniao.it/index.php?title=Constant-weight_code&amp;diff=4155&amp;oldid=prev"/>
		<updated>2019-05-04T02:30:09Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;In &lt;a href=&quot;/Coding_theory&quot; title=&quot;Coding theory&quot;&gt;coding theory&lt;/a&gt;, a &amp;#039;&amp;#039;&amp;#039;constant-weight code&amp;#039;&amp;#039;&amp;#039;, also called an &amp;#039;&amp;#039;&amp;#039;m of n code&amp;#039;&amp;#039;&amp;#039;, is an &lt;a href=&quot;/Error_detection_and_correction&quot; title=&quot;Error detection and correction&quot;&gt;error detection and correction&lt;/a&gt; code where all codewords share the same Hammin...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;In [[coding theory]], a '''constant-weight code''', also called an '''m of n code''', is an [[error detection and correction]] code where all codewords share the same [[Hamming weight]].&lt;br /&gt;
The [[one-hot]] code and the '''balanced code''' are two widely used kinds of constant-weight code.&lt;br /&gt;
&lt;br /&gt;
The theory is closely connected to that of [[Combinatorial design|designs]] (such as [[block design|''t''-design]]s and [[Steiner system]]s). Most of the work on this very vital field of [[discrete mathematics]] is concerned with ''binary'' constant-weight codes.&lt;br /&gt;
&lt;br /&gt;
Binary constant-weight codes have several applications, including [[Frequency-hopping spread spectrum|frequency hopping]] in [[Global System for Mobile Communications|GSM]] networks.&lt;br /&gt;
Most [[barcode]]s use a binary constant-weight code to simplify automatically setting the threshold.&lt;br /&gt;
Most [[line code]]s use either a constant-weight code, or a nearly-constant-weight [[paired disparity code]].&lt;br /&gt;
In addition to use as error correction codes, the large space between code words can also be used in the design of [[asynchronous circuit]]s such as [[delay insensitive circuit]]s.&lt;br /&gt;
&lt;br /&gt;
Constant-weight codes, like [[Berger code]]s, can detect all unidirectional errors.&lt;br /&gt;
&lt;br /&gt;
== ''A''(''n'',''d'',''w'') ==&lt;br /&gt;
The central problem regarding constant-weight codes is the following: what is the maximum number of codewords in a binary constant-weight code with length &amp;amp;lt;math&amp;amp;gt;n&amp;amp;lt;/math&amp;amp;gt;, [[Hamming distance]] &amp;amp;lt;math&amp;amp;gt;d&amp;amp;lt;/math&amp;amp;gt;, and weight &amp;amp;lt;math&amp;amp;gt;w&amp;amp;lt;/math&amp;amp;gt;? This number is called &amp;amp;lt;math&amp;amp;gt;A(n,d,w)&amp;amp;lt;/math&amp;amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Apart from some trivial observations, it is generally impossible to compute these numbers in a straightforward way. Upper bounds are given by several important theorems such as the [[first Johnson bound|first]] and [[second Johnson bound]]s, and better upper bounds can sometimes be found in other ways. Lower bounds are most often found by exhibiting specific codes, either with use of a variety of methods from discrete mathematics, or through heavy computer searching. A large table of such record-breaking codes was published in 1990, and an extension to longer codes (but only for those values of &amp;amp;lt;math&amp;amp;gt;d&amp;amp;lt;/math&amp;amp;gt; and &amp;amp;lt;math&amp;amp;gt;w&amp;amp;lt;/math&amp;amp;gt; which are relevant for the GSM application) was published in 2006. used in delay insensitive circuits. For these codes, &amp;amp;lt;math&amp;amp;gt;n=N,~ d=2,~ w=1&amp;amp;lt;/math&amp;amp;gt; and &amp;amp;lt;math&amp;amp;gt;A(n, d, w) = n&amp;amp;lt;/math&amp;amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Some of the more notable uses of one-hot codes include&lt;br /&gt;
[[biphase mark code]] uses a 1 of 2 code;&lt;br /&gt;
[[pulse-position modulation]] uses a 1 of n code;&lt;br /&gt;
[[address decoder]],&lt;br /&gt;
etc.&lt;br /&gt;
&lt;br /&gt;
== Balanced code ==&lt;br /&gt;
&lt;br /&gt;
In [[coding theory]], a '''balanced code''' is a [[binary numeral system|binary]] [[forward error correction]] code for which each codeword contains an equal number of zero and one bits. Balanced codes have been introduced by [[Donald Knuth]]; they are a subset of so-called unordered codes, which are codes having the property that the positions of ones in a codeword are never a subset of the positions of the ones in another codeword. Like all unordered codes, balanced codes are suitable for the detection of all [[unidirectional error]]s in an encoded message. Balanced codes allow for particularly efficient decoding, which can be carried out in parallel.&lt;br /&gt;
&lt;br /&gt;
Some of the more notable uses of balanced-weight codes include&lt;br /&gt;
[[biphase mark code]] uses a 1 of 2 code;&lt;br /&gt;
[[6b/8b encoding]] uses a 4 of 8 code;&lt;br /&gt;
the [[Hadamard code]] is a &amp;amp;lt;math&amp;amp;gt;2^k/2&amp;amp;lt;/math&amp;amp;gt; of &amp;amp;lt;math&amp;amp;gt;2^k&amp;amp;lt;/math&amp;amp;gt; code (except for the zero codeword),&lt;br /&gt;
the [[IEEE 1355#Slice: TS-FO-02|three of six]] code;&lt;br /&gt;
etc.&lt;br /&gt;
&lt;br /&gt;
== m of n codes==&lt;br /&gt;
&lt;br /&gt;
An '''''m'' of ''n'' code''' is a separable [[error detection]] code with a code word length of ''n'' bits, where each code word contains exactly ''m'' instances of a &amp;quot;one.&amp;quot; A single bit error will cause the code word to have either ''m'' + 1 or ''m'' &amp;amp;ndash; 1 &amp;quot;ones&amp;quot;. An example ''m''-of-''n'' code is the [[Two-out-of-five code|2 of 5 code]] used by the [[United States Postal Service]].&lt;br /&gt;
&lt;br /&gt;
The simplest implementation is to append a string of ones to the original data until it contains ''m'' ones, then append zeros to create a code of length ''n''.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align:center&amp;quot;&lt;br /&gt;
|+ 3 of 6 code&lt;br /&gt;
|-&lt;br /&gt;
! Original 3 data bits !! Appended bits &lt;br /&gt;
|-&lt;br /&gt;
|000 || 111 &lt;br /&gt;
|-&lt;br /&gt;
|001 || 110 &lt;br /&gt;
|-&lt;br /&gt;
|010 || 110&lt;br /&gt;
|-&lt;br /&gt;
|011 || 100&lt;br /&gt;
|-&lt;br /&gt;
|100 || 110&lt;br /&gt;
|-&lt;br /&gt;
|101 || 100&lt;br /&gt;
|-&lt;br /&gt;
|110 || 100&lt;br /&gt;
|-&lt;br /&gt;
|111 || 000&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Some of the more notable uses of constant-weight codes, other than the one-hot and balanced-weight codes already mentioned above, include&lt;br /&gt;
[[Code 39]] uses a 3 of 9 code;&lt;br /&gt;
[[bi-quinary coded decimal]] code uses a 2 of 7 code,&lt;br /&gt;
the [[Two-out-of-five code|2 of 5 code]],&lt;br /&gt;
etc.&lt;br /&gt;
&lt;br /&gt;
==Source==&lt;br /&gt;
&lt;br /&gt;
[http://wikipedia.org/ http://wikipedia.org/]&lt;br /&gt;
[[Category:Error-correcting codes]]&lt;br /&gt;
==See Also on BitcoinWiki==&lt;br /&gt;
* [[Agrolot]]&lt;br /&gt;
* [[Coinnup]]&lt;br /&gt;
* [[Narrative]]&lt;br /&gt;
* [[Skillchain]]&lt;br /&gt;
* [[WULET]]&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
		
	</entry>
</feed>