Question

In: Computer Science

Question 12: Please provide tilde (~) for the following expressions: A) 300N + (3N^5) + (4N^5)*logN...

Question 12: Please provide tilde (~) for the following expressions:

A) 300N + (3N^5) + (4N^5)*logN

B) (N)^(1/2) + 6 ( NlogN / logN^2 )

C) N^100/ 2^N

D) 1 + 1/N

Solutions

Expert Solution

Basics :

  • For Finding Theta Notation First Find major term in each equation and ignore constant.
  • Consider each statement for asymptotically large value of N

Answer (A)

F(N) = 300 N + (3 N5) + ( 4 N5) * logN  

F(N) = 300 N + (3 N5) + 4 N5 * logN // Major function is  N5 * logN

F(N) = 4 N5 * logN // ignore constant

F(N) = N5 * logN

F(N) = ( N5 * logN )

Answer(B)

F(N) = (N) (1/2) + 6 ( N logN / logN2 )

F(N) = (N) (1/2) + 6 ( N logN / 2 x logN ) // Log Rule : logN2 = 2 logN

F(N) = (N) (1/2) + 6 ( N logN / 2 x logN ) // cancel out logN

F(N) = N + 3 N    // Major function is  N

F(N) = 3 N    // ignore constant

F(N) = ( N)

Answer(C)

F(N) = N100 / 2N // For large value of N =1,2.3,4,,5...............∞

F(N) = N100 / 2

F(N) = N100 / ∞ // (1 /   2 ) = (1 / ∞) = 0 = constant time complexity

F(N) = 0

F(N) = (1) // Constant Time complexity is denoted by (1)

Answer(D)

F(N) =1 + 1/N     // For large value of N ie ∞

F(N) =1 + 1/∞

F(N) =1 + 0

F(N) =1

F(N) = (1)    // Constant Time complexity

Summary:

  • Answer(A) F(N) = ( N5 * logN )
  • Answer(B)   F(N) =   ( N)
  • Answer(C)   F(N) = (1)
  • Answer(D) ​​​​​​​   F(N) = (1)

Related Solutions

C++ OOP Provide a user-friendly way to enter expressions to be evaluated. Please add a comment...
C++ OOP Provide a user-friendly way to enter expressions to be evaluated. Please add a comment explaining each step of your program. Make a program to evaluate infix arithmetic expressions containing integer operands and the operators + (addition), - (subtraction), * (multiplication), / (division) and pairs of parentheses, properly nested. Use the following two-stack algorithm (by E. W. Dijkstra): If the next token in the expression is an integer, push the integer onto the value stack. If the next token...
In 4-5 sentences, please answer the following quiz question below. How does Fanon’s sociogeny provide us...
In 4-5 sentences, please answer the following quiz question below. How does Fanon’s sociogeny provide us with new philosophical insight about human development?
Please answer only Question 12 and 13. Question 12: In reference to the original sequence (shown...
Please answer only Question 12 and 13. Question 12: In reference to the original sequence (shown in Question 8), classify each type of mutation present from Questions 9 to 11. Choose the best option for each. mutation #1    mutation #2    mutation #3 A. base substitution - silent mutation B. insertion - frameshift mutation C. deletion - frameshift mutation D. base substitution - missense mutation E. base substitution - nonsense mutation 3 points    QUESTION 13 Questions 9 to...
x is 5, what is the result of the following Boolean expressions: 1. x != 0  ...
x is 5, what is the result of the following Boolean expressions: 1. x != 0   2. x > 0   3. x != 0 4. x > 0 5. (x >= 0) || (x < 0) 6. (x != 1) == !(x == 1) 7. (true) && (3 > 4) True or False? Please explain how you got your answers. I've been struggling with Boolean expressions so I'd like a little bit more of an explanation as to why each...
Please provide a detailed answer with justifications to the following question: Does the economic growth that...
Please provide a detailed answer with justifications to the following question: Does the economic growth that is taking place in emerging countries undermine the economic and political stability of developed countries?
Please provide a detailed answer with justifications to the following question: Given the large number and...
Please provide a detailed answer with justifications to the following question: Given the large number and large population of emerging countries, many economists and environmentalists are genuinely concerned about the depletion of resources, child labor practices, and political tensions within emerging countries. Do you think we should be worried? if so why; if no, why not?
Please answer the following question: Discuss how the price of a bond is determined and provide...
Please answer the following question: Discuss how the price of a bond is determined and provide an example of each of the following conditions a.) A bond issued at premium b.) A bond issued at par c.) A bond issued at a discount Provide a journal entry that would be made to record each of your bond examples as well as the first journal entry that would be made to amortize each bond's premium and discount. Thanks!
For this discussion, please provide your answer to the following question: With questions of voter fraud...
For this discussion, please provide your answer to the following question: With questions of voter fraud and foreign tampering, is American democracy in crisis? Each answer must include the following. -A four-paragraph response. Your answer should be explicit address each part of the question. its just a general answer I need.
For this discussion, please provide your answer to the following question: With questions of voter fraud...
For this discussion, please provide your answer to the following question: With questions of voter fraud and foreign tampering, is American democracy in crisis? Each answer must include the following. -A four-paragraph response. Your answer should be explicit address each part of the question. how is it incomplete? the question is right there? im just asking for a general response!
please answer all In the following you will derive expressions for the energy stored in magnetic...
please answer all In the following you will derive expressions for the energy stored in magnetic and electric fields. Although you will start with specfic situations, the expressions you derive will be general. (a) (7 points) Find an expression for the energy per unit volume contained inside of a parallel plate capacitor in terms of the electric field between the plates. This is a general equation and works for any electric field. (b) (7 points) Find an expression for the...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT