Tasks In a cpp file, using the "Experiment time" code in the "Resources" menu on the E- learning course. Create 3 functi

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

Tasks In a cpp file, using the "Experiment time" code in the "Resources" menu on the E- learning course. Create 3 functi

Post by answerhappygod »

Tasks In A Cpp File Using The Experiment Time Code In The Resources Menu On The E Learning Course Create 3 Functi 1
Tasks In A Cpp File Using The Experiment Time Code In The Resources Menu On The E Learning Course Create 3 Functi 1 (59.7 KiB) Viewed 41 times
Tasks In a cpp file, using the "Experiment time" code in the "Resources" menu on the E- learning course. Create 3 functions opLinear(int n), opNlogN(int n), opSquare(int n), opQuadratic(int n): where each one of the will loop in linear, N*Log(N), Quadratic, and Qubic time based on input “n”, accordingly. Inside the loop do one operation (e.g. x = 1;). Test your code for the 4 functions using n that ranges by 2¹, where i ranges from 10 to 20 as seen in Table 1. Table 1: The Experimental time for the 4 functions for 2¹,where 10<=i<20. Function 10 11 12 13 14 15 16 17 18 19 20 NlogN Quadratic Linear Time-micSec Time-micSec Time-mic Sec Cubic Time-micSec Create a chart for each function that has the inputs n (ranges from 2¹0 to 22⁰) in MS Excel.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply