Question

[ 6 marks] Give examples of two pairs of functions f1-f and fz-f such that each pair is of the same order. That is, fi is a b

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

--> In big-oh notation the term with highest degree dominates the order of the function.

f1 = 3n2 - 5n + 6

f2 = 5n2 + 2n - 1

We can write f1 = O(f2) and f2 = O(f1)

--> Similarly we can give following example for f3 and f4

f3 = 2n + 5n2

f4 = 2n - 6n2

We can write f3 = O(f4) and f4 = O(f3)

Add a comment
Know the answer?
Add Answer to:
[ 6 marks] Give examples of two pairs of functions f1-f and fz-f such that each...
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
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