Is there any “stock” implementation of min-heap which allows to decrease a key of arbitrary element?
Usually in imperative languages it’s realized by an array-backed min-heap with additional mapping of key-to-array index, to quickly find the updated element. However all libraries I’ve seen only allow to update a minimal value.