Friday November. 14th Sunny
I got my mark for test 2 which is 30/30, another full mark. Thanks a lot to my TA and professor’s help. I will continue to show my effort until the end of course. In this journal, I will talk about both contents covered in our lectures and tutorial.
Firstly, as usual, I will introduce the materials from this week. Professor made an introduction to computability this week. We did more examples for big-O proofs for general functions. Also, we did some example questions related to big-Ω, which is similar as big-O but different from it.
Secondly, Let me talk about the tricky part about big-Ω. The definition of Ω looks pretty similar as that of O. However, they are different, especially if you draw some pictures to compare them. This concept challenged me, so I did a lot of exercises about big-Ω proof and feel much better for now.
Thirdly, I chose one of the proof questions in my exercise, which follows as below.
Q: Prove: ∃ c ∈ R+, ∃ B ∈ N, ∀ n ∈ N, n ≥ B ⇒ (6n3 - 4n2 + 3n + 2) ≥ c(5n3 - n2 + n + 1)
Proof:
Let c = 1. Then c ∈ R+.
Let B = 3. Then B ∈ N.
Assume n ∈ N.
Assume n ≥ B.
Then 6n3 - 3n2 + 2n + 1 ≥ 6n3 - 3n2. # since n ∈ N
Then 6n3 - 3n2 + 2n + 1 ≥ 6∙33 - 3∙32 # since n ≥ B = 3
≥ 6∙33 - 33
≥ (6 - 1)∙33
≥ 5∙33
≥ 5n3 # since n ≥ B = 3
Then (6n3 - 3n2 + 2n + 1) - n2 + n + 1 ≥ 5n3 - n2 + n + 1 # add - n2 + n + 1 to # both sides
Then 6n3 - 4n2 + 3n + 2 ≥ 5n3 - n2 + n + 1
≥ c(5n3 - n2 + n + 1) # since c = 1
Then n ≥ B ⇒ (6n3 - 4n2 + 3n + 2) ≥ c(5n3 - n2 + n + 1)
Then ∀ n ∈ N, n ≥ B ⇒ (6n3 - 4n2 + 3n + 2) ≥ c(5n3 - n2 + n + 1)
Then ∃ c ∈ R+, ∃ B ∈ N, ∀ n ∈ N, n ≥ B ⇒ (6n3 - 4n2 + 3n + 2) ≥ c(5n3 - n2 + n + 1)
Lastly, our tutorial of this week focused on the big-O proof structures. Something deserves to be mentioned is that some of my classmates asked me how we can directly find the relationship between f(n) and g(n). I think we cannot just “look” and “guess” to set up the inequality between f and g. What we should do is to notice the degree of each n, and pay attention to constant in f and g. Using simple algebra to make it from a simple inequality to the complicate one step by step.
This is the end of the journal.
Much appreciated for reading my journal.
See you next week :)
No comments:
Post a Comment