Skip to content

Latest commit

 

History

History
98 lines (54 loc) · 2.02 KB

CircularSkipListConfig.md

File metadata and controls

98 lines (54 loc) · 2.02 KB

circle-ds / Exports / CircularSkipListConfig

Interface: CircularSkipListConfig

Hierarchy

  • BoundedConfig

  • SkipListConfig

    CircularSkipListConfig

Table of contents

Properties

Properties

capacity

Optional capacity: number

The maximum number of elements that can be stored in the collection.

Optional. Defaults to positive Infinity.

Inherited from

BoundedConfig.capacity

Defined in

types/bounded.d.ts:112


expectedSize

Optional expectedSize: number

The size used to calculate the optimal max level. Ignored if maxLevel is specified.

Optional. Default value depends on the implementation. For example, the implementation's maximum supported size.

Inherited from

SkipListConfig.expectedSize

Defined in

types/skipList.d.ts:105


maxLevel

Optional maxLevel: number

The maximum number of levels in the skip list.

Optional. A default value is calculated based on the probability factor p and expectedSize

Inherited from

SkipListConfig.maxLevel

Defined in

types/skipList.d.ts:113


p

Optional p: number

The probability factor used to randomly determine the levels of new nodes. Should be a value between 0 and 1, where a lower value results in fewer levels on average.

Optional; Default value depends on the implementation. For example, 0.5.

Inherited from

SkipListConfig.p

Defined in

types/skipList.d.ts:123