Question: I need help with this C++ program. I am just lost here and need someone to explain the entire process so I can hopefully understand

I need help with this C++ program. I am just lost hereI need help with this C++ program. I am just lost here and need someone to explain the entire process so I can hopefully understand it. Please and thank you to whoever helps.

I don't think it relates to my previos exercise but I am not to sure. It does ask me to creat two separate programs and compare the two but I am lost on how I am suppose to do that?

Exercise 7: Comparison (10 points) For this exercise, create 2 programs defined in files slow.cpp and fast.cpp. In slow.cpp, generate a random array of size 200,000 and pass it to your sorting algorithm. Run the program and observe that it never ends. Press CTRL C to terminate the process. In fast.cpp, generate a random array of size 200,000 and pass it to the sort routine that is part of the C++ standard library. The following code shows how you would call the sort function on an array a of size 200,000. sort (a, a 200000); If the above line fails to compile, you may need to include the algorithm header as follows. #include Run fast.cpp and notice how quickly it terminates. The reason for this is that the sorting function in the standard library is using is more efficient than the one you produced. How quickly algorithms terminate is within an area of computer science referred to as complexity theory

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!