farbfetzen / algorithms Goto Github PK
View Code? Open in Web Editor NEWVisualizations of some algorithms
License: MIT License
Visualizations of some algorithms
License: MIT License
SortingAlgorithmRunner.run
and SortingAlgorithmRunner.visualize
both generate random points in different ways. Only do that once before calling those methods.
E.g. the books on algorithms that I bought.
Work towards implementing the Voronoi diagram from Chapter 9 "Computational Geometry".
like JCommander.
Instead use System.out
. And catch errors in the main method and only print the message with System.err
. Make a new command line argument to control if the full stacktrace should also be printed. Use logging only for development and debugging purposes.
This way I don't have to write twice the code. This makes the algorithms a bit less efficient but I don't really care about that. The main goal of this project is the visualisation.
Do the recording and the mutation in the same method, if possible. For example the swap can be done at the same time without writing two lines all the time. And operate on an instance array instead of passing the array around.
And streamline the recording a bit. Maybe something like recorder.newStep().swap(i, j).highlight(i, j).record();
where recorder is an instance variable that has access to the array and does the swapping during the swap()
call.
This also means I need to create a Recorder
class that is separate from the StepWiseSorter
class, which would be good practice anyway.
Make visualisation mode the default and create a command line argument to disable it.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.