commit | 0cd53a6c37347800f786c4ddaa2e91af30350b5a | [log] [tgz] |
---|---|---|
author | Tim Peters <tim.peters@gmail.com> | Sat Aug 03 10:10:10 2002 +0000 |
committer | Tim Peters <tim.peters@gmail.com> | Sat Aug 03 10:10:10 2002 +0000 |
tree | ae92812f3269876a3aec224f6374be09b19cbc27 | |
parent | 657fe38241a7f072bdbf040a7bd05df96f326c5c [diff] |
Added new heapreplace(heap, item) function, to pop (and return) the currently-smallest value, and add item, in one gulp. See the second N-Best algorithm in the test suite for a natural use.