Addressable Binary Heaps - v1.0.1
    Preparing search index...

    Function decrease

    • Decreases the key value of a heap element by a specified amount. After decrease, element may need to bubble up to maintain heap property.

      Type Parameters

      Parameters

      • instance: H

        The min-heap instance.

      • node: H[0]

        The element to modify.

      • dencreaseValue: number

        Amount to decrease the key by.

      Returns boolean

      true if element was found and modified, false otherwise.