C# Class CodingPractice.Heap.Heap

Inheritance: IPriorityQueue
Afficher le fichier Open project: cabhishek/algorithms-datastructures

Protected Properties

Свойство Type Description
elements IComparable[]
lastIndex int
maxIndex int

Méthodes publiques

Méthode Description
dequeue ( ) : IComparable
enqueue ( IComparable item ) : void
isEmpty ( ) : bool
isFull ( ) : bool

Méthodes protégées

Méthode Description
Heap ( ) : System
newHole ( int hole, IComparable item ) : int
reheapDown ( IComparable item ) : void
reheapUp ( IComparable item ) : void

Method Details

Heap() protected méthode

protected Heap ( ) : System
Résultat System

dequeue() public méthode

public dequeue ( ) : IComparable
Résultat IComparable

enqueue() public méthode

public enqueue ( IComparable item ) : void
item IComparable
Résultat void

isEmpty() public méthode

public isEmpty ( ) : bool
Résultat bool

isFull() public méthode

public isFull ( ) : bool
Résultat bool

newHole() protected abstract méthode

protected abstract newHole ( int hole, IComparable item ) : int
hole int
item IComparable
Résultat int

reheapDown() protected méthode

protected reheapDown ( IComparable item ) : void
item IComparable
Résultat void

reheapUp() protected abstract méthode

protected abstract reheapUp ( IComparable item ) : void
item IComparable
Résultat void

Property Details

elements protected_oe property

protected IComparable[] elements
Résultat IComparable[]

lastIndex protected_oe property

protected int lastIndex
Résultat int

maxIndex protected_oe property

protected int maxIndex
Résultat int