Class ParallelInsetionSort


  • public abstract class ParallelInsetionSort
    extends Object
    This class is a standard insertion sort but it is designed to work on 2 arrays in parallel. It sorts the first array in descending order and meanwhile rearrange the second array accordingly.
    Author:
    Azim Ahmadzadeh, Data Mining Lab, Georgia State University
    • Constructor Detail

      • ParallelInsetionSort

        public ParallelInsetionSort()
    • Method Detail

      • sortTogether

        public static void sortTogether​(Double[] values,
                                        Integer[] indices)
        Parameters:
        values - an array to be sorted in descending order
        indices - an array to be rearranged according to the changes that take place in a.