Thursday, 31 March 2016

The Ninth Post

The Ninth Post

This is my ninth post about CSC148 course at University of Toronto. This week, i am supposed to revisit one of my earlier slogs and write about my views. So, lets get back to the fourth post which i posted in the last month. It was just the beginning of the course and i was already complaining about how hard it was. In the first few weeks, we had been learning completely new topics and the first assignment required us to spend a lot of time on it. I thought, the course would get easier later but you know your expectation has nothing to do with reality. It just got harder later and i had to spend more time on it.

In the fourth post, i wrote how useful recursion can be and why to use it. Later on, i realized that recursion is much more important, it is used a lot. And i said that the code was complex but not scary and now i take it back, the code looks simple but is scary indeed. I guess i will have to study a lot more and give my best on the final exam.

Tuesday, 29 March 2016

The Eighth Post

The Eighth Post

This is my eighth post about CSC148 course at University of Toronto. I know i am late, i should have posted this last week. This week, it was about deleting items from a binary search tree and that could be also done using recursion. So that was something we looked into. Also assignment 2 submission was due in this week.
And also we looked at efficiency of algorithms. You know that all algorithms are not equally efficient, some might take a few seconds to finish and other may take few minutes. While writing code, it is important to make sure that it is efficient.

Friday, 18 March 2016

The Seventh Post

The Seventh Post

This is my seventh post about CSC148 course at University of Toronto. This week we learnt more about trees and binary trees. Also we had the second term test, it was mainly on linked lists and trees. The term was not very hard and also doing the tests of previous years helped me a lot. And one more thing, getting a high score on this test can also increase my score on the first test. It might sound strange but i am not going to explain how the marking scheme works.
And also the second assignment is due next week. Although we started working on it, we made little progress. This assignment is really time requiring and fairly challenging.

Friday, 11 March 2016

The Sixth Post

The Sixth Post

This is my sixth post about CSC148 course at University of Toronto. This week we learnt about recursion and trees. I already talked about recursion in my previous posts so, lets go with trees.
A tree in python can be compared to a tree chart, it starts with a root and it can have a number of branches and then each of them can have their own branches. But in binary trees, each node can have maximum of two branches.
We have a term test coming next week and also an assignment is due later. I haven't started the assignment yet but have started preparing for the test. 

Thursday, 3 March 2016

The Fifth Post

The Fifth Post

This is my fifth post about CSC148 course at University of Toronto. It has been quite some time since the course started. I have already attended a lot of labs, written a term test and submitted an assignment.
This week i will talk about one of the important focuses of this course - Abstract Data Types.
An abstract data type is a mathematical model for a data type where the data types are defined by their behavior, specifically in terms of the possible values, possible operations on the data type and the behavior of these operations. The concept of abstract data types was first used in the development of CLU language.
For example integers are abstract data types defined as the integer values : 1, 2, 0, -1, -2 etc. And by the operations of addition, subtraction, multiplication, division and etc. These operations follow the mathematical rules.
Another example for abstract data type would be a stack. A stack stores items and is defined by three operations - pop : an operation to remove the top item, push : an operation to add a new item to the top of the stack and is_empty : an operation to check whether the stack is empty or not.
Abstract data types are often considered purely theoretical and are used to simplify abstract algorithms or classify data structures. However an abstract data type can be implemented by specific data types or data structures. Abstract data types are commonly implemented as modules. The abstract data types are an important part of various topics such as data abstraction, object oriented programming and etc.

Friday, 26 February 2016

The fourth post

The Fourth Post

This is my fourth post about CSC148 course at University of Toronto. This week was a very busy one. The first assignment was due this week and it took a lot of time. Me and my partners had to spend a lot of time in the CSC help center. But at last we finished it and submitted it on time.

And the lectures were about recursion. It is simply one function calling itself again and again. It is a very useful tool. For example if we had to find the sum of numbers in a list, we can use the sum function but if the list itself had lists of numbers, the sum function would not be useful. In this case recursion is the solution. It seems pretty complex but is not that bad and the code isn't scary either. 

Thursday, 11 February 2016

The Third Post

The Third Post

This is my third post about CSC148 course at University of Toronto. This week, we learnt about linked lists. It is a really complex topic. Although it was easy to understand, the code was pretty huge and complicated. And adding to that, i missed a lecture so i had to the lecture in another session. The other instructor was good too.

And also we had a term test in this week. I would say it was of medium difficulty as the time limit was only 1 hour and i felt the rush. I guess i did well but could have done better if i had more time. Anyways i will to do better on the next test.