Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question 1 (5 points): Purpose: To practice using the big-O notation. Degree of Difficulty: Easy Suppose you had 5 algorithms, and you analyzed each one

image text in transcribed

Question 1 (5 points): Purpose: To practice using the big-O notation. Degree of Difficulty: Easy Suppose you had 5 algorithms, and you analyzed each one to determine the number of steps it required and expressed the number of steps as a function of a size parameter, as follows 1 fi (n) = 1 000n2 + 3n! 2, fa (n) = n60 + 2n 3. fg (n) = 1000 + 3078n log(n) 4. f4(n) = 6 log(n) + 5n( -1) + 10n2 log(n) 5. fs(n)=-30n2+4n+n2318 For each of the given functions, express it using big-O. For example, if f(n) = 17n4 + 42 then we would write f(n) O(n): you could also write f(n) E On) showing that the function is in the category Ofn') Justifications for your answers are not necessary Just apply the rules and state the answers What to hand in Include your answers in a file called a7. txt. though PDF and RTF fles are acceptable. Clearly identify the question number and each part. If you are submitting a text file, you can write exponents such as n2 like this: n 2

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2010 Barcelona Spain September 2010 Proceedings Part 3 Lnai 6323

Authors: Jose L. Balcazar ,Francesco Bonchi ,Aristides Gionis ,Michele Sebag

2010th Edition

3642159389, 978-3642159381

More Books

Students also viewed these Databases questions

Question

Give four ways that functions may be defined and represented.

Answered: 1 week ago