HW2 news: examples, clarifications
11-Feb-2010 12:35
(1) In the Forums (on Collab), there’s a topic in the HW2 Questions forum called “Clarifications”. I’ll post clarifications, explanations etc. there. You’re required to read these and follow any clarifications/instructions posted there.
And ask questions in the Forum, if you have any!!
(2) In the Code section of the website there are now Java and Python solutions to a problem similar to the one we did in class today. These solve the problem of counting both the number of positive and negative values in an array/list of int values. The Java code illustrates how to pass-back two int values from a method to its caller. The Python code shows you how pairs of values (actually n-tuples) can assigned and also returned by a function. (How this works in Python is pretty easy and obvious!) So, you might find it interesting to compare Java and Python for the same problem.
(3) We did not cover the Master or Main theorem in class today. So, for problem Rec2, you're not required to turn it in for HW2. Turn it when you turn in HW3. (The grade will count as part of HW2.)
And ask questions in the Forum, if you have any!!
(2) In the Code section of the website there are now Java and Python solutions to a problem similar to the one we did in class today. These solve the problem of counting both the number of positive and negative values in an array/list of int values. The Java code illustrates how to pass-back two int values from a method to its caller. The Python code shows you how pairs of values (actually n-tuples) can assigned and also returned by a function. (How this works in Python is pretty easy and obvious!) So, you might find it interesting to compare Java and Python for the same problem.
(3) We did not cover the Master or Main theorem in class today. So, for problem Rec2, you're not required to turn it in for HW2. Turn it when you turn in HW3. (The grade will count as part of HW2.)