Тёмный
No video :(

Graham Scan: Background & Python Code 

Brian Faure
Подписаться 13 тыс.
Просмотров 21 тыс.
50% 1

Code below… 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 ‘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: github.com/bfaure/Python_Algo...
****
► Python Data Structures: • Python Data Structures
► GUI development in Python (WIP): • Python GUI Video Tutor...
References:
[1] en.wikipedia.org/wiki/Convex_...
[2] en.wikipedia.org/wiki/Convex_...
[3] • Video
[4] www.geeksforgeeks.org/convex-h...
[5] en.wikipedia.org/wiki/Graham_...
End song is “Out of the Skies Under the Earth” by Chris Zabriskie

Опубликовано:

 

28 ноя 2017

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 23   
@joaogoncalocouto
@joaogoncalocouto 3 года назад
Amazing video and explanation! I’m a subscriber after this one
@xt3988
@xt3988 5 лет назад
Great video!
@qzorn4440
@qzorn4440 5 лет назад
very interesting python code. thanks.
@BenAllwoodtheGreat
@BenAllwoodtheGreat 4 года назад
Great Video!!!
@jamshidali4912
@jamshidali4912 3 года назад
This is Awsome
@Weth767
@Weth767 3 года назад
Great!
@owaissultan40
@owaissultan40 3 года назад
Awesome
@syedqaisarali9644
@syedqaisarali9644 3 года назад
plz sir make video on concave Hull By the way this video is very helpful for me
@miguelpetrarca5540
@miguelpetrarca5540 2 года назад
What is the intuition/need behind applying secondary sort by distance and having point closer to anchor be sorted before point farther from anchor
@Toopa88
@Toopa88 4 года назад
You can also use this in the console: for x in {1..5}; do python main.py; sleep 1; done Or something like: time for x in {1..5}; do sleep 1; done Instead of sleep 1 you would put your program, but here it would take about 5 seconds. My output: real 0m5.122s user 0m0.000s sys 0m0.078s Not sure if this helps anybody but sometimes I find it useful.
@jiageng1997
@jiageng1997 5 лет назад
Thank you for the video! However, when I run the GitHub script such as in 13:15, the plot GUI freezes at the first frame. I am only trying 10 points.
@jiageng1997
@jiageng1997 5 лет назад
It also produces IndexError: list index out of range for rather small sizes (eg >300)
@sophiar.2310
@sophiar.2310 6 лет назад
GitHub code comments say " polar_angle " function returns the polar angle (radians) from p0 to p1, while your video says its from p1 to p0. So which one is right?
@BrianFaure1
@BrianFaure1 6 лет назад
+Sophia R. Hello Sophia, I apologise for the confusion, the angle returned is from p1 to p0, so the angle from the 0° axis to the point p0, treating p1 as the origin of the 0° axis.
@sophiar.2310
@sophiar.2310 6 лет назад
Got it. Thanks! Great channel, definitely learnt a lot here. It would be nice to cover dynamic programming and greedy algorithm in the future!
@BrianFaure1
@BrianFaure1 6 лет назад
+Sophia R. Thanks so much, I'll add those to the queue!
@carlosvalle-diaz4493
@carlosvalle-diaz4493 6 лет назад
Make Video on Hash tables
@BrianFaure1
@BrianFaure1 6 лет назад
I'll start workin on it, thanks for the input!
@lycanlift
@lycanlift 5 лет назад
What software or program are you using?
@BrianFaure1
@BrianFaure1 5 лет назад
Hi Xavier, the coding editor I’m using here is Sublime Text, to run the code I’m just using the default Ubuntu terminal.
@lycanlift
@lycanlift 5 лет назад
@@BrianFaure1 thank you
@lycanlift
@lycanlift 5 лет назад
@@BrianFaure1 Is there a guide you provided or somewhere to install Ubuntu, I am using Windows?
@jayjay-fl3vn
@jayjay-fl3vn 5 лет назад
@@lycanlift if you are not a elementary school you gotta google it.
Далее
Bubble Sort: Background & Python Code
8:31
Просмотров 12 тыс.
Qalpoq - O'z eriga qaynona (hajviy ko'rsatuv)
34:31
Просмотров 141 тыс.
AVL Tree: Background & Python Code
24:24
Просмотров 45 тыс.
Convex Hull in 3D
5:28
Просмотров 4,2 тыс.
How Fast can Python Parse 1 Billion Rows of Data?
16:31
Convex hulls: Graham scan - Inside code
7:00
Просмотров 23 тыс.
A.I. ‐ Humanity's Final Invention?
18:30
Просмотров 3,3 млн
Single-Layer Perceptron: Background & Python Code
18:41
Compilers, How They Work, And Writing Them From Scratch
23:53
How to Create Convex Hulls / Territory Maps in Python
27:10
Qalpoq - O'z eriga qaynona (hajviy ko'rsatuv)
34:31
Просмотров 141 тыс.