In my SLOG in week9, I was determined that I need to do well in assignment2 since me and my partner was struggling in assignment1. We were not able to debug our code successfully and we got a very low mark since the assignment cannot be run. Just right after Professor Heap sent us the handout of assignment2, me and my partner started to work on it. Although there are not many functions we need to implement in this assignment, we spent most of our time on reading and understanding the handout and the example code from Sudoku Puzzle. In SLOG in week10, I recorded that I was stuck in the last but the most important part of the assignment, Puzzle Tool. We tried our best but it took us too much time to figure this out. We then used the internet and realized that there are some models that could help us understand how to implement it. Finally, just right before the due date, we figured these two functions out and ran the puzzles very fluently. I reached my goal which a set in week9, and I hope I can achieve it and get the mark I want.
For the insert and delete of the BST which I got confused in week9 and week10, I went to the office hour and discuss with my friends about the implementation of the delete function in both case1 and case2. I finally know understand those two functions. However, I still need to do some more exercises on BST to enhence my knowledge and begin to prepare for the final exam.
Wednesday, 30 March 2016
Saturday, 26 March 2016
Week10 SLOG
This week our professor explored more on the delete function of BNT which at the same time, applies recursion in it. It becomes more complicated and I feel I am a little lost in this week's content. However, the content of efficiency is pretty fluent for me. This week's content is just an introduction for efficiency.
Although I get the idea of the lecture's content, I am confused with the content for the lab, which asked us to determine the time consumed from different sort. This is my fault because unlike the previous weeks, I didn't really read the lab very thoroughly for this week. I spent most of my time focusing on debugging my assignment2 and finally I have run all of my puzzles successfully. Therefore, I was not really prepared for the upcoming lab. So did the quiz as well. I did bad in the quiz and I hope that I could get at least one mark for the quiz.... hopefully.
Although I get the idea of the lecture's content, I am confused with the content for the lab, which asked us to determine the time consumed from different sort. This is my fault because unlike the previous weeks, I didn't really read the lab very thoroughly for this week. I spent most of my time focusing on debugging my assignment2 and finally I have run all of my puzzles successfully. Therefore, I was not really prepared for the upcoming lab. So did the quiz as well. I did bad in the quiz and I hope that I could get at least one mark for the quiz.... hopefully.
Sunday, 20 March 2016
Week9 SLOG
This week is exam week. I had two mid-terms in this week and I try to review both at the same time but I failed... I still can't quite understand how linked list work although I have memorize the implementation of linked list implemented in the lecture.
Although for this week's lecture, the professor only gave us two functions to do, which is delete and insert, it took me a long time to understand it. The content is harder than last week and it took me quite a while to know the implementation of the function especially the two cases in delete. Those two cases apply in different situations. Case 1 applies when there is no left child and Case 2 applies when there is left child.
Next week I need to finish the assignment 2. I am stuck in puzzle tool. The depth first search and breadth first search function really struggled me a lot. Hope in the next following week I could solve it!
Although for this week's lecture, the professor only gave us two functions to do, which is delete and insert, it took me a long time to understand it. The content is harder than last week and it took me quite a while to know the implementation of the function especially the two cases in delete. Those two cases apply in different situations. Case 1 applies when there is no left child and Case 2 applies when there is left child.
Next week I need to finish the assignment 2. I am stuck in puzzle tool. The depth first search and breadth first search function really struggled me a lot. Hope in the next following week I could solve it!
Sunday, 13 March 2016
Week8 SLOG
This week, in the previous lecture, professor Amir introduced us to a new concept named Binary Search Tree. It is exactly the same as the Tree structure in what we learned last week except that each parent has only two children. And the smaller one between the two children will be positioned to the left and the bigger one will be on the right side of the parent. We have also learned some special method such as '__contain__', which I believe will probably in the upcoming test. At the end of the lecture, the professor led us to a new concept which is to return the value of the BST in a variety of orders. The key for this concept is not to memorize the implementation of different order. The key is to know how the value is going to be returned. This really confused me a lot because I have no idea which order matches to which. I am so nervous on the upcoming test in next week since last test is interuppted by the fire alarm and the test was cancelled... I hope that I could do it well for the test. Last week, I got the mark from the Assignment1. It was bad because we actually didn't really run our code successfully. I need to work harder on the next assignment to bump my mark back.
Wednesday, 2 March 2016
Week 7 SLOG
This week we learned a new concept that is an important concept for the entire computer science, recursion. Basically, recursion is to define a function that would be used again in the implementation of that specific function. This really excited me because I've never known that I can define a function just by this function itself. I was first thinking that it would be a relatively easy concept because it is interesting and it seemed like that I can easily understand it. Nevertheless, when I was doing the lab, I found that recursion is not as simple as I thought. It can actually become quite complex since it requires us to totally follow the logic. I turned to my TA during the tutorial, he helped me with the lab and explained the all the difficult details to me. I think this lab is very useful as it helped me review my unit test content. Although I didn't write the first test due to the fire alarm incident happening during the test, I did the paper at home when it was posted. The result was not as good as I expected, but after I did the post exam exercise, I realized that I should spend more time doing the lab because if I can manage all the labs successfully, the test won't be too hard for me.
Subscribe to:
Posts (Atom)