This document discusses graphical models for chains, trees, and grids. It begins with an overview of chain and tree models and algorithms for maximum a posteriori (MAP) inference in chain and tree models. It then discusses dynamic programming for efficient MAP inference in chain models. Examples of chain models for applications like sign language recognition are provided. The document is presented as slides for a lecture on graphical models and computer vision.