Jun 28, 2024
F(N) = 10N² + 5F(N)F(N)N increasesF(N) = 10N² + 5, the dominant term is 10N²G(N): Based on the dominant term, assume G(N) = N²F(N) is Big Omega of G(N) if for constants C > 0 and N > N_0, F(N) >= C * G(N)*F(N) = 10N² + 5C = 10G(N) = N²10N² + 5 >= 10N² for N >= 110N² + 5 is Big Omega of N² which proves that N² is the lower bound of F(N)F(N) = N³ + 3N² is Theta of N³F(N) is Big Theta of G(N) if both C1 * G(N) <= F(N) <= C2 * G(N) for constants C1, C2 > 0 and N >= N_0F(N) <= C2 * G(N)C1 * G(N) <= F(N)C2 = 2N³ + 3N² <= 2N³ for N >= 3F(N) <= C2 * G(N) for N >= 3*C1 = 1N³ + 3N² >= N³ for N >= 1C1 * G(N) <= F(N) for N >= 1*N >= 3F(N) = N³ + 3N² is Theta of N³ for C1 = 1, C2 = 2, and N_0 = 3