Friday 5 April 2013

Problem sloving



You are sitting in front of two drawers. The left drawer contains 64 pennies, the right drawer contains nothing. Can you arrange things so that one of the drawers has 48 pennies, using combinations of the following two operations, l  and r ?
L:  If the left drawer has an even number of pennies, you may transfer half of them to the right drawer. If the left drawer has an odd number of pennies, operation l  is disallowed.
R:  If the right drawer has an even number of pennies, you may transfer half of them to the left drawer. If the right drawer has an odd number of pennies, operation r  is disallowed

1. Understanding the Problem:
  • There are two drawers, the left one has 64 pennies and the right has 0.
  • what I need to do is let one of the drawers has 48 pennies by using L and R operations 
  • The question is possible to satisfy the condition

2. Devising a Plan:
  •  I have seen it when I was studying math in primary school
  •  It likes a tree diagram problem, so I can draw it on the paper to solve the problem
  •  Or I can use 64 pennies and do the operations


3. Carrying out a plan:
  • First, because the left drawers has 64 pennies and it is an even number, so I will start the left operation by transferring half of them to the right drawer. As a result, right drawer and left drawer both have 32 pennies now.
  • Then, 32 is still an even number soI will do the operation again so that the left drawer will have 16 pennies and the right drawer has 48 pennies. Problem solved.
  • 64    0
  • 32    32
  • 16    48


4. Looking back:
  • If the operation was continued, it would be a very long process
  • To draw a tree diagram or do it are very helpful for this problem
  • If the number is not 48 or it was a hard number like 48.35829820483... it may be difficult to get the correct number of pennies and solve the problem. But the solutions are the same



Thursday 4 April 2013

CSC104H Week 12 Project and Final Test



  • Today is our last lecture for csc104, I felt so sad about it. Prof. Heap made the course awesome and I love him very much. I really want to say thank u to our prof and my TA. You are so nice. No matter how my grade is, I will miss this course. 
  • I have almost done my project 2 with my partner. I hope to do it better cuz it's our last project. I think I should prepare for my final exam from now. Hope to get a good grade :D
  • One of my TA said that, first year is sucks, like the school part of there...except the social part lol...if u r sad about ur marks, worrying about ur GPA and in a stress or pain, u will lose yourself and u will fail. I hope everyone can get a good grade and have a great summer~
  • Cheer up!!!!

CSC104H Week 11 Computers and Work

  • This week we learned some interesting things about computers. How computers work and process. How it developed and what functions it had. The class is awesome, I enjoyed it very much.
  • We don't have tut this week because of good Friday:D
  • Should start doing Project 2.

Sunday 24 March 2013

CSC104H Week 10 Test 2


  • Our project and my wiki part marks are pretty good. For ecosystem project, I didn't check after it displaying all test passed. I lost marks on running it because of the wrong code.
  • My test was terrible. It even worse than last one. I felt very sad about it because I think the test is very easy and I should get very high mark.

Sunday 17 March 2013

CSC104H Week 9 Test


  • I felt the test was not so hard, but i still made some mistakes. I was confused about substring during the test, cuz I forgot the meaning of it. After my friend told me how to do it, I felt I was an idiot.
  • These few weeks are dreadful. I have tests or essays due on each single day. I'm going to die any minute. As an international student, it takes me longer time to read readings or finish essays than native speakers. I stayed up very late every night in order to complete each work. However, all the things I am doing now mean I am pushing beyond my limits and surpass myself. Cheer up!

Monday 11 March 2013

CSC104H Week 8 project


  • I did my project with my partner Yolanda, and fortunately we passed both tests and submitted it at end of the last 10 minutes before due time. We both felt very excited about the result. At the beginning, we didn't know how to deal with it, we went to help centre twice and spent the rest of day there figuring out the questions. We finished the ball.rkt first. For ecosystem part, I didn't remember how many times that I clicked the run button, but we passed all the tests after changing prof's codes, otherwise, it will still display 2 tests failed. Overall, I felt much easier after going to help centre, I read through the outline for many times, it provided all the useful information for project. Meanwhile, the discussions on piazza helped me a lot too. I am very satisfied with our works. 
  • The term test 2 is coming, I need to prepare for it earlier. Hope I can do better this time.

Saturday 2 March 2013

CSC104H Week 7 Wiki II


A very interesting image about University life :D
  • For my Wiki assignment part 2, it was hard to understand what I should do at the beginning. After reading though the tutorials for the needing-work, I felt it became much easier. I hope I won't lose marks on it.
  • We leant how to decompose and reconstruct images this week, it was a little bit confusing, I am not sure about the answers of my quiz, but we will see.