C# Class CodingPractice.BST.BST

Inheritance: IBstInterface
Show file Open project: cabhishek/algorithms-datastructures

Protected Properties

Property Type Description
root CodingPractice.BST.BSTNode

Public Methods

Method Description
BST ( ) : System
Insert ( IComparable item ) : void
IsThere ( IComparable item ) : bool
NodeCount ( ) : int
NumberOfNodes ( ) : int
Retrive ( IComparable item ) : IComparable

Private Methods

Method Description
recInsert ( IComparable item, CodingPractice.BST.BSTNode tree ) : CodingPractice.BST.BSTNode
recIsThere ( IComparable item, CodingPractice.BST.BSTNode tree ) : bool
recNumberOfNodes ( CodingPractice.BST.BSTNode tree ) : int
recRetrive ( IComparable item, CodingPractice.BST.BSTNode tree ) : IComparable

Method Details

BST() public method

public BST ( ) : System
return System

Insert() public method

public Insert ( IComparable item ) : void
item IComparable
return void

IsThere() public method

public IsThere ( IComparable item ) : bool
item IComparable
return bool

NodeCount() public method

public NodeCount ( ) : int
return int

NumberOfNodes() public method

public NumberOfNodes ( ) : int
return int

Retrive() public method

public Retrive ( IComparable item ) : IComparable
item IComparable
return IComparable

Property Details

root protected property

protected BSTNode,CodingPractice.BST root
return CodingPractice.BST.BSTNode