Wednesday, October 31, 2012

Week 8 Journal

In today's lecture, we've learned about different kinds of operators and operating systems.
An operating system should have kernel (shell, sheield access to hardware, referee sharing); untilities (repair, maintain machine, list files, format disk)
Also, in the DrRacket section, professor introduced about palindrome which is "A word, phrase, or sequence that reads the same backward as forward, e.g., madam or nurses run."

Wednesday, October 24, 2012

Week 7 Journal

Here comes my first journal!
       Firstly, I would like to talk about last week's lecture. In last week's lecture (October 24th), professor continued doing  improvements on the barracuda clock we did on the third week lecture. Professor  put the basic functions we leaned in week three and added some new funcion to the big bang model. When I first work on the qustions in the pdf textbok, I felt a bit struggled. But I had overcome the difficulty eventually by asking my friends and theTAs during tutorial. Moreover, I would like to share the following example to you guys. This DrRacket code will create a blue square with side width 10 on a 100 by 100 window size, and the square is  getting larger by the second.
; square-of-width : number -> image

(check-expect (square-of-width 10)
                       (square 10 "solid" "blue"))

(define square-of-width (square n "solid" "red"))

(big bang 10
       (check-with number?)
       (on-draw square-of-width 100 100)
       (on-tick add1 1))

Wednesday, October 17, 2012

Week 6 Journal

I had the quiz back in the tutorial and I get to kno my mark on the website. The mark I get match to my expectation.

In today's lecture, we had continued on algorithm, professor mentioned that there i NO potentially an algorithm to solve every problem. Also, if there are more than 1 algorithm to solve the problem, then we will choose the most efficiency algorithm.

Also, we've learned the steps of problem solving using the approach suggested by Polya:
1.  Understand the problem
2. Devise ( one or moew) plan (s)
3. Try the plan
4 Look back

Wednesday, October 10, 2012

Week 5 Journal

Today is the first test of CSC104, I felt nervous and excited. I want to know how well I know about DrRacket so far through this test. The test stated at 6:10 (No tutorial!~) and ends at 7:00. I felt I did pretty well on this first test, I've reviewed about most of the questions before the test such as the binary numbers, the history about computer science, and the basic functions of DrRacket. Overall, I think I should get a remarkable mark.

After the test, we havethe lecture continued, and we learned about algorithms.
The definition for alorithms is the simple sequence of feasible steps to solve a problem deterministic. Professor taught us algorithm through the method of paper folding: 

By folding over the upper surface of paper strip after one fold, it has a downward crease.  Folding the once-folded strip again and it had one upward, and so on. The image below is from our professor's slides.


Moreover, we had also learned the function of listing in DrRacket.
For example:
(map add1 (list 1 2 3 ))
(map sqrt (list 1 4 16 25))
 
the result is      (list 2 3 4 )
                         (list 1 2 4 5)
                             

Wednesday, October 3, 2012

Week 4 Journal

In the past few weeks, Professor Deap taught us how to flip an image in different ways (horizontal, vertical, up, down, beside, and combine together). Firstly, Professor Deap will do demonstration in the lecture time, then we can review the demonstration through tutorial video,all of these made me feel DrRacket is an easily understanable program.
Also, in th week 3 lecture, professor mentioned about operation for binary numbers. I took computer science class in high school and I've learned the use of binary numbers, so I have a "comparative advantge" to other students. :)
Overall, I am having a fun time in the CSC104 course, and I am  looking forward to what professor will teach me later~