I have this habit of getting into the nice guy’s suit at times. And a few times when I was in the suit I took the risk of teaching some of my classmates. Remember, these are people who did their bachelors in computer science and has a gate score (>95 percentile). This one was the latest that happened.
Me: Well.. forget about the low and intermediate level representation. Consider the control flow of this high level program.
a = 1
if ( a not equal to 0)
So, what do you think it will print?
Friend 1: world?
Friend 1: Hello?
friend 1: Hello World.
I nearly had a nervous breakdown.
Before a few months I happened to overhear one of my classmate trying to make another understand, how important Java is. And all of a sudden I heard the following sentence, which reminded me about Pramode sir’s blog article .
friend 2: Computer Science is JAVA.
Me: ……. …. … so JAVA is a programming language and programming is a part of computer science. You see the difference, don’t you?
friend 2: Yup.. But the biggest part of computer science is Java.
Some people never change!
Once I dared to teach someone a bit of complexity analysis. I could not believe that the guy was not joking when he asked such a question.
Me: .. thus the complexity of the algorithm is O(log^2 n). That is a cool proof, right?
friend 3: Yes. But what is the complexity if the input is not n but m?