public class DTrieST extends TrieST
8+24+2*r(r为chars数组长度)=chars 8+(56+8*r)*n(n为元素个数)+8*r*n*w(w为键的平均长度)
B=56*(n+1)+8*r*n*(w+1)+(2*r+对齐填充)
| 限定符和类型 | 类和说明 |
|---|---|
protected static class |
DTrieST.Node
8+25+8*r(r为数组长度)+对齐填充=40+8*r
B=56+8*r
|
| 限定符 | 构造器和说明 |
|---|---|
protected |
DTrieST(char[] chars) |
| 限定符和类型 | 方法和说明 |
|---|---|
Double |
get(char[] a) |
protected Iterable<Double> |
get(DTrieST.Node x) |
Iterable<Double> |
getAll() |
Iterable<Double> |
getByPrefix(char[] prefix) |
Iterable<char[]> |
getChars(Predicate<Double> predicate,
int limit) |
static DTrieST |
of(char[] chars) |
void |
put(char[] a,
double val) |
public static DTrieST of(char[] chars)
public final void put(char[] a,
double val)
public final Double get(char[] a)
protected final Iterable<Double> get(DTrieST.Node x)
Copyright © 2022. All rights reserved.