Finding the closest pair of points in Pygame || Divide & Conquer vs. Brute Force

preview_player
Показать описание
Let's find out how the two algorithms compare in finding the pair of points that lies closest together. As the number of moving points increase, the difference in performance will be obvious.

Obviously... because brute force is just pushing through without really understanding what you're doing.

Thanks for watching! I encourage you to learn a thing or two about algorithms, for they can be quite an experience.

Рекомендации по теме
Комментарии
Автор

I don't even know what this is but it showed up in my recommendations and I'm not complaining

Mydumbselfsays
Автор

Interesting. So would you sort the existing points by either x or y value and proceed from there?

MacShrike
Автор

Wow, I didn't think of doing it in pygame! Can you share the source code?

ashutoshmahapatra