Show the order of elements in the array after each of the fi…

Show the order of elements in the array after each of the first two passes of the selection-sort algorithm applied to the array: int arr[10] = {12, 8, 22, 11, 7, 2, 4, 5, 9, 3}  Note: The array is to be sorted with the smallest element in position arr[0].  Pass 1: Pass 2:

Show the result (on an element by element basis) of insertin…

Show the result (on an element by element basis) of inserting the following integers into an initially empty heap.  Use the property that the root is to be the largest element.  Make sure that you clearly draw all 8 heaps using sequential representation for each heap.  Be complete in your representation giving the index values.                   5      9     13     3     7    15    26    10 

Show the resulting 7 Red/Black trees that occur when inserti…

Show the resulting 7 Red/Black trees that occur when inserting the following keys: T   W   V   Y   M   E   B   For each tree, CLEARLY denote which links are “red”.  Also, clearly denote where splits, single rotations and double rotations occur.  Follow the conventions discussed and demonstrated in class.