MCPcopy Create free account
hub / github.com/bighuang624/Algorithms-notes / decreaseKey

Method decreaseKey

code/algs4/IndexMinPQ.java:211–218  ·  view source on GitHub ↗

Decrease the key associated with index i to the specified value. @param i the index of the key to decrease @param key decrease the key associated with index i to this key @throws IndexOutOfBoundsException unless 0 <= i < maxN @throws IllegalArgumentException if {@code key

(int i, Key key)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 3

containsMethod · 0.95
swimMethod · 0.95
compareToMethod · 0.45

Tested by

no test coverage detected