Big Bang Theory: The Friendship Algorithm

"The Friendship Algorithm" is the thirteenth episode of season two of the comedy series The Big Bang Theory and the nineteenth episode of the series overall. It was directed by Mark Cendrowski with a teleplay written by Bill Prady and Lee Aronsohn based on a story treatment by Chuck Lorre. It first aired on CBS on Monday, January 19th, 2009. In this episode, Leonard Hofstadter is looking to get back into the dating game. Discouraged that things never moved forward with Penny, Leonard calls upon the affection of his occasional sexual stress release partner, Leslie Winkle, which ultimately makes Penny jealous. And Sheldon Cooper complains about the historical inaccuracies of a local Renaissance Fair.