Thursday, 5 March 2015

Impression of Week 7

What did we do in week 7 ? It's still Trees, but a new kind of Tree structure.

Binary Search Tree are the most adopted data structure in the computer science world. It extend the dimension of storage from surface into a layered field. The nature of a BST which every nodes's left child is smaller than the right child, gives BST advantage when being sorted and searched.

We can use the nature when we do search to reduce the amount by almost half since we only need to search a half of the children. Also, when we traversal down a BST, in order traversal naturally provides a sorted result of the data members in the Tree.

I attempted on implementing the Tree structure with minimax algorithm in the Assignment 2. I was able to mark every try in a Tree but never figured out a proper way to return the move back to the game state.

 

No comments:

Post a Comment