The current adaptable priority queue implementation uses the weight as the key. This means that for any words that have the same weight, only the most recently visited is used at that spot.
Issue is being changed, as it's no longer an Adaptable Priority Queue. Changing title to better reflect current situation. But the core problem does still exist.
The current adaptable priority queue implementation uses the weight as the key. This means that for any words that have the same weight, only the most recently visited is used at that spot.