Some Useful Idea for the Big-oh Study
We are still
working on chapter four during this week. Personally, I think this week’s
tutorial is the most important thing for me to study the Big-oh problem,
because our TA gave me some awesome ideas to study this part.
The rough work
really helps me to think. During our lecture, my way to remember how to do the
Big-oh question is by using form “ Pick c =
pick B = assume ”. It is nice to start the working but I got
stuck some time by stop at some steps. Usually, I would start with left hand
side function after “ assume”. But the problem is with processing, I usually
stuck at a step that cannot make me to connect to my proving, which is right
hand side, and then I need to redo this problem. During this week’s tutorial,
my TA showed us a really nice way to solve the Big-oh questions. I will explain
this idea based on tutorial question one. “Write a detailed structured proof
that 5n4 – 3n2 + 1 belongs to O(6n5 – 4n3
+2n)”. In my early work, I was thinking that to make 5n4 – 3n2
+ 1 to match form 6n5 – 4n3 +2n by some ideas from
lecture, which is 5n4 – 3n2 + 1 < 5n4 – 3n2
and then multiply n and try to get 6n5. But it is really hard to
match; even I matched 6n5 but it still hard to match – 4n3.
Thus I was stuck. Our TA gave me this idea to me, think the left hand side
smaller or equal to something and from right hand side to match it too. In this
question, the thing is n5. From left hand side, 5n4 – 3n2
+ 1 <= 5n4 + 1 <= 5n4 + n4 <= 6n4
<= n * n4 <= n5. Then we think right hand side, 6n5
– 4n3 +2n >= 6n5 – 4n3 >= 6n5
– 4n5 >= 2n5 >= n5. The happiness that this
rough work gives to me is much more than solves a problem.
In conclusion,
the most important study for me in this week is the solving idea from my lovely
TA. The way to solve a problem is understand what are you going to get to help
you solve this problem.
No comments:
Post a Comment