Oliver-BE / sorting-algorithms-d3

An interactive web app written entirely in C++ to show off the new Empirical D3-wrapper.

Home Page:https://oliver-be.ml/sorting-algorithms-d3/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sorting-algorithms-d3

image

This web app is written entirely in C++ and utilizes the Empirical D3-wrapper to create an interactive visualization of different sorting algorithms. This project is meant to serve as a demo for how the new D3-wrapper can be used with Empirical to create powerful web apps.

Along with @elizabethcarney, @amlalejini, and @emilydolson I worked on creating a C++ wrapper for D3.js, a JavaScript library that allows for custom-made, interactive visualizations. We began the process of overhauling Empirical's web visualization support for use in the next version of Avida-ED.

For more information on what I did, see this blog post I wrote.

To checkout the live web app, see https://Oliver-BE.github.io/sorting-algorithms-d3.

Features

  • A slider to iterate through individual steps of a sorting algorithm
  • A play button to speed through the remaining steps of a sorting algorithm
  • A shuffle button to randomize the data
  • A card containing live statistics pertaining to the number of swaps a sorting algorithm has taken
  • Cool D3 transitions!

Credits

This package was created with Cookiecutter and the devosoft/cookiecutter-empirical-project project template.

This software was written by Oliver Baldwin Edwards and uses the MIT license

About

An interactive web app written entirely in C++ to show off the new Empirical D3-wrapper.

https://oliver-be.ml/sorting-algorithms-d3/

License:MIT License


Languages

Language:JavaScript 99.2%Language:C++ 0.4%Language:HTML 0.3%Language:Makefile 0.1%