The document describes Hidden Markov Models (HMMs). It discusses how the problem of finding CG-islands in DNA sequences can be modeled as the "Fair Bet Casino" problem of determining which coin (fair or biased) was used to generate a sequence of coin flips. An HMM is presented to model this problem, consisting of hidden states (fair/biased coins), observed emissions (heads/tails), and transition and emission probabilities. Algorithms for decoding (finding the most likely hidden state sequence) are introduced, including the Viterbi algorithm which uses a graph-based approach to efficiently solve the decoding problem in linear time.