This week brought in
the long-awaited second midterm. As my luck would have it, the TTC service was
suspended from Sheppard all the way to Bloor-Yonge right at the time that I was
taking it. As a result, I was late by 15 minutes. I was having a mental breakdown,
and I wish I had more time but I guess that's life. But it's just frustrating
that things like this happen at the most crucial moments -- especially since I
performed poorly on the first midterm and this was my chance to redeem myself.
I know I made a lot of stupid mistakes, because I keep forgetting that binary
trees are different than regular trees, in that binary trees have a max arity
of 2.
As for Assignment 2,
I'm still stuck on how to implement the depth_first_solve and
breadth_first_solve functions. I am having difficulties finding a way to link
the PuzzleNodes together. It is very difficult, as the children parameter for
class PuzzleNode is a list of PuzzleNodes, but each PuzzleNode should only have
one child and they all link together until the arrival of the solved puzzle.
I'm also not sure what happens when there are no more possible solutions, and
how to stop the endless loop of extensions when that happens. Hopefully I'll be
able to finish Assignment 2 soon, as I have a lot of big projects due soon from
other classes.
See you next week!
No comments:
Post a Comment