NOTE: This web site is
out of date.
This is the course web site from a past quarter,
Autumn 2016.
If you are a current student taking the course, this is not your class web site, and you should visit the current class web site instead at
http://cs106x.stanford.edu/.
If you are already at http://cs106x.stanford.edu/, the web page may not be updated yet for the new quarter.
Please be advised that courses change with each new quarter and instructor.
Any information on this out-of-date page may not apply to you this quarter.
Homework
(do not post solution code!)
(turn in homework)
Honor Code:
You must work individually on all homework assignments.
We check against all students from this quarter and from past quarters going back many years.
Violations of the Honor Code can lead to hearings with a misconduct committee.
Please be careful.
Week1 Sun 12:00 PM
Week1 Fri 12:00 PM
No assignments have been posted yet.
There will be an announcement on the main course web page when each assignment is posted.
Week10 Tue 12:00 PM
Homework 7 (Graphs): Stanford 1-2-3
due:
,
6:00pm
(not accepted after
,
6:00pm)
For this assignment you must solve and turn in the following single problem:
Week8 Mon 10:00 AM
Homework 6 (Binary Trees): 21 Questions; Huffman Encoding
due:
,
6:00pm
(not accepted after
,
6:00pm)
For this assignment you must solve and turn in both of the following problems:
Week6 Fri 10:00 AM
Homework 5 (Linked Lists): Patient Queue; Tiles
due:
,
6:00pm
(not accepted after
,
6:00pm)
For this assignment you must solve and turn in both of the following problems:
Week5 Wed 11:00 AM
Homework 4 (Backtracking): Maze Solver; Anagrams; Boggle
due:
,
6:00pm
(not accepted after
,
6:00pm)
For this assignment you must solve and turn in all three (3) of the following problems:
-
Maze Solver:
Some students on Windows machines were reporting that they could not load any files properly.
The starter code was just patched on Fri 10/28 at 2:15pm to correct this issue.
If you have this problem, please re-download the starter code.
We are sorry for the inconvenience.
Week4 Mon 11:00 AM
Homework 3 (Recursion): Fractals; Grammar Solver; 20 Questions
due:
,
6:00pm
(not accepted after
,
6:00pm)
For this assignment you must solve and turn in all three (3) of the following problems:
Week2 Fri 11:00 AM
Homework 2 (ADTs): Word Ladder; N-Grams; Maze Generator
due:
,
6:00pm
(not accepted after
,
6:00pm)
For this assignment you must solve and turn in all three (3) of the following problems:
Week1 Fri 11:00 AM
Homework 1 (C++ Basics): Mad Libs; Game of Life
due:
,
6:00pm
(not accepted after
,
6:00pm)
For this assignment you must solve and turn in both of the following problems:
-
Mad Libs:
There were small typos in the input files
clothing.txt and tarzan.txt.
The files were corrected on 10/1.
-
Mad Libs:
You may assume that you won't see a token with multiple placeholders right next to each other with no spaces between,
such as
"<noun><noun><noun>".
-
Life:
You may assume that the world's size is at least 3x3.
-
Both parts:
Our output comparison tool was showing the wrong line numbers for some diffs.
If the comparison tool says your output is wrong but then shows red/green lines that are the same,
look 1-2 lines up or down from that place to find the actual output difference.
This was caused by a bug in our library and has been fixed.
Future HWs will not exhibit this bug.
()
(not accepted after
, )
-
maze01-tiny:
output,
DFS,
BFS,
Dijkstra,
A*
-
maze04-small:
output,
DFS,
BFS,
Dijkstra,
A*
-
maze05-medium:
output,
DFS,
BFS,
Dijkstra,
A*
-
maze10-huge:
output,
DFS,
BFS,
Dijkstra,
A*
-
terrain01-tiny:
output,
DFS,
BFS,
Dijkstra,
A*
-
terrain03-small:
output,
DFS,
BFS,
Dijkstra,
A*
-
terrain06-medium:
output,
DFS,
BFS,
Dijkstra,
A*
-
terrain07-large:
output,
DFS,
BFS,
Dijkstra,
A*
-
map-middleearth:
output
-
Rauros:
DFS,
BFS,
Dijkstra
-
Black Gate:
DFS,
BFS,
Dijkstra
-
map-stanford:
output,
DFS,
BFS,
Dijkstra
-
map-usa:
output
-
Portland/NY:
DFS,
BFS,
Dijkstra
-
Bismarck/CHI:
BFS
-
random (medium):
output,
screenshot
** The demo JAR looks for its input files in its current directory.
If you get a file-not-found error, make sure you run the JAR from a directory that contains the input files.
-
-
-
(the grammar for Java programs)
-
(lets you make your own grammar and test it out)
- Warmup Problem, Karel Goes Home:
test #1
- Part A, Convert String to Integer:
test #1
- Part A, Balancing Parentheses:
test #1
- Part B, Human Pyramid:
test #1
- Part C, Sierpinski Triangle: text:
test #1;
graphics:
order-1,
order-2,
order-3,
order-5
- Part D, Flood Fill: text:
test #1;
graphics:
screenshot 1,
screenshot 2,
screenshot 3,
screenshot 4,
screenshot 5
- Part E, Grammar Solver:
test #1,
test #2,
test #3
Grammar Verifier: paste your sentences and math expressions from your grammar to see if they match the proper format
- (For more, run the demo)
"I need help with my homework!"
- There is probably someone in the , or maybe the instructor has office hours soon. If so, go see them.
- Check the message forum; your question may have been answered there.
- Go to the YEAH hours for this assignment.
- Read the relevant chapters and sections of the textbook
- Look at the in-class lecture examples.
- Look at this week's section handout problems and their solutions.
- Start early! We get swamped the day assignments are due.
- Don't panic. Every student has late days that can be used to submit an assignment after the due date.
This document and its content are copyright © Marty Stepp and Victoria Kirst, 2016.
All rights reserved.
Any redistribution, reproduction, transmission, or storage of part or all of the contents in any form is prohibited without the authors' expressed written permission.