Season 2, episode 13 Sheldon displays his friendship algorithm as a flow chart, and tests it. (this belongs to CBS, not me, I'm just enlightening you with Sheldon's awesomeness)
Sometimes we make the same mistakes over and over again when we deal with problems because we lack in certain areas. By strengthening the connection between different types of problem solving methods - patterns - we learn to deal with problems through different perspectives.