reset password
Author Message
aaronyen
Posts: 29
Posted 16:51 Apr 19, 2011 |

For Task 1, are we suppose to generate an input.ppm first, and then let the user to start over for resizing?  Or are we suppose to let users to enter their m, n and k values during one execution?


Chien-Heng Yen

Last edited by aaronyen at 16:51 Apr 19, 2011.
eykang
Posts: 95
Posted 12:06 Apr 20, 2011 |

The latter. You need m and n to create an input anyway.

aaronyen
Posts: 29
Posted 00:22 Apr 22, 2011 |

For Task 2, if the specified dictionary size is 256, where in reality it should be 502, are we suppose to add the remaining symbols as a long, single dictionary entry at the end, or simply cut them off?


Chien-Heng Yen

Last edited by aaronyen at 00:22 Apr 22, 2011.
Redalb
Posts: 22
Posted 14:47 Apr 22, 2011 |

Any remaining substrings that not in the dictionary are not added if you've reached the max size. You match as many characters in sequence as you can that can be reduced to something already in the dictionary. At least that's how I did it.