Choose The Correct Option From The Following That Represents #613
Choose the correct option from the following that represents bottom up merge sort function?
This multiple choice question (MCQ) is related to the book/course gs gs122 Data Communication and Computer Network. It can also be found in gs gs122 Sorting - Merge Sort - Quiz No.1.
Choose the correct option from the following that represents bottom up merge sort function?
void mergesort(int Arr[], int temp[], int low, int high) { for (int m = 1; m <= high - low; m = 2*m) { for (int i = low; i < high; i += 2*m) { int left = i; int mid = i + m - 1; int right = min(i + 2*m - 1, high); merge(Arr, temp, left, mid, right); } } }
void mergesort(int Arr[], int temp[], int low, int high) { for (int m = 1; m <= high - low; m = 2*m) { for (int i = low; i < high; i += m) { int left = i; int mid = i + m - 1; int right = min(i + 2*m - 1, high); merge(Arr, temp, left, mid, right); } } }
void mergesort(int Arr[], int temp[], int low, int high) { for (int m = 1; m <= high - low; m = m) { for (int i = low; i < high; i += 2*m) { int left = i; int mid = i + m - 1; int right = min(i + 2*m - 1, high); merge(Arr, temp, left, mid, right); } } }
void mergesort(int Arr[], int temp[], int low, int high) { for (int m = 1; m <= high - low; m = 2*m) { for (int i = low; i < high; i += 2*m) { int left = i; int mid = i + m - 1; int right = min(i + m - 1, high); merge(Arr, temp, left, mid, right); } } }
Similar question(s) are as followings:
Online Quizzes of gs122 Data Communication and Computer Network
Sorting - Insertion Sort - Quiz No.1
gs gs122 Data Communication and Computer Network
Online Quizzes
Sorting - Insertion Sort - Quiz No.2
gs gs122 Data Communication and Computer Network
Online Quizzes
Sorting - Insertion Sort - Quiz No.3
gs gs122 Data Communication and Computer Network
Online Quizzes
Sorting - LSD Radix Sort - Quiz No.1
gs gs122 Data Communication and Computer Network
Online Quizzes
Sorting - MSD Radix Sort - Quiz No.1
gs gs122 Data Communication and Computer Network
Online Quizzes
Sorting - MSD Radix Sort - Quiz No.2
gs gs122 Data Communication and Computer Network
Online Quizzes