Question: Using MatLab : 1) (4 points) Write a Matlab function (InsertionSort.m) that sorts an array of numbers (A) using insertion sort algorithm. 2) (4 points)
Using MatLab :
1) (4 points) Write a Matlab function (InsertionSort.m) that sorts an array of numbers (A) using insertion sort algorithm.
2) (4 points) Write a Matlab function (MergeSort.m) that sorts an array of numbers (A) using Merge sort algorithm.
3) (4 points) Write a Matlab function (CountingSort.m) that sorts an array of numbers (A) using Counting sort algorithm (k will be an additional input to the code).
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
