Friday, 6 March 2015

Linked Lists and A2

Linked Lists and A2
    This week consisted of our linked lists lab and turning in our second assignment. In terms of our assignment, it was probably the hardest so far. Trying to figure out how to make the minimax strategy work as intended was probably the most challenging part of it all. The game itself was pretty straight forward to understand. More or less, everything fell into place once minimax was complete. In regards to the linked lists, they're just another data structure. This time the data structure is representative of a sequence. This sequence connects a bunch of nodes together, one node leading to one other node. Each node points to the next node and each node contains some sort of data. The reason they're so useful, to my understanding is that due to the simplicity of this sequence, nodes can be created and added anywhere in the sequence. Likewise, nodes can be removed at any point in the sequence. I'm curious as to whether or not there would be any benefit to the combination of abstract data types. What I meant by this is say there is a tree data structure. Then each node within that tree has its' data type be some sort of abstract data structure like a linked list for instance. I'm guessing it would only be useful in really specific cases and even then it would probably be more useful and beneficial to design a new abstract data structure. Thinking about it now, each situation can have an abstract data structure customized to be optimally perform its task. 


No comments:

Post a Comment