Chapter 2: Unified Algorithms for MPE and RRE