pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/pythonioncoder/DSA-Visualizations

all" rel="stylesheet" href="https://github.githubassets.com/assets/primer-0b53c3bf3393e2ed.css" /> GitHub - pythonioncoder/DSA-Visualizations: DSA and Visualizations for various sorting algorithms
Skip to content

pythonioncoder/DSA-Visualizations

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DSA and Visualizations in Python

Hey! I've made a variety of basic data structres in Python, alongside a few sorting algorithms. However, due to the sometimes difficult concepts surrounding some of them, mainly merge and quick sort, I've also made visualizations using matplotlib, numpy, and pygame for each sorting algorithm. If you want to see a default sort (something like this:)

quicksort.gif

Then just run the Vis program for the algorithm you want to see. If you want to use a custom list or change the number of values in the list, you can edit that by importing the visualization file, instantiating a new Vis() object, and changing the lst attribute that the algorithm sorts, or by feeding in an amount parameter into the object to change the size of the array. Then, call the sort like this:

my_vis = Vis(10)
my_vis.lst = np.flip(my_vis.lst) #  or whatever change you want to make to the unsorted array
merge_sort(my_vis)

The program should automatically create a matplotlib window and run the simulation. It will close out once completed. Have fun!

About

DSA and Visualizations for various sorting algorithms

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy