### another note from prof. Rocha on assignment 4

the new deadline is Saturday at midnight. Students who have already submitted can re-submit if desired.

---------------

I am really sorry you are having trouble with this assignment. I am also frustrated because for the past several weeks I have asked students to ask specific questions about it in class and very few did. I also warned the class that I would be on travel, so at last minute it is hard to answer all your questions. Indeed, this is a *continuous* evaluation project and so it really was supposed to be worked on during the semester.

Now my suggestions: first, look at the clue that was posted on Infoport. Then, look at the form of the algorithm that was displayed in class. Basically, you need to come up with an expression, using the operations in the table shown in class, which leads to the desired behavior. That is, those transition rules:

V(C)= 0 => 0

V(C) = 0,5 => 0,5

V(C) = 2,4,6,8 => 0,2,4,6,8

V(C) = 1,3,5,7 -> 0,1,2,3,4,5,6,7,8,9

So, what kind of expression takes the value of cell C, which we denote by V(C) and which can only be a value between 0 and 9, and produces the rules above.

Well, a freebie, since a 0 always gets to be a 0, there should be a multiplication at play (several of your colleagues already suggested this). In other words, the next value of V(C) should include something like

V(C) = V(C)* X

Where X is something else that you need to figure out based on what we have discussed in class.

Moreover, the multiplication is probably not enough. The final expression contains more than one operation (from the table). For instance something like:

V(C) = (V(C) * X) ? Y

Or

V(C) = (V(C) ? Y) * X ? 10

Where ? are operations on the table. You need to come up with one such expression that explains those tables.

0Comments:Post a Comment

## Links to this post:

Create a Link

<< Home