public class ICRedBlackBST extends IXXRedBlackBST
8+48*n(n为元素个数)
B=24+48*n
| 限定符和类型 | 类和说明 |
|---|---|
protected static class |
ICRedBlackBST.Node
2+25+对齐填充=32
B=48
|
root| 限定符 | 构造器和说明 |
|---|---|
protected |
ICRedBlackBST(int key,
char val) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected ICRedBlackBST.Node |
delete(ICRedBlackBST.Node h,
int key) |
void |
delete(int key) |
protected ICRedBlackBST.Node |
get(ICRedBlackBST.Node h,
int key) |
Character |
get(int key) |
static ICRedBlackBST |
of(int key) |
static ICRedBlackBST |
of(int key,
char val) |
protected ICRedBlackBST.Node |
put(ICRedBlackBST.Node h,
int key,
char val) |
void |
put(int key,
char val) |
ceil, ceil, floor, floor, key, keys, keys, keys, keys, keysGe, keysGe, keysLe, keysLe, size, size, sizeGe, sizeGe, sizeLe, sizeLebalance, deleteMax, deleteMax, deleteMin, deleteMin, depth, depth, flipColors, isEmpty, isLeaf, isRed, max, max, min, min, moveRedLeft, moveRedRight, root, rotateLeft, rotateRight, select, select, size, sizepublic static ICRedBlackBST of(int key, char val)
public static ICRedBlackBST of(int key)
public final void put(int key,
char val)
protected final ICRedBlackBST.Node put(ICRedBlackBST.Node h, int key, char val)
public final Character get(int key)
protected final ICRedBlackBST.Node get(ICRedBlackBST.Node h, int key)
public final void delete(int key)
protected final ICRedBlackBST.Node delete(ICRedBlackBST.Node h, int key)
Copyright © 2022. All rights reserved.