Thursday, 2 April 2015

Last impressions

When I look back all the things I did in this course are helpful. Even though my grades aren't that good I believe I learned a lot in this course. The marking scheme about the quizzes affected me in a bad way. My first 6 quizzes were bad so it will probably lower my grade. I wish they could've just gave us free 4 marks so I won't need to worry about my grades. Writing SLOGs for a computer science course was a good experience for me. Danny was my lecturer for both CSC165 and CSC148 so I really learned a lot from Danny. This course was a good experience for me!

Thursday, 26 March 2015

Revisiting an earlier SLOG posting of mine

In my first slog entry, I wrote about why the geeks should write. When I turn and look back at my entry I still agree what I said in the first week. Writing is an important thing for the geeks.  I got used to writing because I've been writing entries every week. I also think that writing stuff made me understand the material better so I completely agree what I said in my first agree.

Thursday, 19 March 2015

Impressions of Week 9

Week 9 was a short week for CSC148 since we had a term test on Wednesday. We only had one lecture. In that lecture we talked about binary search trees and programmed insert function. When I first looked at the code it seemed kind of complicated but as I looked deeply and reviewed BST's I think I understood it. The term test was harder than the first one. I got stressed in the term test because of it my term test didn't go as my expectations. When I'm stressed I forget everything I have in my memory. I hope I won't get so bad in my term test!

Friday, 13 March 2015

Impressions about Week 8

In this week we mostly talked about linked lists and mutation. Linked lists are kind of lists that are linked to each other. You can get track of every list in the linked list. I think it's a hard topic. Thinking about how to write the function given was really hard for me to understand. It requires a lot of thinking. I need to work on writing the LinkedList methods because I can't write it 100% correct in the first try. While writing the function you also need to remember stuff from csc108 and i need to review the stuff.

Friday, 6 March 2015

Impressions of Week 7

In the first class of the week, we mostly talked about assignment 2. I learned what minimax is and what it does. From the list of possible moves the function looks at every move and chooses the move that will have the best outcome. It is using recursion because the function should apply to every move. Then we talked mostly about binary trees and binary search trees. When I first saw these types of trees, I thought it will be hard to understand. After doing the lab exercises with someone who knows I think I mostly got how to implement methods for binary trees and binary search trees. When you understand it, the stuff seems fun to you.

Saturday, 28 February 2015

Week 7- Summary of Abstract Data Types

There are 4 ADT's I have learned so far. I learned 2 of them in CSC108 and the other 2 in CSC148. The ADT's I learned so far are lists, stacks, queues and dictionaries.
1. Lists are sequences of items and they can be added, removed, modified, and accessed by position. Lists are mutable. This means that you can modify a list. You can access a list by putting its index in brackets. Empty list is shown as '[]'. You can add a object to a list by using 'append' method which is pre-defined. Len operation helps you to find the length of a list.
2. Stacks are specialized lists where we only have access to most recently added item. They have methods such as pop and push. Pop removes and returns the last item on a stack and push adds an item to the last index of the stack. They also have indexes such as lists.
3.Queues are also specialized lists where we have access to most recently added item and the first item. They have methods such as enqueue and dequeue. The first item gets in and the first item gets out. Enqueue adds the first item to a list and dequeue removes the first item that you put in a queue.
4.Dictionaries are mutable and another container types that can store python objects. Empty dictionary is represented as "{}". Dictionaries have keys and values. You can access the keys and values by a for loop. The general form a dictionary is "{key: value}". You can have one key and multiples values but you can't have multiple keys. Keys have to be immutable.

Friday, 13 February 2015

CSC148H1S - My summary of Object-Oriented programming concepts

Since the beginning of the semester, we are talking about classes which are object-oriented programs. If you want to create a class in python, you just need to write class and the name of the class and if you want to inherit that in the paranthesis you just need to put the superclass. Every class has to have an __init__ method which gets called every time you create a class. Also the first parameter of every class should be self. Self refers to the specific object created from that class. If a function is within a class we call it a method.