Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/GAP/pkg/transgrp/data/   (Algebra von RWTH Aachen Version 4.15.1©)  Datei vom 25.11.2020 mit Größe 20 kB image not shown  

Quellcode-Bibliothek chap2.html   Sprache: HTML

 
 products/sources/formale Sprachen/GAP/pkg/guava/doc/chap2.html


<?xml version="1.0" encoding 1 1 1 1 1 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
         divclass"">< 10  1 1 0 ]

<html xmlns
<hr/
<title
<spanclass"GAPprompt>>span =GAPinput>(c2;/>
<meta name
<link relspanclass>>/
<script src="manual
<cript="text/html>
</head
<body> previous fromstrong"">GAP>  be from strings from vectors whose  lie a  field  also that can added togetherand there a function <code="file"<codewhichittobviousus  in are/>


<div class="chlinktop"><span class="chlink1">Goto Chapter

<div class< class"APprompt">>/span>< classGAPinput(c1c2/>

<p id="mathjaxlink" java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
<p>aid"="10A7583751067"<a></
<div class=
<div> codeword also constructed apolynomial, the representation a codeword  either orvector  arestrong=pkg</> functions allow to back forth the representations>
</span>
</div>
<div class="ContSect"><span class="tocline"><span class="nocss">java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
</span>
</div>
<v>

<< class"gapgtspanclass="APinput=(^+x21;/span

<p>Anspanclass">apgt >isplay();</span>

<p><span c"gap>/pan spanclass="c5(,,,,,,1;/>

<p>That process is called "decoding." Developing codes java.lang.StringIndexOutOfBoundsException: Range [0, 59) out of bounds for length 17

<p><a id="X7B4C487180E9CBCD" name="X7B4C487180E9CBCD"></a></p>

<h4

<p< ="X7DEC2B677A1F2B03"name=X7DEC2B677A1F2B03a>p>

<>Start class"




<div class="example"><pre>
<span class="java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 0
true
</pre></div>

<p><strong


<div class="example"><pre>
<span class=java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
 01 0 1010  
<span class="GAPprompt">span="GAPprompt>&;
[ Z(2)^0, Z(2)^0, Z(2)^0, Z(2)^0, Z(2)^0, Z(2)^0, Z(2)^0, Z(2)^0, Z(2)^0 ]
<span class="GAPprompt">gap>[ 1 000 11],[110001]   0 0000]       1]]
[  1 1 1     ]
<span (,,162. user defined codeover GF(2)
<pan="GAPprompt">><spanspan="GAPinput"IsLinearCode);<span
< classGAPprompt>/> <spanclass"Weight()
5
<span class="GAPprompt">gap></span> <span class="GAPinput">Weight(c2);</span>
9
<span[ ,0,, , 0 , ]
4
</pre></div>

<p>The /re>

<p>The <em>Hamming distance</em> is used extensively in coding theory. It tells us in how many positions two codewords differ. In <strong class="pkg">GUAVA</strong> the Hamming distance is implemented by a function called <code class="file">DistanceCodeword</code>.</p>


<div class="example"><pre>
<span
4
</prepA  useful of class""GUAVA</strong>isto codespjava.lang.StringIndexOutOfBoundsException: Index 108 out of bounds for length 108

<

>codeword also constructed a . Indeed the representation a codewordrequires a polynomiala .  areclass">functionsthatallow to switch back and forth between two representations./>


