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