Question: C++ Programming in AWS preferred. An algorithms time complexity is very important. It is possible to solve one problem using various approaches, but you should

C++ Programming in AWS preferred.

An algorithms time complexity is very important. It is possible to solve one problem using various approaches, but you should choose the approach that provides optimal algorithm performance. You must sort the following elements using at least two sorting algorithms:

Sample array: 100, 45, 33, 55, 356, 11, 1000, 999, 987

You need to perform the following steps to evaluate the algorithms time complexity:

  1. Pick any two sorting algorithms (e.g., merge sort, bubble sort).
  2. Find the algorithm implementation.
  3. Create the array, and store all of the elements described above.
  4. Pass the array into the first sorting algorithm.
  5. Pass the array into the second sorting algorithm.
  6. Calculate the execution time for the first sorting algorithms execution.
  7. Calculate the execution time for the second sorting algorithms execution.

You need to recommend the sorting algorithm that should be used for sorting based on its execution time.

Note that you can use any programming language to implement the steps above.

Your program should contain the following:

  • The implementation of the first sorting algorithm
  • The implementation of the second sorting algorithm
  • An array that can store all of the elements from the sample array

Your program should also do the following:

  • Store the start transaction before executing the sorting algorithm, and insert the end transaction afterward
  • Calculate the difference between end_transaction and start_transaction
  • Pick the sorting algorithm that has the lower execution time

Submit the program and your Word document. Your Word document should contain screenshots of the program and its output.

AWS stands for Amazon WorkSpace.

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!