Friday, 13 March 2015
Impression of Week 8
The material introduced in the recent few weeks are conceptually nothing new to me. I have been using the BST structure and linked list in my program a lot. However, the 'C' problem hits me again. I used to implement these linked structure with pointers. Python does not support direct referencing and dereferencing of any kind. This means to me that every node in either data structure holds a copy of one or more data members of node type which is taking huge spaces on the stack. I felt that is necessarily wasting memory spaces. I wonder if it is my understanding wrong or it is actually implemented like that in the python. LOL
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.
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.
Subscribe to:
Posts (Atom)