CS 201 - Fall 2024


[Home]

Welcome to CS 201! 11/22/2024.

Video of the Day

Encoding the Fibonacci Sequence Into Music, submitted by Sophia Calderon Monarrez.
I learned that this upcoming Saturday is Fibonacci Day. The date (11/23) corresponds with the first numbers of the Fibonacci Sequence. As such, I wanted to propose this video for Friday, which puts the Fibonacci Sequence to music:

I hereby solicit suggestions for the video of the day. Please email me your ideas with explanations. Selected entries will win five homework points. If your video is played at the beginning of class, you must also briefly explain something about the video and something about yourself, in person.

Logical Problem of the Day

Travelling Salesman Problem

A man, a wanderer, is walking along the railroad tracks. He is a bit of a scamp. He doesn't have anywhere to go. He has his backpack on his back. He sees a passenger train speeding towards him at a very high speed. Now, he is walking on the track, between the two rails. And he realizes that he is going to be hit by this train. So, he jumps off the track, as anyone would do. But before he jumps off the track, he runs 10 feet forward, toward the train. Now, why would he do this?

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.

Click for today's quiz.

Lecture 35: Running Time of Programs.

Announcements

  • The Percentage Project at Yale. (from Ramya Reddy)

    We are working with The Percentage Project, which is an upcoming nonprofit organization and leader in data-driven advocacy with the goal of helping inform departments and students in the country about the status of diversity and inclusion in their CS and Engineering departments. It is similar to CRA's Data Buddies program, but we focus more on student involvement, social advocacy, and collaboration across schools.

    This semester, the Percentage Project will be conducting a brief anonymous survey for students at Yale who are studying computer science and related fields, and we would love to have CPSC 200 and 201 students in the survey.

    The survey is completed with the following general survey link: https://bit.ly/ppyale24 . Additionally, any student who completes the survey has the opportunity to win free coffee/tea/boba of their choice.

  • Data Buddies
    The annual nationwide survey of CS departments (a.k.a. “Data Buddies”) is now live: https://cerp.co1.qualtrics.com/jfe/form/SV_e42au8zqmjbYvVI/?id=yale_cs

    This survey measures retention and persistence among CS students, including undergraduate majors, non-majors, and graduate students. It is the main tool that the department will be using to both gauge our educational efforts, and compare against peer CS departments.

    It is run externally by the Computing Research Association, which only provides aggregate data. At no point will we have access to individual answers or identities.

    We will be using the survey results to set and prioritize future department initiatives, so this is a great chance to have your voice heard. Please fill it out!

    Note: in other classes, students are given late day extensions as incentive to complete the survey. Here, that is like bringing coals to Newcastle. Just do the right thing. Your voice matters.

    If you fill out this survey, then you will also be given the opportunity to enter a raffle to win one of five hundred $25.00 Amazon gift cards!

  • If you have an upcoming performance or athletic event, I am happy to promote it during class. Just send me a note.

    Administrivia

  • I am available for lunch on Mondays at 1 p.m. (not noon) at the Franklin College Dining Hall. (Not next week.)

  • I have office hours Wednesdays from 4–6 p.m., on Zoom, ID 459 434 2854. (Not next week.)

  • ULA office hours are found at https://csofficehours.org/CS201/schedule. Sign up via the queue.

  • Homework assignments: [Assignments]. hw8 is now available. It is optional. Also, there are no unit tests. You can write your own based on the comments. Note: the provide statement for the autograder is still in flux. Stay tuned.

    Final Exam: Saturday, December 14th, 7pm, RTBA

    The exam will be three and a half hours long. You should have plenty of time.

    Here is a practice exam. (solutions). (final.rkt code for solutions) Ignore questions 1, 6, 7(c), 7(e), and 10. We will cover box and pointer notation. Plus Turing Machines and UNIX, through principle 6, that is, everything. Practice TC-201 programs. solutions. Since TC 201 was not on the second midterm, it will be emphasized on the final. Also in scope: strings and formal grammars, closures, list representation, vectors, box and pointer diagrams, running time of programs.

    If your grade on the final exam is higher than your lower midterm grade, it will replace that grade. The quality of mercy is not strained.

  • SAS students:
    Please remind your students to sign up to reserve a space with us through their SAS Accommodate portal.

    Lecture: Strings and Languages.

    Strings.html (jupyter) compilers

    Lecture: Running Time of Programs.

    Runtime.html

    tc201sort.pdf experiment with TC-201 sort program. Plotted in google sheets with insert chart.

    Professor Ozan Erat lectured on 11/14/22: big-O Asymptotic Analysis

    Big-O Cheat Sheet Know Thy Complexities!

    Closures + mutators:

    Getting to know UNIX

    UNIX Principle 5
    [Home]