Assignments

Handin Instructions

For homework assignments (except the Collaboration Policy and assigned readings), please email your solution to cs0931handin@cs.brown.edu. We will only accept plain text, Python, or Excel files. Bring the signed Collaboration Policy to class. Be sure to read the Homework Policy for more detailed information about late handins, extensions, and grades.

Date Topic Class Materials Assignment Due Date Extra Files
Introduction to Computation
Th 1/24 Liberal Media Bias [slides] Missive Collaboration Policy
"On the Bias"
HW 0-1
T 1/29
Voting Patterns in Excel: Assessing the Liberalness of U.S. Senators
T 1/29 Forming a Computational Problem & XML [slides] Vote URL HW 1-1 T 2/5 HW 1-1Part1.xlsx
HW 1-1Part2.xlsx
GradeSheet.xlsx
Th 1/31 Data Collection [slides] ACT 1-1
Senate URL
xml2csv-conv.jar
congress112_allvotes.xlsx
T 2/5 Ranking Senators (1/2) [slides] ACT 1-1
ACT 1-2 [sol.xlsx]
HW 1-2 T 2/12 HW1-2_Starter.xlsx
Th 2/7 Ranking Senators (2/2) [slides] ACT 1-3
ACT1-3_starter.xlsx [sol.xlsx]
Project 1
Project Rubric
(Proposal)
Th 2/14
Political Books
www.data.gov
(Project)
T 2/26
T 2/12 Discovering Voting Patterns (1/2) [slides] ACT1-3_finished.xlsx
ACT 1-4
ACT1-4_starter.xlsx
Th 2/14 Discovering Voting Patterns (2/2) ACT1-5_starter.xlsx
allcompare_starter.xlsx
finished.xlsx
ClusteringMacro.xlsm
T 2/19 No Class (President's Day Weekend)
Textual Analysis in Python: Building a Concordance for a Text
Th 2/21 Textual Analysis & Intro to Python [slides] GoogleNgrams
Python 2.6.6
Oz Books
HW 2-1 T 2/26
T 2/26 Your First Python Program [slides] ACT2-1
ACT2-1.py [sol.py]
poem.txt
HW 2-2 T 3/5 moby-starter.py
HW2-2.py
Th 2/28 Summary Statistics (1/2) [slides] ACT2-2
ACT2-2.py [sol.py]
MobyDick.txt
T 3/5 Summary Statistics (2/2) [slides (ppt)] ACT2-3
ACT2-3.py [sol.py]
MobyDick.txt
Alphabet Maps
Th 3/7 Vocabulary Size of Moby Dick functionErrors.py
ACT2-4.py [finished]
MobyDick.txt
HW 2-3 Th 3/14 HW2-3.py
T 3/12 Python Dictionaries [slides] ACT2-5
ACT2-5.py [sol.py]
HW 2-4 Th 3/21 HW2-4.py
Th 3/14 User Input, Reading Online Data, String Functions [slides] ACT2-6
ACT2-6.py [sol.py]
Python String Methods
Edited in-class IDLE session
T 3/19 Project 2 [slides] Text Data Sources
DataImport.py
Project 2
Project Rubric
(Proposal)
Th 4/4
Example_Skeleton.py
Senate Social Network
(Progress)
W 4/10
(Project)
T 4/16
Th 3/21 Determining Authorship [slides] ACT2-7.zip ACT2-7_sol.zip
T 3/26 No Class (Spring Break)
Th 3/28 No Class (Spring Break)
Putting It All Together
T 4/2 Randomness and Google Earth [slides] DOMA arguments
Google Earth
CIT.kml
DecToHexConverter
HW 3-1 T 4/9 HW3-1.py
Code from class
Th 4/4 Regular Expressions [slides] ACT3-2
regexpal.com
ACT3-2.py
poem.txt
PythonRE
T 4/9 More Regular Expressions [slides] re_tester.py
zombify.py
pnp.txt
Match Objects
Th 4/11 Project 2 Peer Review
Final Project
T 4/16 Final Project [slides] & Gideon Goldin from CLPS Project Example 1
Project Example 2
Project Example 3
k-Means clustering animation
Final Project
Project Rubric
(Proposal) T 4/23
(Project)
T 5/7
Th 4/18 Final Project Work Time & John Mulligan from English Times Haiku (1, 2, 3)
Clustering the USA
T 4/23 Final Project Work Time & Jean Bower from the Center for Digital Scholarship Proposal Due
Th 4/25 Final Project Work Time & Megan Reilly from CLPS
T 4/30 Final Project Work Time (Reading Period)
Th 5/2 Final Project Work Time (Reading Period)
T 5/7 Optional presentations and pizza party Final Project Due
Fri 5/10 Exam Period (Interactive Grading) 9AM-Noon