The Friendship Algorithm
'The Friendship Algorithm' - Season 2, Episode 13
When Sheldon wants to use the university's grid computer, he decides to befriend the guy who controls access. Not well versed in the art of making friends, Sheldon develops a friendship algorithm to win over Kripke.
Air Date: January 19, 2009.