In this week we tough upon a new concept, linked list. In my view, linked lists are fundamental data structures that every programmer should know, it consisting of a group of nodes which together represent a sequence. Under the simplest form, each node is composed of a data and a link to the next node in the sequence. for LLNode, if we know the value of a node, we can get the value of the next node. For the class of linked list, we can get the size of the linked list, front node and the back node. Combine LLNode with linked list, we can create many methods to process linked list such as append, prepend, insert before, delete back, delete after, change the value of the node in a specific index position etc. May be in the following class we will learn implementation of recursion in linked list, we will have a deeper understanding of linked list.
We finished the assignment 2 in this week, the most difficult part in this assignment is minimax strategy. Because we are not good at using recursion, our logical thinking need to improve. fortunately, we complete it, hope we can get a good mark.
No comments:
Post a Comment