priority: add another algorithm for comparison purposes
commit0c4fc4d55c1573a76306683da97e202e5a42bc30
authorEric Blake <eblake@redhat.com>
Thu, 18 Jan 2024 01:09:42 +0000 (17 19:09 -0600)
committerEric Blake <eblake@redhat.com>
Thu, 18 Jan 2024 01:09:42 +0000 (17 19:09 -0600)
tree694f42460772ade4ae7596d06133e5843973d406
parent4855c23034404b266ebe8dbd15f08ae7461526e9
priority: add another algorithm for comparison purposes

Track the set of remaining priorities by a linear scan from low to
high.  This is not quite as efficient as a radix heap, but for small
ranges with dense buckets, it may have better performance.
15 files changed:
2016/day11.m4
2016/day13.m4
2016/day24.m4
2018/day22.m4
2018/day23.m4
2018/day24.m4
2019/day18.m4
2019/day20.m4
2021/day15.m4
2021/day23.m4
2022/day16.m4
2022/day19.m4
2022/day24.m4
2023/day17.m4
priority.m4