Question

What is the smallest integer value of n > 3 such that an algorithm whose running...

What is the smallest integer value of n > 3 such that an algorithm whose running time is 7n runs slower than an algorithm whose running time is 7(log2n)4 on the same machine? Justify your answer. You may provide a plot or/and proof.

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

Hey,

Note: Brother in case of any queries, just comment in box I would be very happy to assist all your queries

The smallest value of n is 65536

====================

MATLAB CODE

======================

clc
clear all
close all
f=@(n) 7*n-7*(log2(n))^4;
disp('The value of n is')
fprintf('n=%d',ceil(fzero(f,60000)));
n=1:100000;
plot(n,7*n,n,7*((log2(n)).^4));
hold on;
n=65536;
plot(n,7*n,'*r');

Kindly revert for any queries

Thanks.

Add a comment
Know the answer?
Add Answer to:
What is the smallest integer value of n > 3 such that an algorithm whose running...
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