Monday, 9 March 2015

Impressions of Week 7

Week 7 was a pretty normal week; we had normal class without any major issues to report. Assignment 2 is due next week and so far I have only barely started working on it... Nonetheless hopefully I don't have any problems with it as I am still 'on the fence' with recursion. Speaking of assignment 2, part of the lecture this week was going over some problems people were having with the assignment as well as some more information about MiniMax and trees. Pretty much all of Monday's class was dedicated to discussing assignment 2 and its misconceptions but I thought it was useful. As a side-note I learned a few other things: 1) MiniMax is also known as 'NegaMax', 2) Wikipedia has terrible articles on both.... In addition, some light was shed on the rough outcome function, which to me seems like an oxymoron since a computer doesn't do things 'roughly', but I digress. It really is counterintuitive to me because it was explained that using ONLY the current game state rough outcome should be able to predict who is winning, yet even a basic test such as finding out if a player is one move away from winning, would result in a new gamestate being used. The professors said it wasn't imperatively important but we shall see how it gets marked.

Other than the assignment we expanded our original tree definition to create what is called a 'Binary Tree' or BT. It is essentially a tree but each node can have at max only two children (or branches I suppose). Our examples included some strange arithmetic sequence using trees as well as many different functions to manipulate and traverse these tree hybrids. Mainly it was the methods that determine in which order to visit the nodes. Later 'Binary Search Trees' were introduced which essentially expand on the idea of sorted list searching from CSC108. It is just a tree of numbers but all numbers to the left (child) of a node are less than that node, while vice versa to the right child. The real advantage of this BST is that the height is logarithmic in nature and so it is much quicker to search for a number than say a linked list. For the record, nobody has mentioned whether or not it is faster than a sorted regular list.

No comments:

Post a Comment