Re: Bjorklund algorithm

well i’ve almost cracked it. this new code accounts for the list rotation (either positively or negatively).

so far the only example error i’ve found is E(5,13)
[ x . x . . x . x . . x . . ] = my code
[ x . . x . x . . x . x . . ] = toussaint’s paper

if anyone finds another let me know. not sure how to go about correcting that but for my use it won’t be an issue.

save the new bjorklund.js file i’ve attached and use the below patch for testing

– Pasted Max Patch, click to expand. –
Attachments:
  1. bjorklund.js
Mar 7, 2013 at 11:32pm #213240