Git Product home page Git Product logo

sortedpie's Introduction

SortedPie

This is the classical Algorithms Design (or Algorithms Complexity Analysis) course assignment where we have to implement widely known sorting algorithms and benchmark their running times for different types on inputs. This repository also contains the report that I had to write as part of the assignment (currently in Portugueese). I tried my best do to some reflection and point situations where each algorithm may fit better.

The idea on this assignment was to make it full-testable and reproducible. For the first you can simply runpython -m unittest on the root folder, while for the latter you can execute the run_all.sh script to generate the benchmark data. Following you can run assemble_data.py to compile all .csv files generated on the previous step into a more meaningful file. If you run this script with the option -g, it'll generate all the trivial graphs (ie: the ones comparing sorted, partial sorted and unsorted entries) that I've used on the report. It's also possible to do experiments with each sorting algorithm individually. For more information use python runner.py -h.

Notice: The plotting script can be heavily improved as I tweaked it on the fly to generate different diagrams while writing the text (and ended up figuring that some trivial tasks might become a pain under matplotlib ๐Ÿ˜•)

Running

This code is compatible with Python 3.x and can be executed without any external dependencies, unless if you want to generate the graphics. For that matplotlib is necessary.

TODO

  • Translate the report to English (this will likely take some time to happen);
  • Move the graphs to this readme, or a discussion .md file, so you don't need to go to the full report;
  • Comment on the reason for not using numpy.

ยฉ Luiz Felix, 2017

sortedpie's People

Contributors

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