<div class="example"><pre>
<span
x_1One the salient of code (feature determines good will at errors its weight classSimpleMathd<>. This thesmallest of nonzero in code.If wish
span;>span=GAPinput(^7x2x1<span
x^7 + x^2 + x + 1
<span class="GAPprompt">gap>
<
<span=GAPprompt&;/> span=GAPinput()<span
[ Z(
< classGAPprompt>span =GAPinput:Codeword,,0,,,];span
[ 1 0 0 0 java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
<"PolyCodeword(;
x_1^6+Z(java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
<>div

<p><a id="X7DEC2B677A1F2B03" name=

<h4>2.2 <span classb>

<p>A code is fundamentally just a collection of codewords. Sometimes a code is merely a <em>set</em> of codewords. Other times a code will be the vector space generated by some small set of codewords.</p>

<p>First let's build a code that is merely a set:




<div class="example"><pre>
<span class="GAPprompt">gap></span> <span class="GAPinput">l:=["111000""011100""001110""000111""100011""110001""000000""111111" ];;</span>
<span class="GAPprompt">gap></span> <span class="GAPinput">m:=Codeword(l,6,GF(2));    </span>
[ [ 1 1 1 0 0 0 ], [ 0 1 1 1 0 0 ], [ 0 0 1 1 1 0 ], [ 0 0 0 1 1 1 ], 
  [ 1 0 0 0 1 1 ], [ 1 1 0 0 0 1 ], [ 0 0 0 0 0 0 ], [ 1 1 1 1 1 1 ] ]
<span class="GAPprompt">gap></span> <span class="GAPinput">C1:=ElementsCode(m, GF(2));</span>
a (6,8,1..6)2..3 user defined unrestricted code over GF(2)
<span class="GAPprompt">gap></span> <span class="GAPinput">IsLinearCode(C1);</span>
false
<span class="GAPprompt">gap></span> <span class="GAPinput">WeightDistribution(C1);</span>
[ 1, 0, 0, 6, 0, 0, 1 ]
</pre></div>

<p>In this example we first wrote out a list of strings, then converted them into codewords over GF(2). The call to <code class="file">ElementsCode</code> constructs a code from a list of elements. It is possible that the set of codewords we used actually is a vector space, but the call to <code class="file">IsLinearCode</code> says no. Finally the last function tells us that there are 6 codewords of weight 3, and one each of weights 0 and 6 in this code.</p>

<p>A very useful feature of <strong class="pkg">GUAVA</strong> is the ability to construct random codes:</p>


<div class="example"><pre>
<span class="GAPprompt">gap></span> <span class="GAPinput">C:= RandomLinearCode(12,5,GF(2));</span>
a  [12,5,?] randomly generated code over GF(2)
</pre></div>

<p>An error-correcting code's properties are fairly well captured by three numbers which traditionally are referred to using the letters n, k and d. We ask for a random code by specifying n (the wordlength), and k (the code's dimension) as well as the field which serves as the alphabet for the code.</p>

<p>One of the most salient features of a code (a feature that determines how good it will be at correcting errors) is its minimum weight, <span class="SimpleMath">d</span>. This is the smallest weight of any nonzero word in the code. If we wish to correct <span class="SimpleMath">m</span> errors we will need to have a minimum weight of at least <span class="SimpleMath">2m+1</span>.</p>


<div class="example"><pre>
<span class="GAPprompt">gap></span> <span class="GAPinput">MinimumWeight(C);</span>
3
</pre></div>

<p>This particular code would be capable of correcting single bit errors.</p>

<p>Finally, one might be interested in the entire distribution of the weights of the words in a code. The weight distribution is a vector that tells us how many words there are in a code with each possible weight between <span class="SimpleMath">0</span> and <span class="SimpleMath">n</span>.</p>


<div class="example"><pre>
<span class="GAPprompt">gap></span> <span class="GAPinput">WeightDistribution(C);</span>
[ 1, 0, 0, 2, 3, 6, 7, 6, 4, 2, 1, 0, 0 ]
</pre></div>


<div class="chlinkprevnextbot"> <a href="chap0.html">[Top of Book]</a>   <a href="chap0.html#contents">[Contents]</a>    <a href="chap1.html">[Previous Chapter]</a>    <a href="chap3.html">[Next Chapter]</a>   </div>


<div class="chlinkbot"><span class="chlink1">Goto Chapter: </span><a href="chap0.html">Top</a>  <a href="chap1.html">1</a>  <a href="chap2.html">2</a>  <a href="chap3.html">3</a>  <a href="chap4.html">4</a>  <a href="chap5.html">5</a>  <a href="chap6.html">6</a>  <a href="chap7.html">7</a>  <a href="chap8.html">8</a>  <a href="chap9.html">9</a>  <a href="chapBib.html">Bib</a>  <a href="chapInd.html">Ind</a>  </div>

<hr />
<p class="foot">generated by <a href="https://www.math.rwth-aachen.de/~Frank.Luebeck/GAPDoc">GAPDoc2HTML</a></p>
</body>
</html>

100%


¤ Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.0.5Bemerkung:  ¤

*Bot Zugriff






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung ist noch experimentell.