Package algs32
Class XBSTWithNonStaticNode<K extends Comparable<? super K>,V>
java.lang.Object
algs32.XBSTWithNonStaticNode<K,V>
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate XBSTWithNonStaticNode<K,
V>.Node private boolean
check()
boolean
private XBSTWithNonStaticNode<K,
V>.Node void
void
private XBSTWithNonStaticNode<K,
V>.Node void
private XBSTWithNonStaticNode<K,
V>.Node private XBSTWithNonStaticNode<K,
V>.Node private V
int
height()
private int
private boolean
isBST()
private boolean
boolean
isEmpty()
private boolean
private boolean
private boolean
keys()
private void
static void
max()
private XBSTWithNonStaticNode<K,
V>.Node max
(XBSTWithNonStaticNode<K, V>.Node x) min()
private XBSTWithNonStaticNode<K,
V>.Node min
(XBSTWithNonStaticNode<K, V>.Node x) private XBSTWithNonStaticNode<K,
V>.Node void
int
private int
select
(int k) private XBSTWithNonStaticNode<K,
V>.Node select
(XBSTWithNonStaticNode<K, V>.Node x, int k) int
size()
private int
size
(XBSTWithNonStaticNode<K, V>.Node x) int
-
Field Details
-
root
-
-
Constructor Details
-
XBSTWithNonStaticNode
public XBSTWithNonStaticNode()
-
-
Method Details
-
isEmpty
-
size
-
size
-
contains
-
get
-
get
-
put
-
put
-
deleteMin
-
deleteMin
-
deleteMax
-
deleteMax
-
delete
-
delete
-
min
-
min
-
max
-
max
-
floor
-
floor
-
ceiling
-
ceiling
-
select
-
select
-
rank
-
rank
-
keys
-
keys
-
keys
-
size
-
height
-
height
-
check
-
isBST
-
isBST
-
isSizeConsistent
-
isSizeConsistent
-
isRankConsistent
-
main
-