Nepedia
Back to Discover
Fluent Reader
🔢

Viterbi algorithm

math Maturity 7-9 Next article →

Sometimes we see clues that hint at a secret. Imagine a doctor watching a patient for three days. The patient says they feel cold or dizzy. The doctor cannot see the actual sickness, only these symptoms. This is a puzzle of hidden events. The symptoms are what we observe. The sickness is the hidden cause. The Viterbi algorithm is a math tool used to solve this. It finds the most likely sequence of hidden events that explains the clues. This best guess is called the Viterbi path.

An example of HMM
An example of HMM

How does this math tool work? It uses something called dynamic programming. This is a way to solve a big problem by breaking it into smaller steps. The algorithm looks at each moment in time one by one. It builds two special tables, or matrices, to keep track of information. One table stores the highest probability of reaching a certain state. The other table remembers which previous state led to that high probability. At the very end, the algorithm looks at the final results. It then follows the trail backward to find the most likely path.

An example of HMM
An example of HMM

This idea has a very interesting history. It is named after Andrew Viterbi. He proposed it in 1967 to help decode digital signals. He wanted to fix errors in noisy communication links. However, the math was not just his discovery. At least seven different people found this method on their own. This includes people named Needleman, Wunsch, Wagner, and Fischer. By 1987, people began using it for natural language processing. This helped computers understand how words are used in sentences.

Today, the Viterbi algorithm is used in many amazing places. It helps your cell phone work using GSM or CDMA technology. It is also used in satellite signals and deep-space communications. When you talk to a computer, it uses this math for speech recognition. It turns the sounds you make into written text. Scientists also use it in bioinformatics to study biology. It even helps with target tracking to find the best path for observations.

An example of HMM
An example of HMM

You can see this math in action with a simple example. Imagine a patient is either healthy or has a fever. On day one, they feel normal. On day two, they feel cold. On day three, they feel dizzy. The algorithm looks at the chances for each day. It might find that the person was healthy for two days. Then, it might show they caught a fever on the third day. It picks the single most likely story that fits all the clues.

An example of HMM
An example of HMM
422 words

Where will your curiosity go next?

Keep exploring at your chosen reading level.

🖼️ Images & Media (1)
File:An example of HMM.png
An example of HMM.png
More to explore

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.