The recursion concept is interesting.
You are calling a function inside the same function.
It is analogous to the word recur's actual denotation (repeat again). Also, the "repetition" breaks a huge problem into many small steps. Each mini step is very similar.
I also learned that you can write for loops like this:
Suppose A = [1,2,3,...,a-2, a-1,a] for some natural number a.
sum (all_a) for all_a in A.
Zhiyuan Zhang
Friday, January 30, 2015
Friday, January 23, 2015
Why CS Geeks Write
Geeks are people who are zealous or enthusiastic or those who are fanatic.
Computer Science involves designing algorithms and then implementation.
CS Geeks will be intrigued and mesmerized in both aspects.
Designing algorithms is like the thinking/logic part. (Involve mathematics and mathematical logic)
Implementation is like asserting every step of the algorithms, so it involves language.
Therefore, Geeks need to how to write in a language.
Computer Science involves designing algorithms and then implementation.
CS Geeks will be intrigued and mesmerized in both aspects.
Designing algorithms is like the thinking/logic part. (Involve mathematics and mathematical logic)
Implementation is like asserting every step of the algorithms, so it involves language.
Therefore, Geeks need to how to write in a language.
Subscribe to:
Posts (Atom)