Computers and Technology
List the resulting array after each call of the merge method. Indicate the number of character-to-character comparisons made for each call to merge (line 22 of the merge method at the end of the assignment). Sort the following array of characters into alphabetical order: C Q S A X B T.01 public static void mergesort (char[] a, int i, int r){ 02 03 if (1 >= r) { 04 return; 05 } 06 int middle = (1+r)/2; 07 mergesort(a, l, middle); 08 mergesort(a, middle+1, r); 09 merge(a, l, middle, r); 10 } 11 12 public static void merge (char[] a, int i, int m, int r){ 13 14 //copy lower half of the array into b 15 char [] b = new char[m-1+1]; 16 for (int i = 0; i
Let's say set1 contains the following values: 1, 2, 3. set2 contains 3, 4, 5. Please name the difference between set1 and set2:a. 4,5 b. 3 c. None of the above / below. d. 1,2,3,4,5 e. 1,2