I have tried to solve the 2nd problem b and d subproblems from this exercise: http://courses.engr.illinois.edu/cs473/sp2010/homework/hw1.pdf
I solved the b to the following way:
My first question is that: Is my solution correct for the problem 2/b? My second question is: What I supposed to do the in problem 2/d? This a bit strange for me.
Thanks for your time and help.