C# 클래스 CodingPractice.Heap.Heap

상속: IPriorityQueue
파일 보기 프로젝트 열기: cabhishek/algorithms-datastructures

보호된 프로퍼티들

프로퍼티 타입 설명
elements IComparable[]
lastIndex int
maxIndex int

공개 메소드들

메소드 설명
dequeue ( ) : IComparable
enqueue ( IComparable item ) : void
isEmpty ( ) : bool
isFull ( ) : bool

보호된 메소드들

메소드 설명
Heap ( ) : System
newHole ( int hole, IComparable item ) : int
reheapDown ( IComparable item ) : void
reheapUp ( IComparable item ) : void

메소드 상세

Heap() 보호된 메소드

protected Heap ( ) : System
리턴 System

dequeue() 공개 메소드

public dequeue ( ) : IComparable
리턴 IComparable

enqueue() 공개 메소드

public enqueue ( IComparable item ) : void
item IComparable
리턴 void

isEmpty() 공개 메소드

public isEmpty ( ) : bool
리턴 bool

isFull() 공개 메소드

public isFull ( ) : bool
리턴 bool

newHole() 보호된 추상적인 메소드

protected abstract newHole ( int hole, IComparable item ) : int
hole int
item IComparable
리턴 int

reheapDown() 보호된 메소드

protected reheapDown ( IComparable item ) : void
item IComparable
리턴 void

reheapUp() 보호된 추상적인 메소드

protected abstract reheapUp ( IComparable item ) : void
item IComparable
리턴 void

프로퍼티 상세

elements 보호되어 있는 프로퍼티

protected IComparable[] elements
리턴 IComparable[]

lastIndex 보호되어 있는 프로퍼티

protected int lastIndex
리턴 int

maxIndex 보호되어 있는 프로퍼티

protected int maxIndex
리턴 int