Code Monkey home page Code Monkey logo

visualize-radix-sort's Introduction

Radix Sort

This was created during my time as a Code Chrysalis Student

Radix sort is a non-comparative integer sorting algorithm. Rather than use comparison between numbers, it exploits the information implied by the length of an integer and its digits.

The term radix represents how many digits are possible in a number system. For example, a binary system has a radix of 2 and a decimal system has a radix of 10.

The time complexity of Radix Sort is O(kN) - where k represents the length of the longest integer.

Radix sort works better than O(N2) or O(n log n) algorithms for large arrays of small numbers. You can visualize this with the example below:

MongoDB

Radix Sort has greater space complexity than in-place sorting algorithms as numbers are sorted into an array for each digit.

Global Requirements

  • node
  • yarn

Installing Dependencies and Set Up

To install dependencies:

$ yarn

To start the server:

$ yarn serve

To start the compilation process:

$ yarn start

You will need to run yarn serve and yarn start in separate command line windows/tabs.

visualize-radix-sort's People

Contributors

kalouo avatar mia-the-coding-cat 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.