You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
void sort(int left,int right, unsigned long *old_index_arr, unsigned long *val_arr, unsigned long size_of_arr);
// 排序
void merge(unsigned long left1, unsigned long right1, unsigned long left2, unsigned long right2, unsigned long *old_index_arr, unsigned long *val_arr, unsigned long size_of_arr);
// 要参与排序的两个数组,一个是每个非零元的在排序之前的索引,一个是数组的非零元
void multi_thread_sort(unsigned long * old_index_arr, unsigned long * val_arr, unsigned long size_of_arr, unsigned long thread_num);