Pinned Tweet
thread: Sorting algorithms visualized
some famous algo visualized using python, numpy and matplotlib😋
first is Odd-even sort!
#Algorithm #python #visualization
Short thread: Creating a color palette from an image using K-means Clustering! (In python 🐍)
Using some demo images from the masterpieces that @JP_GHIBLI produced!
Then let's take a look at how it works...
#Algorithms #Python #colorpalette #kmeans
that's all! A simple and fun experiment if you want to start to understand & use K-Means.
As usual, all the (disorganized 😂) code used can be found on my github
github.com/mportesi/paletter
1
3
Mazes!
Everyone loves them, programmer too so..
Maze generation algorithms visualized!
Using python, numpy and @matplotlib 🐍
Short (for now..) thread
First is Depth-first search (backtracking) !
#Algorithms #python #visualization
The super ugly code used to generate them is here!
(will add other algo implementation later )
github.com/mportesi/maze_gen…
You will notice that i had to not check adiacent cells, but to use a +1 step because.. I was using a matrix, with a single cell acting as a wall or corridor..
1
1

