I think the beauty comes out when referring to the problems the algos solve:
a. Solving the nut/bolt matching programming challenge with Merge sort. b. Backtracking e.g. finding the ordered pair of braces c. Not to mention the various tree/ graph walk problems d. I screwed my Google interview last round not knowing the problem could be easily solved topological sort
In terms of physical beauty, my favorite algorithm is the voronoi diagram. The 2D variant is rather boring, but the 3D version looks great and is capable of representing many natural phenomena from cellular division to material fragmentation (a common use is procedural generation of rocks).
Comments (491) 209 threads
Earlier commentsa. Solving the nut/bolt matching programming challenge with Merge sort.
b. Backtracking e.g. finding the ordered pair of braces
c. Not to mention the various tree/ graph walk problems
d. I screwed my Google interview last round not knowing the problem could be easily solved topological sort
Less than 10 lines of code to create a piece of art.
All comments shown.
Couldn't load more comments. Check your connection and try again.