Options
All
  • Public
  • Public/Protected
  • All
Menu

Type parameters

  • T

Hierarchy

  • PairingHeap

Index

Constructors

constructor

Properties

elem

elem: T

Private subheaps

subheaps: PairingHeap<T>[]

Methods

contains

count

  • count(): number

decreaseKey

  • decreaseKey(subheap: PairingHeap<T>, newValue: T, setHeapNode: function, lessThan: function): PairingHeap<T>

empty

  • empty(): boolean

forEach

  • forEach(f: any): void

insert

isHeap

  • isHeap(lessThan: function): boolean
  • Parameters

    • lessThan: function
        • (a: T, b: T): boolean
        • Parameters

          • a: T
          • b: T

          Returns boolean

    Returns boolean

merge

mergePairs

  • Parameters

    • lessThan: function
        • (a: T, b: T): boolean
        • Parameters

          • a: T
          • b: T

          Returns boolean

    Returns PairingHeap<T>

min

  • min(): T

removeMin

  • Parameters

    • lessThan: function
        • (a: T, b: T): boolean
        • Parameters

          • a: T
          • b: T

          Returns boolean

    Returns PairingHeap<T>

toString

  • toString(selector: any): string
  • Parameters

    • selector: any

    Returns string

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc