Content deleted Content added
{{sorting}} |
|||
Line 16:
</div>
[[Best, worst and average case|In the worst case]], this algorithm performs {{math|(''k''−1)(''n''−{{sfrac|''k''
It can be improved by storing the sequences in a [[priority queue]] ([[heap (data structure)|min-heap]]) keyed by their first element:
|