COMP-047 math for computer science discussion questions the quality must be good and specific. you need to answer all the questions and show the answers cearly. COMP-047
HW#3
Assigned Thursday Mar 7
Due Thursday 21 Mar
___________________________________________________________________________
1) [20 pts] Determine whether each of these functions is O(x).
a) f(x)=10 b
b) f(x)=3x +7
c) f(x)= x2 +x +1
d) f(x)= ????
e) f(x) = ????
Solution:
2) [20 pts] Determine whether each of these functions is O(x2).
Solution:
a)
b)
c)
d)
f(x) = ???? × ????
f(x)=5logx
f(x)= (15log (x))2
f(x)= x4/2
3) [20 pts] Show that x2 +4x +17 is O(x3) but that x3 is not O (x2 + 6x +69).
Solution:
4) [20 pts] Show that .3×4 +1 is O(x4/2) and x4/2 is O (3×4 +1).
Solution:
5) [20 pts] Give a big-O estimate for the number of operations (where an operation is an
addition or a multiplication) used in this segment of an algorithm.
t: =0
for I: =1 to 3
for j: =1 to 4
t: = t +in
Solution:
Purchase answer to see full
attachment
PSYC290N - Lifespan Development REFLECTION ASSIGNMENT Required ResourcesRead/review the following resources for this activity: Textbook:…
Unit VI Case Study Weight: 10% of course grade Grading Rubric Instructions Most would agree that…
Read the assigned article and answer the following questions. Be thorough and accurate in your responses. Create…
Please read the book The Little Prince by Antoine de Saint-Exupéry and make a book…
PlEASE ANSWER THE TWO PARTS IN TWO SEPARATE FILES. ITS TWO PARTS TO THIS QUESTION.…
PSYC290N - Lifespan Development Required ResourcesRead/review the following resources for this activity: Lesson Minimum of…