Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

(e) f(n)-5P0.+37 (a) I(n)-2n logs(2n +17n+1) 2. 30 points) Do the sane ns in problem #1. but this time you don't have to be rigorous

image text in transcribed
image text in transcribed
(e) f(n)-5P0.+37 (a) I(n)-2n logs(2n +17n+1) 2. 30 points) Do the sane ns in problem #1. but this time you don't have to be rigorous (that is to say it). you don't have to prove the algorithmic complexity, you can just claim (b) go(n)n logs (n log2(n))3n1.01 (c) ge(n) 2log2(n)3+7n d) ga(n)-log2(5 +n) (e) g,(n) = (3n + 17) logs(2n3 + n) + 4n () gr(n)5 +72m+8 (h) ga(n)2++1 3,) (20 points) For each of the following algorithms: find the approximate running times, find a simple comparison function g(n) so that the running time is in (g(n), and prove that the running time function of the given algorithm is i jyour chosen theia set. (a) FUNCTON ,(n) RET JRN(s) (b) FUNCT ON fa(n) RETURN(s) (c) FUNCTON fa(n) FOR i In/5] TO n DO FOR j i TO n DO RETURN(s) (d) FUNCTON fa(n) FOR i n TO 2n2 DO RETURN(s) (e) FUNCT:ON fs(n) FOR J 5 TO i DO FOR k /10 i DO RETURN(s) (e) f(n)-5P0.+37 (a) I(n)-2n logs(2n +17n+1) 2. 30 points) Do the sane ns in problem #1. but this time you don't have to be rigorous (that is to say it). you don't have to prove the algorithmic complexity, you can just claim (b) go(n)n logs (n log2(n))3n1.01 (c) ge(n) 2log2(n)3+7n d) ga(n)-log2(5 +n) (e) g,(n) = (3n + 17) logs(2n3 + n) + 4n () gr(n)5 +72m+8 (h) ga(n)2++1 3,) (20 points) For each of the following algorithms: find the approximate running times, find a simple comparison function g(n) so that the running time is in (g(n), and prove that the running time function of the given algorithm is i jyour chosen theia set. (a) FUNCTON ,(n) RET JRN(s) (b) FUNCT ON fa(n) RETURN(s) (c) FUNCTON fa(n) FOR i In/5] TO n DO FOR j i TO n DO RETURN(s) (d) FUNCTON fa(n) FOR i n TO 2n2 DO RETURN(s) (e) FUNCT:ON fs(n) FOR J 5 TO i DO FOR k /10 i DO RETURN(s)

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_2

Step: 3

blur-text-image_3

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 2018 Dublin Ireland September 10 14 2018 Proceedings Part 1 Lnai 11051

Authors: Michele Berlingerio ,Francesco Bonchi ,Thomas Gartner ,Neil Hurley ,Georgiana Ifrim

1st Edition

3030109240, 978-3030109240

More Books

Students also viewed these Databases questions

Question

Identify the types of informal reports.

Answered: 1 week ago

Question

Write messages that are used for the various stages of collection.

Answered: 1 week ago