Plot Twists and Algorithms