stm-data-collection-0.1.0.0: Collection of STM-based Data Structures

Copyright(c) Alex Semin, 2015
LicenseBSD3
Maintaineralllex.semin@gmail.com
Stabilityexperimental
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

Data.STM.PriorityQueue.Internal.TASLPQ

Description

An implementation of Class based on skip-list.

Expected time complexity of deletion is O(1), while insertion still normally has logarithmic complexity.

Default maximum height of skip-list node is 16. Use explicit constructor in case the height needs to be changed.

The skip-list's nodes are implemented via TArray.

Synopsis

Documentation

data TASLPQ k v Source

Abbreviation stands for TArray (-based) Skip-List Priority Queue

new' :: Ord k => Int -> STM (TASLPQ k v) Source

Parameterizing constructor which determines maximum height of skip-list node.