An open API service indexing awesome lists of open source software.

https://github.com/willbarkoff/temporalsort

🔢 O(n) sorting algorithm for golang
https://github.com/willbarkoff/temporalsort

Last synced: 4 months ago
JSON representation

🔢 O(n) sorting algorithm for golang

Awesome Lists containing this project

README

          

# TemporalSort

[![Go Reference](https://pkg.go.dev/badge/github.com/willbarkoff/temporalsort.svg)](https://pkg.go.dev/github.com/willbarkoff/temporalsort)
[![Test](https://github.com/willbarkoff/temporalsort/actions/workflows/test.yml/badge.svg)](https://github.com/willbarkoff/temporalsort/actions/workflows/test.yml)

The sorting algorithm of the future. Runs in O(n) time (best, average, and worst case) using principles from physics and the linearity of time.

This module defines one function `Sort([]int)`. It returns a sorted version of the list. Note that negative numbers are currently not supported.