Wednesday 2-4 pm. Thursday 7-9 pm.You should have received an email announcement about this yesterday.
1. Both function1 and function2 should print out the results (each line contains a single word), instead of returning them. 2. For function2, as shown in the example, the target word should not be included in the result. 3. For both functions, the case doesn't matter. To your question, "Male" should be in the same group with "male" or "alme". 4. You can print any largest set, but not both. By the way, the test cases we use are similar to the examples. The main goal of this homework is to test how well do you know Python and R. We will not use lots of corner cases to defeat your program. Hope it helps. Best, Ronghui Gu p.s. 5. For both functions, the program should ignore the characters other than "a -z", "A- Z" and "0-9". 6. On the assignment page, http://zoo.cs.yale.edu/classes/cs458/assignments.html the ways to submit the assignments are inconsistent, like "It is due online via the Zoo submit system," and "You should submit your assignments using the Classes/V2 system."
Bottom line: we are not trying to create lots of gotcha cases. This is not a software engineering course. Echoing the sentiments of Ronghui, we want you to attain conversational fluency in R and Python. We do not expect you to be able to write bulletproof code.
Having said that, given the size of the class, it is critical that your programs follow the paradigm, so that the TA's can grade them automatically. Othewise, in the words of Zorba the Greek (in quite another context), it a complete catastrophe.
One of your classmates wrote the following shell script to redefine submit
# Activate the submit command based on the current directory correctsub() { case "$PWD" in */cs422*) /c/cs422/bin/submit "$@" ;; */cs458*) /c/cs458/bin/submit "$@" ;; *) >&2 echo "submit: not in directory" ;; # default case esac } alias submit='correctsub'Enjoy!
You should be able not only to read it, but to edit it. I encourage you to beef it up. If you are a Python wizard, then add to the Python column. If you are an R champ, then fill in the R column. Think of this as Wikipedia writ small.
Do not feel limited by the categories. Feel free to add more entries, add links to explanatory pages or relevant tutorials. This is open ended. THe idea is to share and expand our knowledge. You can even post questions that you want your classmates to address.
One caveat: I believe that in sharing this document with the entire class, I am sharing it with the entire world. I ask you not to circulate the link outside Yale, at least until we get a better handle on this.
Every risk raises the question of a mitigation strategy. Removing a tattoo is an example. How does the presence or absence of a mitigation strategy affect a decision?
Also, someone observed that the quality of the tattoo will degrade over time. I noted that the same could be said for your Yale education. Upon reflection, I believe that for most alums, their Yale experience improves with age. They do not have an eidetic or photgraphic memory. Personally, I have a photoshop memory.