Fall 2016 Computer Science 458 Lecture 2: 9/02/2016



  • Per piazza posting, Jieung Kim office hours: Monday and Wednesdays, 5:30 pm to 7:30pm. AKW 311.
    Note: he will hold hours on Monday (Labor Day) even though class does not meet. However, he may be travelling on Wednesday, 9/7.

  • Here are some comments about the grading criteria for hw0.
    1. Both function1 and function2 should print out the results (each
       line contains a single word), instead of returning them.
    2. For function2, as shown in the example, the target word should not
       be included in the result.
    3. For both functions, the case doesn't matter. 
       "Male" should be in the same group with "male" or "alme".
    4. You can print any largest set, but not both.
    5. For both functions, the program should ignore the characters other
       than "a -z", "A- Z" and "0-9".
    By the way, the test cases we use are similar to the examples.  The
    main goal of this homework is to test how well do you know Python and
    R.  We will not use lots of corner cases to defeat your program.  Hope
    it helps.

    Do not use the Classes server dropbox. !!

    Bottom line: we are not trying to create lots of gotcha cases. This is not a software engineering course. We want you to attain conversational fluency in R and Python. We do not expect you to be able to write bulletproof code.

  • Demo: swirl, r studio


  • Introduction to Decision Making

  • For discussion in class: reasons for and against each of the following: We assume that you have relationships with a variety of people: family, friends, colleagues, classmates, etc. Also discuss who among them will be affected by your choice, either positively or negatively.

  • Decision taxonomy (possible components of a data structure)

  • Economic Decision Theory