Tuesday, 4 December 2012

November 28th

This is the last class.

The quiz was about using recursion to create shapes (koch.)


(It's better to explain with a picture.)

By the way, (koch 0) is just a horizontal line.

(koch 1) takes the line, the same line rotated 60 degrees counter-clockwise, the same line rotated 60 degrees clockwise and the same line again. 

(koch 2) does the same thing, but instead of the same horizontal line, it uses koch 1. 

Spiral took a vertical line and turned it towards the centre depending on the number that is entered as a variable. For example, (spiral 3) would have a vertical line and it turned towards the centre 3 times.

Palindrome basically took a word and mirrored it. For example, (palindrome "silly") would get me "sillyllis."



November 21th

This quiz was on depth, harvest and flatten.

It makes much more sense to think of the "trees" as tree diagrams.

Basically, a tree contains branches and each "branch" has two "leaves" (one on the left and one on the right) that store information.

Depth is basically how long a tree is (measured in the number of "branches.") For example, if a tree has 3 branches, depth would output 3.

Harvest will display all the information in a tree in order. It does not take into account the number of leaves in the tree at all.

Flatten basically "flattens" the tree and outputs all the information (from leaves AND branches) in order.

-

The lecture was about personal information and the results of the "broken telephone" experiment from last week. I have a facebook page, a twitter and a blog. I'm not bothered by exposing my name, age and birthday on the internet, but I would obviously never give out any really important information like my bank PIN or my passwords.

November 14th

This week was the second term test.

This time, I wrote my notes on a pad and studied the tutorials. Since most of the actual work I do is programming on DrRacket, I focused more on the lectures. My only real problem with the test was the part with the "trade-offs" for faster computers. I blanked out and forgot about Neumann's bottleneck theory. I was also really struggling with how computers multi-tasked. I just assumed it was related to input, output and memory storage.

-

The lecture this week was on the effects technology had on society and he did a little "broken telephone" experiment. We were given several similar sounding words and we had to repeat them. I found this very amusing. I found it funny how people said words that were not even one of the four (gapped, apt, tapped and capped) original words.

November 7th

The quiz was about posn (x and y.)

I found the part where you had to figure out if a coordinate was above the diagonal line.
Basically, to do that, you would us this code:


(define (above-diagonal point)
  (> (posn-x point) (posn-y point)))

A diagonal line would mean that x=y. If the x coordinate was greater than y, then that would mean that the point is above the diagonal.

I also found the part where you multiply or divide the x and y values.

-


Today's lecture was on networks and recursion.

Ring topology:

Basically, it's a network where computers are connected to exactly two nodes - forming a "ring." A "token"  of information is then passed around the network.

Star topology:

It is a network where computers are all connected to one server. Server might be overwhelmed or break.

For example, there are 5 users in total (plus the server.) If user #1 wanted to send information to user #3, the server would transfer the information to user #3 without letting users #2, #4 and #5 see it.

Bus topology:

It's a network where multiple users are linked together on one connection. If one computer were to break/disconnect, the network will still run. If more than one user plans to send information at the same time, there would be a pause that would allow information to be transferred one-by-one.




Tuesday, 13 November 2012

October 31st

Happy Halloween! ~

This week's quiz was on operations and conditions. I was used to substrings way back when I was programming in JAVA.

The "last-half" function is what stumped me. This function is supposed to show the last half of a word. The problem is the definition of "half." If a word had an odd number of letters, I had to decide if I should round up or round down the number of letters

(ex. "bunny" -> "bun" /  "bu")

It was a relatively easy quiz, although the conditions part of the tutorial was really odd.

For example, a function had to determine if two words were "greater" than each other. At first, I thought it was determined by the number of characters a string had, but I was wrong. It was actually based on alphabetical order. By that logic, "b" is greater than "a."

(This also got me thinking that this logic would be useful later for organizing words in alphabetical order.)

-

The lecture focused more on operating systems, algorithms and encryption.

I remembered how characters (such as "H" and "#") have numerical "value" (ASCII code.)

October 24th

This week's quiz was based on a tutorial on animations. It was probably one of the hardest quizzes I ever took. When I program at home, I can take as much time as I want. When I'm taking a 10-minute quiz, it just puts so much pressure on me than it should. My brain may just make some dumb mistakes that I would not have made if I was working on it at home.

-

This week, the lectures were about Moore's Law and storage. I was used to storing data on CDs when I was a kid, but I lost most of them by now. I use USB drives now because they're portable and they're much easier than using a disc. It also allows me to safely store my data in case my laptop or my PC crash. I also have an external hard drive to store my writings and other files ever since I started university.



October 17th

This week's quiz involved a timer function that works with each "tick."

While I was studying for this quiz, I tried to understand what was going on when the "barracuda" was moving. After analyzing the code, I found that a new white "rectangle" was being created every tick. The program was set to create a new rectangle beside the barracuda which would push the barracuda to the right. I tried doing the same thing, but I used above instead. This made a new (invisible) rectangle on top of the barracuda, thus giving it the illusion of moving vertically.

Big-was also a new thing for this quiz. I thought it acted as a "loop" like in JAVA programming. The big-bang function was meant to loop everything in the program in general while adding more "ticks." In a sense, there was no real difference between this and a do...while loop in JAVA with a counter.

-

The lecture went more into algorithms (the demonstration with the phone book was amusing.)

-

The following Friday, we were supposed to hand-in our plan for the wikipedia project. I already planned mine out:

1. I would link the "Mami Soup" page to another page since it was an orphan article.

2. I would add more citation to the "LCD projector" article.

3. I will ask questions about improving the "Chobits" page and ask for permission to update information.










October 10th

The term test was pretty straightforward, but there were some things there that I found troubling. I was not fond of history and I probably did not do so well on the final question. It was the first term test that I ever got and I was pretty nervous at the time. I guess I can't really think under those circumstances. I tend to learn better from my mistakes, anyway.

I know now that the problem lies in my method of studying. I'm not good at memorizing, but computers is a very technical subject. Programming involves logic, which is my strongest point. I am probably not going to do well on the history of computers in future tests, but I have room for improvement.

-

This week, we focused on algorithms. I only recognized algorithms when I was doing math or physics. I knew that there was logic behind everyday routines (like brushing your teeth, putting on clothes, etc...), but I never really considered it.

I had a feeling that recursion was going to come up sooner or later...


October 3rd

This week went into binary. I was familiar with binary representing integers.

For example, I knew that the number 13 was 1101 in binary. Since it was less than 15, I knew it would not go past four bits. So basically, I had this (_ _ _ _) in my head as a mental image. I knew that the values are exponentials of 2 - starting with 1 (starting from the right end). From there, I subtracted 8 from 13 which meant that the first bit would be "1." The difference is 5, which meant that it could be subtracted by 4. This meant that the next bit would be a "1." The difference of that is 1, which meant that it could not be subtracted by 2, so the next bit would be a "0." Finally, we take that 1 and fill in the last bit, with a "1," since it can be subtracted by 1. This is my logic for converting a number into binary.

I was unaware that converting a number into binary could be done by dividing it by 2 several times. I was used to the above method.

-

So next week is the term test. I'm not exactly thrilled about it, but I hope I do well. I've been doing great so far on quizzes, so I probably won't do so bad.



Monday, 8 October 2012

September 26th

Once again, I had a quiz for this week. It was on "definitions."

It was much more complicated than last week's material on DrRacket, but the videos proved to be useful, again. I was familiar with the concepts of "place holders" and "objects" back when I was in high school so the concept was not that hard for me to understand.

I take at least 2 hours to study the basic concepts of the quiz then spend the rest experimenting with "calling functions."

I liked this part of DrRacket because it reminds of Java where I named certain sets of code into arrays. I remembered putting certain values like age, height and breed and "defined" those values as the name of a dog. Whenever I called that name in the program, those values for age, height and breed would be displayed. This method of organizing code helped me with the "definition" section of DrRacket.

-

I also had an assignment where I had to choose which wikipedia entries I wanted to edit or improve. I basically had to find a page where it needed sourcing, more detail, etc... I did have experience editing wikipedia pages, but they were only minor changes - like spelling.

I chose simple pages like the LCD projector, mami soup and Chobits. This was my plan for the assignment. I would later construct my plan to edit them after I have sent my proposal and await feedback.


September 19th

Today was my first quiz in this course.

To prepare for this quiz, I downloaded DrRacket into my laptop and experimented with it after watching some videos ("Racket Values") on how to use it. I am very familiar with most of the terminology like "strings" so the videos were very helpful guides for the following quiz.

Personally, I learn best with experience rather than just reading. The exercises have provided me with a more physical way of adjusting to the application.

When I was handed the quiz, it looked rather simple. I figured that it was meant to test our understanding of the material within the exercises. I liked it because it was not very complicated because they were basically everything I learned in the videos like "string length", "picture manipulation," "addition of values" and "boolean logic."

Overall, it was a very easy quiz.

I try not to focus on taking notes when I am attending a lecture because I tend to forget what my notes actually mean, so thats why I listen in on the lecture first then read the slides afterwards. This way, when the test comes, I would be able to recognize the material from the lectures to improve my memory of the lectures.

September 12th

I took this course because I was used to computer programming when I was in high school and I thought it would be a fun course. Today, we went over the syllabus and went through a lecture on the history of representing information.

I found out that we were going to be programming using "Dr Racket." I had programmed using Visual Basic and Java (and a little bit of Python,) but I was unfamiliar with this application. 

I was surprised at the fact that we were going to have a test the next week. I was pretty nervous since it would be my first quiz for university. I also found out that there were going to be 8 more quizzes and 2 term tests after next week's quiz. This will surely keep me on my toes on the subject.