public class IZRedBlackBST extends IXXRedBlackBST
8+48*n(n为元素个数)
B=24+48*n
| 限定符和类型 | 类和说明 |
|---|---|
protected static class |
IZRedBlackBST.Node
1+25+对齐填充=32
B=48
|
root| 限定符 | 构造器和说明 |
|---|---|
protected |
IZRedBlackBST(int key,
boolean val) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
delete(int key) |
protected IZRedBlackBST.Node |
delete(IZRedBlackBST.Node h,
int key) |
Boolean |
get(int key) |
protected IZRedBlackBST.Node |
get(IZRedBlackBST.Node h,
int key) |
static IZRedBlackBST |
of(int key) |
static IZRedBlackBST |
of(int key,
boolean val) |
void |
put(int key,
boolean val) |
protected IZRedBlackBST.Node |
put(IZRedBlackBST.Node h,
int key,
boolean 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 IZRedBlackBST of(int key, boolean val)
public static IZRedBlackBST of(int key)
public final void put(int key,
boolean val)
protected final IZRedBlackBST.Node put(IZRedBlackBST.Node h, int key, boolean val)
public final Boolean get(int key)
protected final IZRedBlackBST.Node get(IZRedBlackBST.Node h, int key)
public final void delete(int key)
protected final IZRedBlackBST.Node delete(IZRedBlackBST.Node h, int key)
Copyright © 2022. All rights reserved.