Content deleted Content added
m change |id={{citeseerx}} to |citeseerx= |
→The algorithm for the binary field: Fixed operation for the binary field GF(2) (XOR instead of plus) |
||
Line 145:
#[[Assignment (computer science)|assign]] <math>L \leftarrow 0, m \leftarrow -1</math>.
#'''For''' <math>N = 0</math> '''step''' 1 '''while''' <math>N < n </math>:<!-- should be N <= n ??? -->
#*Let discrepancy <math>d</math> be <math>s_N
#*'''if''' <math>d = 0</math>, '''then''' <math>c</math> is already a polynomial which annihilates the portion of the stream from <math>N-L</math> to <math>N</math>.
#*'''else''':
Line 152:
#** If <math>L \le \frac{N}{2}</math>, set <math>L \leftarrow N+1-L</math>, set <math>m \leftarrow N</math>, and let <math>b \leftarrow t</math>; otherwise leave <math>L</math>, <math>m</math> and <math>b</math> alone.
At the end of the algorithm, <math>L</math> is the length of the minimal LFSR for the stream, and we have <math>c_Ls_a
==See also==
|