Question: 1. Implement Insertion sort and quicksort algorithm in in C or C++ 25 a) Initialize an array A with the following numbers: 10, 15, 2,

1. Implement Insertion sort and quicksort algorithm in in C or C++ 25 a) Initialize an array A with the following numbers: 10, 15, 2, 34, 12, 6, 8, 123 and sort the array using both of your algorithms and output the sorted numbers. b) Generate 20,000 random numbers and store them in the array A. Sort these numbers using both of the algorithms. Find the runtime of the algorithms and output the runtime in seconds for both algorithms. Submit: 1. Your source code (the C/C++program) 2. Screenshots of the outputs
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
