Question: 22 If each element in the array has two keywords K1 and K2, the array is sorted according to the following rules: first, in the

22 If each element in the array has two keywords K1 and K2, the array is sorted according to the following rules: first, in the order of K1 increment, and in case of K1 equality, the order of K2 is increased. The sorting method to meet this requirement should be: (1.897) A First, the direct insert sort is done according to K1, and then the select sort is made according to K2 B. First, the direct insert sort is done according to K2, and then the select sort is made according to K1 C First, select sort by K2, and then direct insert sort according to K1 D. First, select sort by KI, and then direct insert sort according to K2 A 22 If each element in the array has two keywords K1 and K2, the array is sorted according to the following rules: first, in the order of K1 increment, and in case of K1 equality, the order of K2 is increased. The sorting method to meet this requirement should be: (1.857) A First, the direct insert sort is done according to K1, and then the select sort is made according to K2 B. First, the direct insert sort is done according to K2, and then the select sort is made according to K1 C. First, select sort by K2, and then direct insert sort according to K1 D First, select sort by K1, and then direct insert sort according to K2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
