Question: Question 1 Write a template function for Selection sort with the following interface templatecclass ItemType> void SelectionSort(ItemType values[J, int umValues) Question 2 Write a template

 Question 1 Write a template function for Selection sort with the

Question 1 Write a template function for Selection sort with the following interface templatecclass ItemType> void SelectionSort(ItemType values[J, int umValues) Question 2 Write a template function for Insertion sort with the following interface templateclass ItemType> void InsertionSort(ItemType values[], int umValues) Question 3 Write a template function for Bubble sort with the following interface templatecclass ItemType:> void BubbleSort(ItemType values, int numValues) You need to write a main0 in which the following data is tested int val array[10] = {43, 7, 10, 23, 18, 4, 19, 5, 66, 14); float val array2[10] = {43.2, 7.1, 10.5, 23.9, 18.7, 4.2, 19.3, 5.7, 66.8, 14.4); char val array3[10]-fu', v', w', x' y', a', b, c', 'd', 'e'}; int numValues10 In addition, print out the total numbers comparisons and swaps used in each algorithnm

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!