Factorize string into Lyndon words: Difference between revisions
Content added Content deleted
(Added Algol 68) |
m (→{{header|Phix}}: added one-per-line output, as well.) |
||
Line 234: | Line 234: | ||
end for |
end for |
||
?chen_fox_lyndon_factorization(m) |
?chen_fox_lyndon_factorization(m) |
||
-- alt: |
|||
printf(1,"\n%s\n",join(chen_fox_lyndon_factorization(m),"\n")) |
|||
</syntaxhighlight> |
</syntaxhighlight> |
||
{{out}} |
{{out}} |
||
< |
<pre> |
||
{"011","01","0011","00101101","0010110011010011","00101100110100101101001100101101","001011001101001011010011001011001101001100101101","001011001101","001"} |
{"011","01","0011","00101101","0010110011010011","00101100110100101101001100101101","001011001101001011010011001011001101001100101101","001011001101","001"} |
||
011 |
|||
01 |
|||
0011 |
|||
00101101 |
|||
0010110011010011 |
|||
00101100110100101101001100101101 |
|||
001011001101001011010011001011001101001100101101 |
|||
001011001101 |
|||
001 |
|||
</pre> |
</pre> |
||