Package algs33
Class XRedBlackLiteBST<K extends Comparable<? super K>,V>
java.lang.Object
algs33.XRedBlackLiteBST<K,V>
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate booleancheck()booleanprivate voidget(XRedBlackLiteBST.Node<K, V> x, K key) intheight()private intprivate XRedBlackLiteBST.Node<K, V> private booleanis23()private booleanis23(XRedBlackLiteBST.Node<K, V> x) private booleanprivate booleanisBalanced(XRedBlackLiteBST.Node<K, V> x, int black) private booleanisBST()private booleanbooleanisEmpty()private booleanisRed(XRedBlackLiteBST.Node<K, V> x) keys()private voidstatic voidmax()private Kmax(XRedBlackLiteBST.Node<K, V> x) min()private Kmin(XRedBlackLiteBST.Node<K, V> x) voidprivate XRedBlackLiteBST.Node<K, V> private XRedBlackLiteBST.Node<K, V> intsize()
-
Field Details
-
RED
- See Also:
-
BLACK
- See Also:
-
root
-
N
-
-
Constructor Details
-
XRedBlackLiteBST
public XRedBlackLiteBST()
-
-
Method Details
-
get
-
get
-
contains
-
put
-
insert
-
isRed
-
rotateRight
-
rotateLeft
-
flipColors
-
size
-
isEmpty
-
height
-
height
-
min
-
min
-
max
-
max
-
keys
-
keys
-
check
-
isBST
-
isBST
-
is23
-
is23
-
isBalanced
-
isBalanced
-
main
-