C# Class SkipList.SkipList

Mostra file Open project: jeske/StepsDB-alpha Class Usage Examples

Public Methods

Method Description
Find ( IComparable key ) : object
Insert ( IComparable key, object value ) : void
Remove ( IComparable key ) : void
SkipList ( ) : System
SkipList ( int maxListsCount, double probability ) : System
ToString ( ) : string

Private Methods

Method Description
FlipCoin ( ) : bool
NewRandomLevel ( ) : int

Method Details

Find() public method

public Find ( IComparable key ) : object
key IComparable
return object

Insert() public method

public Insert ( IComparable key, object value ) : void
key IComparable
value object
return void

Remove() public method

public Remove ( IComparable key ) : void
key IComparable
return void

SkipList() public method

public SkipList ( ) : System
return System

SkipList() public method

public SkipList ( int maxListsCount, double probability ) : System
maxListsCount int
probability double
return System

ToString() public method

public ToString ( ) : string
return string