Publisher review:Safe heap queue class script preserves the heap property invariant. All methods on this heap preserve the heap property invariant; therefore there is no need for is_heap().
When creating a new heap, an optional 'key' argument can be specified to determine the comparison key for the items to be pushed into the heap.
Safe heap queue class 1.2 is a Python script for Programming Methods and Algorithms scripts design by George Sakkis.
It runs on following operating system: Windows / Linux / Mac OS / BSD / Solaris.
preserves the heap property invariant.
Operating system:Windows / Linux / Mac OS / BSD / Solaris