Saturday, November 14, 2015

Vulcan phrases in The Big Bang Theory

What does Sheldon Cooper say in the The Big Bang Theory's episodes
9×07 The Spock Resonance and 9×08 The Mystery Date Observation ?
Here you go!
 
 
Sheldon: Well, there’s no point dwelling on it. As the Vulcans say:Kup-fun-tor ha'kiv na'ish du stau? (Vulcan phrase. It means:"Can you return life to what you kill?").
Penny: Do you know what that means?
Leonard: No.
Penny: Are you telling me the truth?
Leonard: Nirsh (Vulcan phrse. It means: "No").
Sheldon: Well, this is ridiculous. Being upset about Amy all the time isn’t accomplishing anything. If I want to resolve this situation, then I’m going to take action.
Penny: What are you going to do?
Sheldon: I’m going to find her and ask her to marry me. If she says yes, we can put his behind us and resume are relationship. And if she says no….well then she can just ponfo mirann (Vulcan phrase. It means "go to hell" )
Leonard: He didn’t mean that. 
 
 
Source:
http://bigbangtheory.wikia.com/
 

Sunday, June 29, 2014

Saturday, June 21, 2014

Size of tree rooted at parent of

Have you attempted the exercise but didn't the maximum due a mistake "size of tree rooted at parent of " explanation does not convince you?

Well, look at this thread on coursera https://class.coursera.org/algs4partI-005/forum/thread?thread_id=123

Basically checking that the depth of the three is below log_2 (N) is not enough to be sure the tree comes from a weighted quick union algorithm!

The final tree must be consistent with the principle of weighted quick union, i.e. that you attach the bigger tree to the smaller one. 
In the final tree the biggest subtree you see is NOT a child of any other smaller subtree! Once again, check the thread, make a drawing and you'll understand what I mean.

Look at the thread. Draw a picture and convince yourself.

Tuesday, May 6, 2014