Tuesday, 30 September 2014

Kill Logic before it kills you




Hi everybody!
So there were a lot of questions regarding to logic problems and how to negate them, rewrite them symbolically or in English and etc.
I found this file that helped me practice a little more on those matters and I love to share it with you.
I'll put the link down below
https://www.google.ca/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&uact=8&ved=0CB0QFjAA&url=http%3A%2F%2Ffitelson.org%2F109%2Fhardegree_ch4.pdf&ei=a2crVKu0MoSnyASzsoGACw&usg=AFQjCNGK4kyGzyrGA3ujsQ8qDP7QkO6t7A&sig2=oPKlLj9bhnSCTkrGjaCOEg

Sunday, 14 September 2014

Interesting math problems

Check this website out if you like challenging math problems!
                                          http://gottfriedville.net/mathprob/index.ht

Different approaches to solve a problem

september 12                                                                              Lec 3

one of the best lectures so far!
The main topic today's lecture was how to look at a problem before starting to try and solve it, which I honestly have to admit I thought to myself '' well, everybody knows what these steps are'' but is wasn't that long after it that I found out I was wrong!

Lets see what these steps are that we often think we know until we begin solving a problem:
  • Always write down what informations the question has given you and what it need you to prove and figure out
  • Try to relate this to another problem you might have solved or seen! Try to relate them for as it can give you goo ideas
  • Sometimes it's a big help to just take the problem apart! Look at the smaller parts and try to solve the puzzle one piece at a time
  • Instead of going from assumption to resolution, look at the problem the other way around! It might seem weird but it can be a good start on solving the problem
Then we got this interesting question which I honestly enjoyed solving(the streetcar conversation**)
    
I'll go threw what I was thinking real quick
  1. The product of the kids ages is 36 so k1*k2*k3=36
  2. The conversation is telling me the sum of their age can't "directly" help me figure the ages out
  3. Some how knowing that there exists an eldest kid who plays the piano is supposed to help me guess
well it looks like the sum of their age did not help! why is that? lets take a look
    lets right down all the factors of 36 and call the set A:
                                                                                         {1,2,3,4,6,9,12,18,36}
Now lets see what the ages can be:
(1,1,36)   (1,2,18)   (1,3,12)   (1,4,9)   (2,3,6)   (2,2,9)!   (3,3,4)   (6,6,1)!
As you see only sum of the two sets with (!) are the same that's knowing that didn't help us at first but now that we have there is an eldest son, (1,6,6) is out of the picture so the ages are 2,2 and 9!



** please comment if you do not know what the question is so I can write it for you.

Functions debate


This was our second class so far.
We were given papers by professor Heap that contained for function written in phyton language, then we were asked to try and figure out what these functions do to our sets of numbers.
I would love to go threw one of them here so
def q0(S1, S2):
 ''' (set, set) -> bool
 Return whether ...
'''
return not all({x in S2 for x in S1})

   This is our function in python! we are giving our function two sets(S1 and S2).
Our outcome is of type bool and that means It's either true(1) or false(0).
lets see what the function does! it says : return not all({x in S2 for x in S1})
so the fuction checks S1 for x first, if they are not in S2(because of the not all) then we get true and otherwise we get false.

Thursday, 11 September 2014

the journey begins


september 8th


The first day of CSC165 was also the first day of starting at university for most of us.
I think it went pretty much as I  was hoping it would.
Our instructure; professor Danny Heap, gave us an idea of what what the course will look like through out the term, assignment and the way we should submit them, tutorials and how to achieve success in this course.
  
one thing that I have been thinking about since my first class at UofT is how much everyone implies on going to our instructure's office hours!

We talked about ambiguity and how amazing is that a single sentence can have so many different meaning. here are some more that  enjoyed:
Fat people eat accumulates
The girl told the story cried
We painted the wall with cracks