Skip to main content
Challenges Markov chain: finding the most probable path
Artificial Intelligence Hard Markov chain Solves: 8

Markov chain: finding the most probable path

Author: CyberSamSU
Points
85

A simple Markov chain based text generator selects the next word based on the probabilities of which word comes after each word (transition probabilities). This table was extracted by counting word pairs (bigrams) from a small corpus of texts about the weather.

States (words): QUYOSH, BULUT, YOMGIR, SHAMOL, TUMAN. The following table shows the satr -> ustun transition probabilities (the sum of each row is 1.0):

from \ toQUYOSHBULUTYOMGIRSHAMOLTUMAN
QUYOSH0.10.20.20.40.1
BULUT0.10.10.10.40.3
YOMGIR0.30.10.30.10.2
SHAMOL0.20.20.20.30.1
TUMAN0.10.20.20.40.1

The generator starts with the word QUYOSH and makes 3 consecutive transitions (resulting in a path of 4 words in total).

Out of all possible paths, find the path with the highest overall probability (i.e. the one where the product of all transition probabilities in the path is the largest).

Place the found path (including the starting word, in uppercase, separated by underscores _) inside the flag:

BAYROQ{41_MARKOV_<SO'Z1>_<SO'Z2>_..._<SO'ZN>}
Hints 3
Opening a hint reduces the points you get for solving this challenge.
Hint 1 −8 pts Log in
Hint 2 −17 pts Log in
Hint 3 −25 pts Log in
To submit a flag, log in.

First solvers

1. Абдул 08.09.2026
2. Stiv_084100 11.09.2026
3. W.o.X 17.09.2026
4. Лазиз 04.10.2026
5. testrejim 09.10.2026
6. Mirjaxon Qaxxarov 26.10.2026
7. Odam 05.11.2026
8. arcanum 11.11.2026