This is my second entry of sLOG. Today I would like to talk about our first project "Sneeze Infection". This is a very interesting topic for a student programmer. The project is basically about to generate some definition command to DrRacket, based on what has been given. Professor has generated a whole rkt file on the situation that he suggested. I have found some difficulties in doing this projects.
The first obstacle is that I do not fully understand all command he made in the file, although I have go through the whole file. For example, there are some commands such as "local" which is not appeared on our textbook yet. I have found that I could omit those "unknown" commands, then go to the exact question about in the file.
Among four jobs in the file, the first one is creating a definition on "left-cycle", that makes the first element of the list at the back of the new list. For this request, I have went through all the videos of list and aggregation. Finally, I decided to separate the list and then merge together into one list. "Append" command is my choice, however, the "check-expect" cannot go through for hundreds of times. Then I use a new draft window on DrRacket to try my definition again and again. Finally, I found the problem of my definition. I first time use the seen the reverse as a list, which is not. Then I put a list out of the bracket to make it as a list. It worked!
The second job is more complicated than the first one although it looks similar. "Right-cycle" is the one definition about put the last element in front of the rest of list. This is the one with a lot of logic cycle and use many "reverse" "rest" and "first" command on list. I figured it out to use the way of "in-to-out". I dissolved the list in to elements, then I found the last element of a list is the first element of reverse list. Using the same logic, I found the way to claim the definition. The following two question was not that difficult for me, since I can get the hint from "check-expect" sentence to define the other two variables.
The last part of this project is to change the variables which has been indicated in the first lines of the document to see what will happen on the expected result. I found it is fun when I change the three variables - VIRULENCE, DURATION and IMMUNITY. I changed those variables to their maximum value indicate in the assignment. This model is really like the real one with only three variables which can influence the effects of infection. The virulence is the idea how the virus spread into the public and the ability to infect other people. Duration is the variable to indicate the period of people who has been infected. The immunity is when people already recovered from the infection, they will have immunity to such a virus for a period. Those can influence the course differently. To find out the change and effects of the change, I keep other parameters the same as before, change the specific parameter into its extreme value to see how to influence the model. I found this project is very interesting and challenged for students.
CourSe Blog of CSC104. Recording something interesting, and useful. Communication and creation are all my idea!
Thursday, October 31, 2013
Tuesday, October 22, 2013
Chapter 1: Pilot
This is my first time to get into Blogger! I am very interested in this idea about creating a blog for a course as a record of what I learned and think! It is so excited for me to write an entry to talk about something related to the course in a university! Bravo! I do think blog is a place where people like to share and communicate their opinions about the world and minds. I'd like to share what I think about the course frankly, but I am hoping to read your entry and comments at the same time.
First of all, there are some opinions that why I choose this course in the first place. To be honest, I think some of you have heard some rumours about the course, like myself, which is an "easy course" designed for people who are at the basic level of computer. I am a fourth year student, who like to make my CGPA as high as possible. That is why I believed the rumours and chose the course as soon as I can. However, when I took the first lecture. I hate to say, but this is absolutely not an "easy course" as I thought in the first place. I didn't regret about my choice, because I found fun in this course. There, indeed, is something really attracting me to continue work on computer science.
Then I went to the first class, this is my second change that caused by this course. I changed my thought on computer science. Before that, I thought that computer science or computer is just as easy as a calculator. That computer is a giant smart machine which can do everything was my definition of computer. I did not know anything about computational thinking. When I went to the first class, I did learn that computational thinking is a precise process just like our brain does. Prof said that there was a long history for algorithms, which is a base of computational thinking. We all believe that the first computer ENIAC was born in Pennsylvania State in 1942, yet we don't know that the first programmer was a female! Those are something really shock me.
Those are my first feeling about this course. Interesting and getting fun from the process of learning! I still want to work out the formula about that problem of folding paper! Having fun encourages me to move forward. Looking forward to having something new and interesting tomorrow!
First of all, there are some opinions that why I choose this course in the first place. To be honest, I think some of you have heard some rumours about the course, like myself, which is an "easy course" designed for people who are at the basic level of computer. I am a fourth year student, who like to make my CGPA as high as possible. That is why I believed the rumours and chose the course as soon as I can. However, when I took the first lecture. I hate to say, but this is absolutely not an "easy course" as I thought in the first place. I didn't regret about my choice, because I found fun in this course. There, indeed, is something really attracting me to continue work on computer science.
Then I went to the first class, this is my second change that caused by this course. I changed my thought on computer science. Before that, I thought that computer science or computer is just as easy as a calculator. That computer is a giant smart machine which can do everything was my definition of computer. I did not know anything about computational thinking. When I went to the first class, I did learn that computational thinking is a precise process just like our brain does. Prof said that there was a long history for algorithms, which is a base of computational thinking. We all believe that the first computer ENIAC was born in Pennsylvania State in 1942, yet we don't know that the first programmer was a female! Those are something really shock me.
Those are my first feeling about this course. Interesting and getting fun from the process of learning! I still want to work out the formula about that problem of folding paper! Having fun encourages me to move forward. Looking forward to having something new and interesting tomorrow!
Subscribe to:
Posts (Atom)