Current Forum: Homework 3 Forum |
Date: Fri Sep 28 2001 12:43 am |
Author: Shi, Ying <shy@cmu.edu> |
Subject: count() & approximation() |
|
|
in the hw write-up it says "the count fcn simply returns the # of times a word appears in the file"
it does not say what to return for the exceptional condition that the word does not exist in the file at all.
while seems approximation acturally is supposed to handle the exceptional condition
therefore, we assume the parameter passed to count() is always a word existing in the file. RIGHT ??? and we're not supposed to handle the above mentioned exception
Thanks!! |
|