Factorize string into Lyndon words: Difference between revisions
Factorize string into Lyndon words (view source)
Revision as of 01:05, 31 January 2024
, 4 months ago→{{header|MATLAB}}: fix typo
(Add MATLAB implementation) |
(→{{header|MATLAB}}: fix typo) |
||
Line 53:
factorization = chenFoxLyndonFactorization(m);
disp(factorization(index));
end
Line 81 ⟶ 83:
{{out}}
<pre>
{'011'}
{'01'}
{'0011'}
{'00101101'}
{'0010110011010011'}
{'00101100110100101101001100101101'}
{'001011001101001011010011001011001101001100101101'}
{'001011001101'}
{'001'}
|