Question

***Please answer all the following (Computer science) Discrete math question completely.***

Q2. Growth of functions. In each of the following cases, either construct a function /(/n) that satisfies the specified constraints or state that no such function exists. (2pt each) b, (n)-Ω(n2) and/(n)-O (n + n) In the following two questions, arrange the functions in a list so that each function is a big-O of the next function. (2pt each) d. nlog n, V, log n, (log2n+log n+n), 12 n, (n!), log log() e. 2+1 n, (n-

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Solution:

The first question have been answered as per Chegg guidelines, please repost others.  

Let's have a look at the definition of Big-O, Big-Omega, and Theta first.

Ta リ 干 ames ationi1 2. 2. l o U B

a)

In this case, both are of Theta notation, this means that no such function exists.

b)

In this case if the function f(n) = n^2

then we can say

f(n) = \Omega(n^2)

because

n^2> = c * n^2

for c>0

and also f(n)= O(n^2 + n^3)

in this case

n^2< = c * (n^2 + n^3)

for c>0

c)

in this case different value of f(n) is possible

which can be from 1 (which means constant) to n^50

suppose f(n) = (n^50)

then in case f(n) = O(50)

n^50<= c*n^50

the inequality holds true for c

and also

n^50<= c*2^n

for c>0

the inequality holds true for c

d)

log\ log\ (n^3)=O(log^3\ n)= O(\sqrt{n^3})=O((n^2 + log^2\ n))= O(n^2/ log\ n)=O(12\ n^5)

e)

lg\ lg \ n= O(lg\ n)=O(12n)=O((15n+n^2+1))= O(n^2 lg\ n)= O(((n-1)(n^2 + 1)))= O(2^{n+1})

I hope this helps if you find any problem. Please comment below. Don't forget to give a thumbs up if you liked it. :)

Add a comment
Know the answer?
Add Answer to:
***Please answer all the following (Computer science) Discrete math question completely.*** Q2. Growth of functions. In...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Discrete math for Computer Science, Sets: Binary relations / Functions Please show work 2. Let S...

    Discrete math for Computer Science, Sets: Binary relations / Functions Please show work 2. Let S = {0, 2, 4, 6), and T-1, 3, 5, 7). Determine whether each of the following sets of ordered pairs is a function from S to T. If so, is it injective, surjective, and bijective?

  • Arrange the following functions in a list so that each function is big-O of the next...

    Arrange the following functions in a list so that each function is big-O of the next function. The function in the end of the list is given. f1(n)=n0.5, f2(n)=1000log(n), f3(n)=nlog(n), f4(n)=2n!, f5(n)=2n, f6(n)=3n, and f7(n)=n2. Please show work

  • Need help with 1,2,3 thank you. 1. Order of growth (20 points) Order the following functions...

    Need help with 1,2,3 thank you. 1. Order of growth (20 points) Order the following functions according to their order of growth from the lowest to the highest. If you think that two functions are of the same order (Le f(n) E Θ(g(n))), put then in the same group. log(n!), n., log log n, logn, n log(n), n2 V, (1)!, 2", n!, 3", 21 2. Asymptotic Notation (20 points) For each pair of functions in the table below, deternme whether...

  • Order the following functions by asymptotic growth rate: 4n, 2^log(n), 4nlog(n)+2n, 2^10, 3n+100log(n), 2^n, n^2+10n, n^3,...

    Order the following functions by asymptotic growth rate: 4n, 2^log(n), 4nlog(n)+2n, 2^10, 3n+100log(n), 2^n, n^2+10n, n^3, nlog(n) You should state the asymptotic growth rate for each function in terms of Big-Oh and also explicitly order those functions that have the same asymptotic growth rate among themselves.

  • Discrete mathematics question Can you please answe the following question? Please show your answer clearly. et...

    Discrete mathematics question Can you please answe the following question? Please show your answer clearly. et n be a positive integer. Use the Master Theorem to obtain the big-O class for the functions that satisfy the following recurrences. (a) (4 points) g(n) -4g(n/2)+ n b) (4 points) (n) 2f (n/3) 0(n)

  • in my c++ class i need help with these question please Question 1. Indicate whether the...

    in my c++ class i need help with these question please Question 1. Indicate whether the first function of each of the following pairs has a smaller, same, or larger order of growth (to within a constant multiple) than the second function. Use the correct notation to indicate the order of growth (f(n) ∈O(g(n)), Ω(g(n)), or Θ(g(n)) as applicable). Prove your statement using limits. (a) (lnn)2 and lnn2 (b) 42n+1 and 42n Question 2. Use the formal definitions of O,...

  • Compute the following problems using Math Lab.   Instructions: Answer All Questions using MATLAB commands. Question 1....

    Compute the following problems using Math Lab.   Instructions: Answer All Questions using MATLAB commands. Question 1. Create a vector of the even whole numbers between 31 and 75. Question 2. Let x [2516] a. Add 16 to each element b. Add 3 to just the odd-index elcments c. Compute the square root of each element d. Compute the square of each element Question 3. Let x 13 268T and y [4 1 3 5] (NB. x and y should be...

  • You need not run Python programs on a computer in solving the following problems. Place your...

    You need not run Python programs on a computer in solving the following problems. Place your answers into separate "text" files using the names indicated on each problem. Please create your text files using the same text editor that you use for your .py files. Answer submitted in another file format such as .doc, .pages, .rtf, or.pdf will lose least one point per problem! [1] 3 points Use file math.txt What is the precise output from the following code? bar...

  • What is the role of polymorphism? Question options: Polymorphism allows a programmer to manipulate objects that...

    What is the role of polymorphism? Question options: Polymorphism allows a programmer to manipulate objects that share a set of tasks, even though the tasks are executed in different ways. Polymorphism allows a programmer to use a subclass object in place of a superclass object. Polymorphism allows a subclass to override a superclass method by providing a completely new implementation. Polymorphism allows a subclass to extend a superclass method by performing the superclass task plus some additional work. Assume that...

  • C++ Programz

    Program 0 (50%): In many computer science courses, when you study sorting, you also study “runtime” - and it can be confusing to understand when you first see it.  For example, they say that BubbleSort “runs in O(n2)”  time (pronounced “Big-Oh of n-squared") - but what does that mean?  For simplicity, it means if you have n elements, the worst it could run would be n2 low-level computer operations (like comparisons, assignment statements and so on).  For example, if we...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT