Giter Club home page Giter Club logo

constant-time-sorts's Introduction

Constant Execution Time (CET) sorting

Some C implementations of standard and CET versions of different sorting algorithms to sort 10000 integers. A constant execution time guarantee can be useful in certain real-time systems. These implementations are intended purely as experiments to see how different CET sorting algorithms behave for worst-case, best-case and random input in terms of overhead and execution time.

Usage

constant_sorts [sort_type] [v] [w|b|r]

Where sort_type can be any of:

b | c  (bubblesort | CET bubblesort)
i | j  (insertionsort | CET insertionsort)
q      (quicksort)
s | t  (selectionsort | CET selectionsort)
y | z  (shellsort | CET shellsort)

Flag v enables verbose reporting. w | b | r for generating worst-case (reverse-sorted), best-case (sorted) or random (default) sets of integers.

Results

A short paper on the results can be found here (it was a runner-up for Best Paper Award in Delft University's Real-time Systems course, for what it's worth).

constant-time-sorts's People

Contributors

ktslabbie 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.