PROBLEM
Given:
- ๐1(๐) = ๐(๐1(๐))
- ๐2(๐) = ๐(๐2(๐))
Show that:
- ๐1(๐)ยท๐2(๐) = ๐(๐1(๐)ยท๐2(๐))
PROOF
- ๐1(๐) โค ๐1ยท๐1(๐) for allย ๐โฅ๐1ย # by definition of Big O notation
- ๐2(๐) โค ๐2ยท๐2(๐) for all ๐โฅ๐2ย # by definition of Big O notation
Let:
- ๐0ย = ๐๐๐ฅ(๐1, ๐2)
Then, for all ๐โฅ๐0:
- ๐1(๐)ยท๐2(๐) = ๐1ยท๐1(๐) ยทย ๐2ยท๐2(๐)
- ๐1(๐)ยท๐2(๐) = ๐1ยท๐2ยท๐1(๐)ยท๐2(๐)
- ๐1(๐)ยท๐2(๐) = ๐ยท๐1(๐)ยท๐2(๐) # ๐ =ย ๐1ยท๐2
- ๐1(๐)ยท๐2(๐) =ย ๐(๐1(๐)ยท๐2(๐)) # by definition of Big O notation