The Friendship Algorithm

"The Friendship Algorithm" is the thirteenth episode of the second season of the   The Big Bang Theory. This episode first aired on January 19, 2009.

Summary
Sheldon wants access to a university computer which Kripke controls, so Sheldon decides to become friends with his adversary. He even invents an for making friends.

Extended Plot
At the Caltech cafeteria, Sheldon is going on about how deadly is. Howard interrupts him until Sheldon is about to explodes and they let him finish in an burst of unwanted factoids. Barry Kripke comes over to "congwatuwate Weonard" on anti-proton decay experiment, which had 20,000 data runs without any statistically significant results. Sheldon needs time on the computer and Barry Kripke let his friends have plenty of time on it. Sheldon decides that he should become his friend.

Back at {Apartment 4A|home]], Leonard is working on Penny’s computer so that Howard's emails go right into the spam folder. Sheldon is calling Kripke to again try and be friends after many unanswered phone calls. Leonard is his friend because there was a flyer on the bulletin board at the university: "roommate wanted: s need not apply." Leonard demonstrated by a short whistler where he gets a quick first warning from Sheldon.

Sheldon is undaunted by his quest for figuring out how to make friends so he passes out a to his friends, 211 questions and an essay. No one takes it seriously. Leonard answered the multiple-choice in a repeating pattern. Howard filled out his essay with a picture of a with an enlarged scrotum.

Next Sheldon decides to head to a bookstore to find literature on the subject. In the children's section he finds "Stu the Cockatoo is New at the Zoo." He tries to make friends with a little girl who also likes monkeys. He invites her to go with him sometime to see the monkeys, however, Leonard pulls him out before he gets arrested as a pedophile.

Leonard, Raj, and Howard show up with dinner and Sheldon presents his "Friendship Algorithm" based on the Stu the Cockatoo book. Leonard dismisses it, however Howard thinks they should consider in since they might make a fortune selling it at. “Share a meal > get a hot beverage > share time with an interest of Kripke's > share a different interest of Kripke's > share a different interest of Kripke's > share a different interest of Kripke's > share a different interest of Kripke's (uh-oh)” Sheldon calls Kripke, but gets stuck in his loop. By Howard adding a loop counter and a direct line to the "Least Objectionable Activity," Sheldon accept. Not bad for a man with only a masters in mechanical engineering.

Of course, Sheldon learns about rock climbing over the Internet and has no fear of climbing. He does have fear of falling. He freezes and can’t go up or down so he faints still hanging from his safety line like a giant bird.

Back at the apartment returning from their rock-climbing adventure, they offer Kripke some Chinese food. He needs some first. Since he can’t deal with any more friends, Sheldon cuts Raj loose even though Penny is not a scientist. He notices that Penny is hot, but changes her name to Roxanne. Howard whispers that he is starting to look good no, isn’t he? Sheldon pushes past to discuss getting time in the Open Science Grid Computer, however since as the official schedule is out of his control Kripke can’t help him even if they are friends. Raj is now back in since he likes monkeys. And Sheldon goes back to the rock-climbing wall and gets much further this time before passing out again.

Critics

 * "Those writers love Sheldon. He is the reason this show is on the map in many ways. At present he is also the reason it will never become more than it." - The TV Critic's Review
 * IMDb user reviews

Costume Notes
Leonard wears the "3 Penguins" t-shirt by Urban Outfitters (discontinued) and a Hubble telescope image of a galaxy t-shirt from CafePress.

Sheldon wears his red The Flash; Run Bolt shirt.

Trivia

 * When Leonard drags Sheldon out of the bookstore, he still has a copy of "Stu The Cockatoo Is New To The Zoo" in his hand. It is unknown whether he went back and paid for it or not.
 * Sheldon innocently tries to make a friend; however, Leonard takes him out of the store before someone thinks he's stalking little children. Sheldon was also stopped doing something similar to pedophiliac action by Leonard in "The Contractual Obligation Implementation", another episode where he talks to a young girl.
 * The "big-balled raccoon" Howard drew on his Sheldon trivia sheet is a Bake-Danuki.
 * The aspect that Sheldon likes monkeys (and also trains) is strongly regarded in this episode as does his future girlfriend Amy.
 * When Kripke hits on Penny, Howard says to her "Suddenly I'm looking pretty good, huh?", referencing the previous episode, where Penny comments on Howard's interest in her.

Quotes
Penny: What about Howard and Raj, how did Sheldon become friends with them?

Leonard: I don't know...how do carbon atoms form a benzene ring? Proximity and valence electrons.

Penny: Well, yeah, sure, when you put it that way.

Sheldon (on phone): Hello. This is Sheldon Cooper. I’m leaving a message for Barry Kripke. Barry, it was pleasant seeing you today in the cafeteria. I saw that you purchased the chef’s salad. Apparently, you did not know that the chef’s salad is kitchen trickery, to utilize scrap meat. Nevertheless, I hope you enjoyed it. I’m following up on our pending friendship, and I look forward to hearing from you regarding its status. Sheldon Cooper.

Sheldon (picks up train): Oh my! That’s awfully sticky. Alright, let’s see. Bernie Bunny has Two Daddies Now. It’s probably about homosexual rabbits. Jerry the Gerbil and the Bullies on the Bus. Read it, not helpful. Oh! Here we go. Stu the Cockatoo is New at the Zoo. Author Sarah Carpenter lives in Fort Wayne, Indiana, with her husband and best friend Mark, and their cockatoos too. Hardly makes her an expert in making friends, wouldn't you agree?

Little girl: I don’t like birds, they scare me.

Sheldon: Me too! Most people don’t see it. What are you reading?

Girl: Curious George.

Sheldon: Oh, I do like monkeys!

Girl: Curious George is a monkey.

Sheldon: Somewhat anthropomorphized, but yes. Say, maybe sometime you and I can go see monkeys together. Would you like that?

Girl: Okay.

Leonard: Sheldon, what are you doing?

Sheldon: I’m making friends with this little girl. What’s your name?

Girl: Rebecca.

Sheldon: Hi, Rebecca, I’m your new friend, Sheldon.

Leonard: No, you’re not, let’s go.

Sheldon: We were really hitting it off.

Leonard: Don’t look up, there’s cameras.

Video
500px|thumb|center