Homework

iconTurn in HW8 Homework 8 (Huffman)

Due Thursday December 6, 11:30pm.
No submissions accepted after Sunday December 9, 11:30pm.

Note: The IPL Closes Friday Decemeber 7, so still try to go to the IPL early

Specification:
Supporting Files:

java MakeCode.java (client program for part 1)
java Encode.java (client program for part 2)
java Decode.java (client program for part 3)
java BitInputStream.java (supporting class)
java BitOutputStream.java (supporting class)

Test case input files:

Input file Code File Compressed File
iconspec_example.txt iconspec_example.code iconspec_example.short
iconshort.txt iconshort.code iconshort.short
iconhamlet.txt iconhamlet.code iconhamlet.short

icon a8.zip (all of the above files)

Diagrams :  
Links:

iconTurn in HW8 bonus Homework 8 BONUS (HuffmanTree2)

Due Friday December 7, 11:30pm.

Please note that no submissions will be accepted after
11:30pm on Friday, December 7.

Specification:
Supporting Files :

iconTurn in HW7 Homework 7 (20 Questions)

Due Thursday, November 29, 11:30pm.
No submissions accepted after Sunday December 2, 11:30pm.

Specification:
Supporting Files: Client program
code for yesTo method
short question file
huge question file
all of the above
Links:

iconTurn in HW6 Homework 6 (AnagramSolver)

Due Thursday November 15, 11:30pm.
No submissions accepted after Sunday November 18, 11:30pm.

Specification:
Supporting Files:
Sample trace :
Links:

iconTurn in HW5 Homework 5 (GrammarSolver)

Due Thursday Nov 1, 11:30pm.
No submissions accepted after Sunday Nov 4, 11:30pm.

Specification:
Supporting Files:
Testing Your Solution:
  • The Output Comparison tool has a single example of what rules would be chosen if you did not choose a random rule, but rather the first rule. This might be helpful during developing but you should not match this output with your final solution (as your final solution should be random). Here is a trace of the grammar expansions of this "first rule" expansion rule.
  • iconHW5 Grammar Verifier verifies sentence output matches grammar
  • java TestE.java small Java program that lets you test if expressions from sentence2 are valid
Links:

iconTurn in HW4 Homework 4 (Evil Hangman)

Due Thursday Oct 25, 11:30pm.
No submissions accepted after Sunday Oct 28, 11:30pm.

Specification:
Supporting Files:
Sample Logs:
Links:

iconTurn in HW3 Homework 3 (AssassinManager)

Due Thursday Oct 18, 11:30pm.
No submissions accepted after Sunday Oct 21, 11:30pm.

Specification:
Supporting Files:
Links:

iconTurn in HW2 Homework 2 (Guitar Hero)

Due Thursday Oct 11, 11:30pm.
No submissions accepted after Sunday Oct 14, 11:30pm.

Specification:
Supporting files :
Links:

iconTurn in HW1 Homework 1 (Letter Inventory)

Due Thursday October 4, 11:30pm.
No submissions accepted after Sunday October 7, 11:30pm.

Specification:
Testing Programs: The following programs can be used in place of the Output Comparison Tool:

Need help with your homework?

  • There is probably someone in the IPL today, or maybe Hunter has office hours. If so, go see them.
  • Check the message board; your question may have been answered there.
  • Read the relevant chapters and sections of the textbook, or watch the textbook "online portal" videos if you have access to them.
  • Look at the in-class lecture example or this week's section handouts.
  • Don't panic. You have late days, and even if you run out, it is only -1 point for each additional day late.