Why do some puzzles take longer to solve?
Why do some puzzles take longer to solve?
Imagine you're trying to connect all the dots in a puzzle, but most of the pieces are blank.
You skip the blank pieces because they're not part of the picture, focusing only on the colored ones. This is like skipping zeroes in math to save time and effort.
Example
If you have a 10x10 grid with 90 blank pieces, you only count the 10 colored ones.
Remember this
Skipping unnecessary parts speeds up solving puzzles, just like skipping zeroes speeds up math calculations.
Text adapted from Wikipedia, licensed under CC BY-SA 4.0.
General-purpose computing on graphics processing units
Did you know your computer can do more than just compute numbers?
Computational complexity of matrix multiplication
O(n³) naive matrix multiplication
Overlapping subproblems
Ever calculated a huge Fibonacci sequence by hand?
Matrix multiplication algorithm
Ever wondered how computers speed up multiplying huge numbers?
Ordinary least squares
OLS minimizes squared differences
approximation algorithms guarantee: solution within factor α of optimal
Can we always find the best solution quickly?
Swipe through more Machine Learning concepts
Open Pocket Polymath