Swiftpack.co - takumatt/ConcurrentSkipList as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by takumatt.
takumatt/ConcurrentSkipList 1.0.1
A swift implementation of concurrent (thread-safe) skip list.
⭐️ 18
🕓 3 years ago
.package(url: "https://github.com/takumatt/ConcurrentSkipList.git", from: "1.0.1")

Introduction

A swift implementation of concurrent (thread-safe) skip list.
This package is mostly based on sean-public/fast-skiplist.

What is Skip List?

To simply put, skip list is a data structure to represent an ordered set.
This package provides API similar to swift's Set.
It is a probabilistic data structure and the average complexity of search, insert and delete are O(logn) respectively, while O(n) in worst cases.

Average Worst case
Search O(logn) O(n)
Insert O(logn) O(n)
Delete O(logn) O(n)

Installation

Swift Package Manager

Add the following to Package.swift.

dependencies: [
  .package(url: "https://github.com/takumatt/ConcurrentSkipList.git", from: "1.0.0"),
]

GitHub

link
Stars: 18
Last commit: 3 years ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Release Notes

3 years ago

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics