C# Class Default.Tree

Show file Open project: gbarnett/shared-source-cli-2.0 Class Usage Examples

Public Properties

Property Type Description
nodes int
rand System.Random
root Node
seed System.Int32
time System.DateTime

Public Methods

Method Description
AdjustTree ( Node x ) : void
BuildNode ( ) : Node
BuildTree ( ) : void
FindNode ( Node r, int k ) : Node
InsertNode ( ) : bool
PrintTree ( Node r ) : void
RotateTree ( Node x ) : void
SetNodeColor ( Node n ) : void
Tree ( int n ) : System
UniqueKey ( Node r, int k ) : bool
WhichChild ( Node n ) : string

Method Details

AdjustTree() public method

public AdjustTree ( Node x ) : void
x Node
return void

BuildNode() public method

public BuildNode ( ) : Node
return Node

BuildTree() public method

public BuildTree ( ) : void
return void

FindNode() public method

public FindNode ( Node r, int k ) : Node
r Node
k int
return Node

InsertNode() public method

public InsertNode ( ) : bool
return bool

PrintTree() public method

public PrintTree ( Node r ) : void
r Node
return void

RotateTree() public method

public RotateTree ( Node x ) : void
x Node
return void

SetNodeColor() public method

public SetNodeColor ( Node n ) : void
n Node
return void

Tree() public method

public Tree ( int n ) : System
n int
return System

UniqueKey() public method

public UniqueKey ( Node r, int k ) : bool
r Node
k int
return bool

WhichChild() public method

public WhichChild ( Node n ) : string
n Node
return string

Property Details

nodes public property

public int nodes
return int

rand public static property

public static Random,System rand
return System.Random

root public property

public Node,Default root
return Node

seed public static property

public static Int32,System seed
return System.Int32

time public static property

public static DateTime,System time
return System.DateTime