这是SkipList的分析:https://eugene-eeo.github.io/blog/skip-lists.html
但我发现Redis中的p
是1/4,从表中可以看出,1/e可能更合适。
那么Redis中为什么使用p = 1/4而不是1/e呢?
这是SkipList的分析:https://eugene-eeo.github.io/blog/skip-lists.html
但我发现Redis中的p
是1/4,从表中可以看出,1/e可能更合适。
那么Redis中为什么使用p = 1/4而不是1/e呢?