Question: Rule of Sums: ( + ) = ( ) + ( ) O ( f + g ) = O ( f ) + O

Rule of Sums:
(
+
)
=
(
)
+
(
)
O(f+g)=O(f)+O(g)
FALSE: The correct formula is
(
+
)
=
(
max
(
,
)
)
O(f+g)=O(max(f,g)).
Rule of Products:
(
)
=
(
)
(
)
O(fg)=O(f)O(g)
FALSE: The correct formula is
(
)
=
(
)
O(fg)=O(fg).
Transitivity: If
=
(
)
g=O(f) and
=
(
)
h=O(f), then
=
(
)
g=O(h).
TRUE: Transitivity holds.
5
+
8
2
+
100
3
=
(
4
)
5n+8n
2
+100n
3
=O(n
4
)
TRUE: The statement is true. The expression
5
+
8
2
+
100
3
5n+8n
2
+100n
3
is
(
4
)
O(n
4
) because
100
3
100n
3
is the dominating term.
5
+
8
2
+
100
3
=
(
2
log
)
5n+8n
2
+100n
3
=O(n
2
logn)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!