ExamVeda
Login
Home
71
Who published the extended version of eight queens puzzle?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
72
Solve the following recurrence using Master's theorem.
T(n) = 2T (n/2) + n/ log n
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
73
Consider the following recursive implementation of linear search on a linked list:
struct Node
{
     int val;
     struct Node* next;
}*head;
int linear_search(struct Node *temp,int value)
{
      if(temp == 0)
         return 0;
      if(temp->val == value)
         return 1;
      return _________;
}
Which of the following lines should be inserted to complete the above code?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
74
In n-queen problem, how many values of n does not provide an optimal solution?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
75
How many cases are there under Master's theorem?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
76
Consider the following recursive implementation to find the largest element in an array.
int max_of_two(int a, int b)
{
      if(a > b)
        return a;
      return b;
}
int recursive_max_element(int *arr, int len, int idx)
{
      if(idx == len - 1)
      return arr[idx];
      return _______;
}
Which of the following lines should be inserted to complete the above code?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
77
What is the formula to calculate the element present in second row, first column of the product matrix?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
78
Which of the following is hardest to break using frequency analysis?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
79
Why do we require hamming codes?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
80
Which of the following methods used to find the sum of first n natural numbers has the least time complexity?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board