Git Product home page Git Product logo

visualsort's Introduction

Visualsort

Visualsort borns as a program to exploit the capabilities of Pixel gaming library (and having fun with Go).

It's aim is to provide a visual representation of the most popular in-memory sorting algorithms (Wikipedia).

Screenshots

Quicksort Screenshot

Demo video on Youtube.

Algorightms

  • Quick Sort: I effectively use the Go Lib implementation that should be a randomized version
  • Bubble Sort
  • Bubble Sort 2: fast end
  • Insertion Sort
  • Selection Sort
  • Shell Sort
  • Cocktail Sort
  • Merge Sort

Usage

Visualsort is a command line utility.

Just run visualsort to get a visual representation of quicksort (one of the best algorithm (not the "best" in the sense it's not an "optimal" solution for the problem of "in-memory sorting") implemented in many system libraries.

You can customize speed, delay, algorithm, data set and many more options for the sake of your experiments.

Command Options

For a complete list of options issue the interactive help: visualsort -h.

Some of them are treated here:

  • asc: will use a data set ordered in ascending
  • desc: will use a data set ordered in descending
  • delay: will retard the the start of the game by an amount of seconds. Useful for video recording
  • seed: set a random seed. Useful to compare algorithms with similar data sets
  • size: the size of the data set
  • speed: the speed of the animation

Installation

It would suffice

 go get github.com/MrBogomips/visualsort

Contribution

This project started for fun to explore Go and Pixel gaming library. The code should deserve better organization and many more algos (notably Mergesort).

Neverthless… if you found another sorting algorithm to share…

visualsort's People

Contributors

mrbogomips avatar

Stargazers

 avatar

Watchers

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