Sunday, November 9, 2014

Week 9: O Polynomials!

This week in CSC165....

- We tackled a mega-confusing example: maximum_slice. Explanation is on the website, as me explaining it would not be any more clearer  )

- We were introduced to the mixing of Big O, Big Omega & polynomials. We also learned how to disprove it too. (It wasn't that much more difficult than proving it.) 

The basic structure (outline of the proof) is the same. 

The middle part, the 'solving' part, is where people tend to use all different types of methods.

My professor's method was confusing at first, but after awhile and understanding it, it became the easiest to apply.You prove as-you-go:

  1.  Drop the numbers that don't affect the equal sign for sure
  2.  Power Up! (increase all the numbers to the highest degree)
       (EG if highest is 6, and you have 2n, then 2n^6)
  3.  Combine (add) to one number
  4.  Do this from top to bottom, and bottom to top, until you meet in the middle.
  5.  Make the two numbers equal, by having the 1st number equal to some c times the 2nd number.
  6.  VOILA! You have successfully made an inequality! 

#Note this works for polynomials. For more complicated matter, tune in next time!

No comments:

Post a Comment