What is the best growth function to represent the following code fragment? The fragment is parameterized on the variable

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

What is the best growth function to represent the following code fragment? The fragment is parameterized on the variable

Post by answerhappygod »

What Is The Best Growth Function To Represent The Following Code Fragment The Fragment Is Parameterized On The Variable 1
What Is The Best Growth Function To Represent The Following Code Fragment The Fragment Is Parameterized On The Variable 1 (15.33 KiB) Viewed 16 times
What is the best growth function to represent the following code fragment? The fragment is parameterized on the variable n. Assume that you are measuring the number of printin calls. for (int i; i<n; 3) for (int 301 3<n/21 **) System.out.println("More nested loops!"); //count these O-nlog2(n)? O O(nlog3(n)) f(n)=(1/2)nlog3(n) O -(1/2)nlog3(n) O f(n)=nlog3(n)-n/2
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply