CS 2000 - Fall 2025.


[Home]

Welcome to CS 2000! 10/1/2025

Video of the Day

Socratica Python videos:

Logical problem of the day

I'm going to hand you one thousand dollars, in one-dollar bills. Your job is to put those dollar bills in envelopes, in such a manner that no matter what number of dollars I ask you for you'll hand me the appropriate combination of envelopes. What is the fewest number of envelopes required?

https://pollev.com/slade You may also download the app to your phone. Use the "slade" poll id.

Canvas Quiz of the Day (need daily password)

Most days, there will be a simple canvas quiz related to the lecture. You need a password to activate the quiz, which I will provide in class. These quizzes will count toward your class participation grade. The quiz is available only during class. Note: each quiz is now worth 5 points.

Click for today's quiz.

Lecture 10: UNIX / Binary Encoding / OOP.

Administrivia

  • I have office hours Wednesdays from 4-6 pm, on zoom, id 459 434 2854.

  • I will be available for lunch on Mondays at 1 pm in Morse.

  • ULA office hours are found at Ed Discussions on Canvas.

  • CS Peer Advisers. Fall 2025 Peer Advisors Office Hours Schedule.

  • Homework assignments: [Assignments]. hw3 is now available.

  • Python Tutor

    Announcements

  • Yale Information Society Project See this week's events. Need to register.

  • Office of Career Services STEMConnect Pop Up advising Fall schedule. Drop in to one and have your resume reviewed, hear advice about finding internships, and learn more about how to get connected to alumni for networking opportunities.

    Midterm Exam

    In 2022, the New Yorker ran the above cartoon. At first, I thought it referred to our exams.

    The midterm will be Thursday October 9 at 7pm in DL 220. It will be a 2 hour hand written exam. No computers. No notes. No books. No kidding. Students registered with Student Accessbility Services will take the exam in room ML 211, across the street.

    Here is a practice exam. (solutions). Practice UNIX script. (solutions). mt.py code for practice midterm

    Here is a great resource to practice regular expressions https://regex101.com/ Also, see www.regular-expressions.info which has a tutorial as well as useful examples, including HTML tags, email addresss, IP addresses, dates, credit cards, and lots more.

    Also, the paper Music and Computation, discussed below, is also in scope, up to but not including Music. There will be true/false questions about binary encodings of numbers, text, images, and sound. No questions about music.

    Here is the document without the music section: Binary Encoding. Try this prompt with your favorite AI bot: Using the document found at https://zoo.cs.yale.edu/classes/cs200/lectures/BinaryEncoding.pdf please generate 20 sample true or false exam questions. Note: today the bots complain that they cannot load web files. Let me know if you find a way around this. In the mean time, I sent you 100 sample T/F questions on Friday and today!

    Review session: Saturday, October 4, 10am - Noon. AKW (51 Prospect Street) Room 200, Sophia Dai. Review slides (without answers) Review slides (with answers)

    Getting to know Python

    Everything is bits!

    See Music and Computation.

    Object Oriented Programming

    Oop.html (jupyter) object oriented programming.

    F String Formatting

    Review hw3.

    Getting to know UNIX

    UNIX Introduction Principle 2.
    [Home]