How can a computer make decisions faster?
Image: MODIS Land Rapid Response Team, NASA GSFC, Public domain, via Wikimedia Commons
How can a computer make decisions faster?
Imagine you're reading a mystery book and you have to decide whether to jump to the next chapter based on clues. Without guessing, you'd wait until the end of the chapter to see if the clues make sense, slowing down your reading.
A computer uses a branch predictor to guess whether to jump to the next chapter or continue reading, making the reading process faster by avoiding unnecessary stops.
Example
If the computer guesses correctly, it skips unnecessary chapters, just like guessing the next chapter in a mystery book.
Remember this
The branch predictor guesses the direction of a "branch" (like a decision point) to keep the computer's instruction pipeline moving smoothly.
Text adapted from Wikipedia, licensed under CC BY-SA 4.0.
Attempts to overturn the 2020 United States presidential election
Why can computers do many things at once?
Likelihood function
Why can't we just guess probabilities correctly all the time?
ReLU and Leaky ReLU
Why do computers sometimes struggle with simple decisions?
Adam has bias correction: divides by (1-β^t) in early steps
Why do we sometimes need to fix mistakes in computer decisions?
Decision tree
Can a tree decide the best path to take?
Triton differs from CUDA
Why does a super-fast computer sometimes run slower than a regular one?
Swipe through more Machine Learning concepts
Open Pocket Polymath