Sorting algorithms/Insertion sort: Difference between revisions

Content added Content deleted
(add Refal)
Line 1,811: Line 1,811:
As documented at https://github.com/tromp/AIT/blob/master/lists/sort.lam, the 55 byte BLC program
As documented at https://github.com/tromp/AIT/blob/master/lists/sort.lam, the 55 byte BLC program


<syntaxhighlight>15 46 84 06 05 46 81 60 15 fb ec 2f 80 01 5b f9 7f 0b 7e f7 2f ec 2d fb 80 56 05 fd 85 bb 76 11 5d 50 5c 00 8b f3 ff 04 af fe 60 de 57 ff 30 5d 81 ff c2 dd 9a 28 20</syntaxhighlight>
<pre>15 46 84 06 05 46 81 60 15 fb ec 2f 80 01 5b f9 7f 0b 7e f7 2f ec 2d fb 80 56 05 fd 85 bb 76 11 5d 50 5c 00 8b f3 ff 04 af fe 60 de 57 ff 30 5d 81 ff c2 dd 9a 28 20</pre>


sorts a list of bitstrings, such as integers of a fixed bit-width, lexicographically.
sorts a list of bitstrings, such as integers of a fixed bit-width, lexicographically.