Coder Social home page Coder Social logo

amyz33 / avantgardesort Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mmanguno/avantgardesort

0.0 1.0 0.0 10 KB

A new sorting algorithm that runs in O(1) time.

Haskell 9.82% Java 23.72% Common Lisp 9.36% Objective-C 17.59% PHP 2.56% Python 1.64% Scala 4.81% Swift 10.89% C++ 12.47% JavaScript 7.16%

avantgardesort's Introduction

Avant Garde Sort

A new sorting algorithm that runs in O(1) time.

The Avant-Garde sort is a sorting algorithm that challenges the accepted notion of a sorting algorithm. AG Sort breaks down the very definition of sorting, and questions the true meaning behind ordering.

Here's how it works:

  1. The sort takes in some sequence of elements (the type of element does not matter).
  2. The sort takes the role of thinker, creator, and destroyer, continuing an eternal cycle of 'death-breed-birth-breed-death', taking in the user's preconceptions as an implicit argument and transmogrifying it by redefining the natural order of the input elements to be identical to how it was input.
  3. The user opens their eyes to the reality put forth.
  4. The sequence is sorted.

An Example

Input: let ζ be [9 -123 9234 0 1723 -473414]

  1. Avant-Garde sort takes in the sequence ζ.
  2. γνῶθι σεαυτόν
  3. Avant-Garde sort returns ζ, sorted.

Algorithmic Complexity

  • Best Case Performance: O(1)
  • Average Case Performance: O(1)
  • Worst Case Performance: O(1)
  • Worst Case Space Complexity: O(n)

Other Facts

  • Avant-Garde sort is a stable sort.
  • Avant-Garde sort is an in-place sort.
  • Avant-Garde sort is best implemented non-recursively.
  • Avant-Garde sort is not a comparison sort.
  • Avant-Garde sort is not an adaptive sort.

avantgardesort's People

Contributors

mmanguno avatar jonjesbuzz avatar mikeadkison avatar amyz33 avatar saiarcot895 avatar sduddikunta avatar tiffz avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.