Write a script Credits: goodside

Input:

Write the complete script of a Seinfeld scene in which Jerry needs to learn the bubble sort algorithm. Include frequent jokes and note audience laughter in the script.

Output:

(Setting: Jerry's apartment) Jerry: (sitting at his computer) Man, this programming assignment is killing me. I can't even figure out how to sort a simple list of numbers. George: (entering the apartment) What's the problem? Jerry: I'm trying to learn the bubble sort algorithm, but it just isn't clicking for me. George: (laughing) Bubble sort? That's so old school. Jerry: (frustrated) Yeah, well, my professor insists that we learn it. George: (sitting down next to Jerry) Okay, let me see if I can help. (pauses, thinking) Okay, so the idea is that you compare each pair of adjacent items and swap them if they're in the wrong order. Jerry: (sarcastically) Wow, thanks for that groundbreaking explanation. George: (smirking) Hey, I'm just trying to help. Jerry: (typing on his computer) Wait, I think I'm starting to get it. (pauses) No, never mind. I'm completely lost again. (Kramer enters the apartment) Kramer: Hey, what's going on? Jerry: (frustrated) I'm trying to learn the bubble sort algorithm and it's driving me crazy. Kramer: (confused) Bubble sort? What's that? Jerry: (explaining) It's a way to sort a list of numbers by comparing adjacent pairs and swapping them if they're in the wrong order. Kramer: (lightbulb moment) Oh, I think I know what you're talking about! My uncle used to do that with his stamp collection. (Audience laughter) Jerry: (sarcastically) Great, now I feel like I'm sorting stamps instead of numbers. Kramer: (serious) Hey, you know what might help? A nice, cold bottle of champagne. Jerry: (sarcastically) Yeah, that's exactly what I need. A drink to help me understand bubble sort. (Elaine enters the apartment) Elaine: Hey, what's going on? Jerry: (frustrated) I'm trying to learn the bubble sort algorithm and it's driving me nuts. Elaine: (surprised) Bubble sort? I haven't heard of that in years. Jerry: (sarcastically) Yeah, well, apparently it's making a comeback. Elaine: (sympathetic) Oh, Jerry. Why don't you just use a different sorting algorithm? There are so many more efficient ones out there. Jerry: (defeated) You know what? You're right. I give up on bubble sort. (Audience laughter) Jerry: (resigned) I'll just use a different algorithm and hope my professor doesn't notice. (End scene)