Package algs33
Class XRedBlackLiteBST<K extends Comparable<? super K>,V>
java.lang.Object
algs33.XRedBlackLiteBST<K,V>
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate boolean
check()
boolean
private void
get
(XRedBlackLiteBST.Node<K, V> x, K key) int
height()
private int
private XRedBlackLiteBST.Node
<K, V> private boolean
is23()
private boolean
is23
(XRedBlackLiteBST.Node<K, V> x) private boolean
private boolean
isBalanced
(XRedBlackLiteBST.Node<K, V> x, int black) private boolean
isBST()
private boolean
boolean
isEmpty()
private boolean
isRed
(XRedBlackLiteBST.Node<K, V> x) keys()
private void
static void
max()
private K
max
(XRedBlackLiteBST.Node<K, V> x) min()
private K
min
(XRedBlackLiteBST.Node<K, V> x) void
private XRedBlackLiteBST.Node
<K, V> private XRedBlackLiteBST.Node
<K, V> int
size()
-
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
-