Graham Scan Algorithm: Background & Python Code

in #python7 years ago

Graham Scan Algorithm Tutorial

In this video we’ll learn about the Graham Scan, an algorithm developed in the 70s, used to construct ‘Convex Hulls’. Before we delve into the details of the algorithm, we’ll first learn a bit on ‘Convex Hulls’ themselves, and some ways of testing to see if a set of points constitutes a ‘Convex Hull’. Towards the middle of the lesson, we’ll switch over to our coding editor and actually implement the algorithm in Python (2.7).

Code for this lesson

https://github.com/bfaure/Python_Algorithms/blob/master/graham_scan/main.py

References

[1] https://en.wikipedia.org/wiki/Convex_hull_algorithms
[2] https://en.wikipedia.org/wiki/Convex_hull
[3]


[4] http://www.geeksforgeeks.org/convex-hull-set-2-graham-scan/
[5] https://en.wikipedia.org/wiki/Graham_scan

End song is “Out of the Skies Under the Earth” by Chris Zabriskie

Sort:  

Since it's my first post an I'm a noob here on Steemit, if you like these video tutorials, consider checking out my channel over on YouTube: https://www.youtube.com/c/BrianFaure1 . I'm on hiatus for a bit as I'm currently switching jobs and am in the process of moving but more will be coming soon!