Which Of The Following Is A Suitable Lookup Table That Can Be #478
Which of the following is a suitable lookup table that can be used in the uniform binary search?(N is the number of elements in the array and the delta array is global)
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 Searching - Uniform Binary Search - Quiz No.1.
Which of the following is a suitable lookup table that can be used in the uniform binary search?(N is the number of elements in the array and the delta array is global)
public static void make_delta(int N) { int power = 1; int i = 0; do { int half = power; power <<= 1; delta[i] = (N + half) / power; } while (delta[i++] != 0); }
public static void make_delta(int N) { int power = 0; int i = 0; do { int half = power; power <<= 1; delta[i] = (N + half) / power; } while (delta[i++] != 0); }
public static void make_delta(int N) { int power = 1; int i = 0; do { int half = power; power >>= 1; delta[i] = (N + half) / power; } while (delta[i++] != 0); }
public static void make_delta(int N) { int power = 1; int i = 0; do { int half = power; power <<= 1; delta[i] = (N - half) / power; } while (delta[i++] != 0); }
Similar question(s) are as followings:
Online Quizzes of gs122 Data Communication and Computer Network
![Online Quizzes](https://nvaeducation.com/public/themes/nva/assets/img/theme/online-quiz.png)
Sorting - Insertion Sort - Quiz No.1
gs gs122 Data Communication and Computer Network
Online Quizzes
![Online Quizzes](https://nvaeducation.com/public/themes/nva/assets/img/theme/online-quiz.png)
Sorting - Insertion Sort - Quiz No.2
gs gs122 Data Communication and Computer Network
Online Quizzes
![Online Quizzes](https://nvaeducation.com/public/themes/nva/assets/img/theme/online-quiz.png)
Sorting - Insertion Sort - Quiz No.3
gs gs122 Data Communication and Computer Network
Online Quizzes
![Online Quizzes](https://nvaeducation.com/public/themes/nva/assets/img/theme/online-quiz.png)
Sorting - LSD Radix Sort - Quiz No.1
gs gs122 Data Communication and Computer Network
Online Quizzes
![Online Quizzes](https://nvaeducation.com/public/themes/nva/assets/img/theme/online-quiz.png)
Sorting - MSD Radix Sort - Quiz No.1
gs gs122 Data Communication and Computer Network
Online Quizzes
![Online Quizzes](https://nvaeducation.com/public/themes/nva/assets/img/theme/online-quiz.png)
Sorting - MSD Radix Sort - Quiz No.2
gs gs122 Data Communication and Computer Network
Online Quizzes