algo — C++23 日本語リファレンス GitHub

decrease_key_heap

コンセプト · 単一始点最短路 (shortest_path)

template <class Heap, class Key, class Value>
concept decrease_key_heap = requires(Heap &h, Key key, Value value) {
    requires requires(decltype(h.push(key, value)) handle) { h.update(handle, key); };
};

概要

decrease-key(update)を持つヒープか

binary_heap / fibonacci_heap は満たし、dijkstra_priority_queue は満たさない。

計算量

関連項目