heap-sign-negation-repurposes-min-heap

Status: IN

Both leaderboard (negated scores in SortedList) and URL frontier (sign-flipped sequence numbers in heapq) repurpose ascending-order data structures for alternative orderings by negating sort keys, rather than using custom comparators or different data structures.

Justifications

Key negation is a recurring trick for descending order in min-heap-only environments

Depends on (SL): leaderboard-negated-score-ordering, url-frontier-strategy-via-sequence-sign

Depended on by

JSON