Skip to content
This repository has been archived by the owner on Jan 9, 2019. It is now read-only.

Comparing sort algorithms may not be best example #25

Open
dsblank opened this issue Apr 12, 2018 · 0 comments
Open

Comparing sort algorithms may not be best example #25

dsblank opened this issue Apr 12, 2018 · 0 comments

Comments

@dsblank
Copy link

dsblank commented Apr 12, 2018

Your comparing algorithms example is great for visualizing individual sorting algorithms, but is problematic if it is used to compare algorithms.

Here is a nice site that does compare algorithms properly: https://www.toptal.com/developers/sorting-algorithms/

However, it does so by animating snapshots at particular points. This is hard to do with running javascript because the amount of code run between visualization updates is different.

My suggestion would be do not compare algorithms by having more than one at a time, but merely selecting one. Another possibility would be to rewrite the code in your pyodide Python using generators, so that each co-routine would be in sync.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant