Saturday, 7 March 2015

Impressions of Week 7!



In week 7, we learned a different type of a tree called Binary Tree. Binary Tree is very similar to the regular Tree as it has all the properties such as a node, path, internal node, leaves etc but the difference between the two is that the Binary Tree can only have two children where as we know the regular Trees can have many children. In the class BTNode we see that it has two children named the left child and right child respectively and they do serve a purpose as they are very helpful in case of Binary Search Trees as the value in the left tree is less than the node value and the value in the right tree is more than the node value which indeed helps in locating the numbers.

We also learned a very unusual but really interesting way to examine the data in the node's. We learned how to reach the different nodes through 3 different methods formerly known as preorder, inorder and postorder methods.

Also week 7 was really stressful because of the assignment which me and my teammates struggled with. As we know the TA's are on strike, so there were no Labs during week 7, which made me sad as Labs were the one in which we get hands on experience and we actually learn. I have some questions to ask regarding Trees which now i think can only be asked from the profs. Looking forward to clearing up my misunderstandings in the office hours and learning more stuff next week!


No comments:

Post a Comment