Last week, we learned about binary tree, which is a kind of generic
tree that only have two children, left and right. Besides, left children is
less than the data itself while the left is larger than the data. This feature
makes binary tree much more interesting. For example, there are three distinct visiting
orders for a binary tree, namely, inorder, preorder and postorder. To be
honest, they are sometimes confusing and it did take me a long time to distinguish
these three visiting order. Inoder is the easiest one to recognize since it
visits from top to bot. Preoder is more likely form left form right as postoder
is the converse of preoder.
On the other hand, the assignment 2 is due on Thursday. I found this
assignment is pretty challenging due to the recursion, especially the minimax
strategy. Minimax is a strategy which always choses the winning move, if it
exists. This is a powerful strategy in the game where both players have all the
information and time they need. I had a tough time with this strategy. However,
I think it will be interesting to get over this problem. I do enjoy the process.
To conclude, it has been more than half of this semester. And the
course is getting more and more challenging. But I have confidence to face all
the difficulties.

No comments:
Post a Comment