Loading [MathJax]/jax/output/HTML-CSS/jax.js
Ask Your Question
0

berlekamp massey

asked 12 years ago

evrim gravatar image

Hello,

I am trying to use B/M algo included in Sage. Now,

berlekamp_massey([GF(2)(0),0,1,0,1,0,0,1,0,1,1,1,0,0,1,1,0,0,0,0,1,0,1,1,0,1,0,1,0,0,0,1,1,1,1,0])

evals to f(x)=x^5 + x^3 + x^2 + x + 1 which is the minimal poly. Also, I know that when I take the reciprocal (x^5*f(1/x)), I find g(x)=x^5+x^4+x^3+x^2+1 which is the connection poly. of this LFSR.

My question is how can I regenerate this sequence using this connection poly.? Providing initial states 0,0,1,0,1 yields to another sequence:

(0 0 1 0 1 1 0 1 0 1 0 0 0 1 1 1 0 1 1 1 1 1 0 0 1 0 0 1 1 0 0)

I think, there might be a bug in B/M implementation because other implementations give

x^19 + x^18 + x^17 + x^14 + x^13 + x^10 + x^9 + x^8 + x^6 + x^3 + x^2 + 1

when fed with the same sequence.

Thanks, evrim.

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
1

answered 12 years ago

Francis Clarke gravatar image

Yes, there is a problem with the Sage implementation. But other implementations such as the one at bma.bozhu.me may give varying results. The point is that for your sequence s0,s1,,s35 there does not exist a unique sequence c1,c2,,ck in GF(2) such that si+kj=1cjsij=0,for i=k,,35.

The result that Sage produces comes from the fact that si+si2+si3+si4+si5=0,for i=16,,33. But this fails (generally) if i=5,,15 or i=34,35.

The degree 19 result indeed says that si+j{1,2,5,6,9,10,11,13,16,17,19}sij=0,for i=19,,35. However, this is not unique (it cannot be because the input sequence only has length 36), for example we could add in si2+si4+si5+si6+si7, which, as we have seen, is zero for i=18,,35. Thus the degree 19 polynomial has no right to be called the minimal polynomial. Of course, Massey's 1969 paper "Shift-register synthesis and BCH decoding" is clear on this point; the algorithm he describes produces "one of the [linear feedback shift registers] of [minimum length] which generates s0,s1,,sN" [§ III].

Preview: (hide)
link

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 12 years ago

Seen: 1,687 times

Last updated: Feb 25 '13