Computer Science Engineering (CSE) Exam  >  Computer Science Engineering (CSE) Tests  >  Question Bank for GATE Computer Science Engineering  >  Test: Divide & Conquer- 3 - Computer Science Engineering (CSE) MCQ

Test: Divide & Conquer- 3 - Computer Science Engineering (CSE) MCQ


Test Description

10 Questions MCQ Test Question Bank for GATE Computer Science Engineering - Test: Divide & Conquer- 3

Test: Divide & Conquer- 3 for Computer Science Engineering (CSE) 2024 is part of Question Bank for GATE Computer Science Engineering preparation. The Test: Divide & Conquer- 3 questions and answers have been prepared according to the Computer Science Engineering (CSE) exam syllabus.The Test: Divide & Conquer- 3 MCQs are made for Computer Science Engineering (CSE) 2024 Exam. Find important definitions, questions, notes, meanings, examples, exercises, MCQs and online tests for Test: Divide & Conquer- 3 below.
Solutions of Test: Divide & Conquer- 3 questions in English are available as part of our Question Bank for GATE Computer Science Engineering for Computer Science Engineering (CSE) & Test: Divide & Conquer- 3 solutions in Hindi for Question Bank for GATE Computer Science Engineering course. Download more important topics, notes, lectures and mock test series for Computer Science Engineering (CSE) Exam by signing up for free. Attempt Test: Divide & Conquer- 3 | 10 questions in 30 minutes | Mock test for Computer Science Engineering (CSE) preparation | Free important questions MCQ to study Question Bank for GATE Computer Science Engineering for Computer Science Engineering (CSE) Exam | Download free PDF with solutions
Test: Divide & Conquer- 3 - Question 1

Which of the following data structures is generally used to implement priority queue?

Detailed Solution for Test: Divide & Conquer- 3 - Question 1

Priority queue can be implemented using an array, a linked list, a heap data structure. Among these data structures, heap data structure provides an efficient implementation of priority queues. In a normal queue, queue is implemented based on FIFO but in priority queue nodes are removed based on the priority.
Time complexity of priority queue using binary heap or binary search tree :

  • Insert operation takes : O( log n )
  • Delete operation takes : O (log n )
Test: Divide & Conquer- 3 - Question 2

Following algorithm (s) can be used to sort n integers in the range [1 ... n3] in O(n) time?

Detailed Solution for Test: Divide & Conquer- 3 - Question 2

Radix sort is a non-comparative integer sorting algorithm that sorts data with integer keys by grouping keys which share same position and value. So it take O(n) time.

1 Crore+ students have signed up on EduRev. Have you? Download the App
Test: Divide & Conquer- 3 - Question 3

The recurrence relation that arises in relation with the complexity of binary search is

Detailed Solution for Test: Divide & Conquer- 3 - Question 3

Binary search only half of the array.
So,  

Test: Divide & Conquer- 3 - Question 4

Which one of the following statements is false?

Detailed Solution for Test: Divide & Conquer- 3 - Question 4

Connected components of a graph can be computed in linear time by using either breadth- first search or depth-first search.

Test: Divide & Conquer- 3 - Question 5

Merge sort uses

Detailed Solution for Test: Divide & Conquer- 3 - Question 5

A merge sort is comparisbn based sorting algorithm and divide-and-conquer algorithm.

Test: Divide & Conquer- 3 - Question 6

 For merging two sorted lists of sizes m and n into a sorted list of size m + n, we required comparisons of

Detailed Solution for Test: Divide & Conquer- 3 - Question 6

The number of comparisons required in the worst case is O(m + n).

Test: Divide & Conquer- 3 - Question 7

Quicksort is run on two inputs shown below to sort in ascending order:
(i) 1 , 2 , 3 .... n .
(ii) n, n - 1, n - 2 , .... 2, 1

Let C1, and C2 be the number of comparisons made for the inputs (i) and (ii) respectively. Then,

Detailed Solution for Test: Divide & Conquer- 3 - Question 7

Both of given cases are Quicksort Worst cases problem, so comparisons are equal.

Test: Divide & Conquer- 3 - Question 8

Let T(n) be the function defined by T(1) = 1, T(n)   Which of the following statements is true?

Detailed Solution for Test: Divide & Conquer- 3 - Question 8

Use Master Theorem 

Test: Divide & Conquer- 3 - Question 9

A sorting technique is called stable if

Detailed Solution for Test: Divide & Conquer- 3 - Question 9

A sorting algorithm is called stable if it keeps elements with equal keys in the same relative order in the output as they were in the input.
For example in the following input the two 4’s are indistinguishable. 1,4a, 3, 4b, 2 and so the output of a stable sorting algorithm must be:
1, 2, 3, 4a, 4b
Bubble sort, merge sort, counting sort, insertion sort are stable sorting algorithms.

Test: Divide & Conquer- 3 - Question 10

If one uses straight two-way merge sort algorithm to sort the following elements in ascending order:
20,47, 15,8,9,4,40,30, 12, 17 
Then the order of these elements after second pass of the algorithm is

Detailed Solution for Test: Divide & Conquer- 3 - Question 10

Given: 20, 47, 15, 8, 9, 4, 40, 30, 12, 17
2-way merge sort so group of 2 is taken at once.
2nd pass:

The order of elements after second pass of the algorithm is 8, 15, 20, 47, 4, 9, 30, 40, 12, 17.

63 videos|7 docs|165 tests
Information about Test: Divide & Conquer- 3 Page
In this test you can find the Exam questions for Test: Divide & Conquer- 3 solved & explained in the simplest way possible. Besides giving Questions and answers for Test: Divide & Conquer- 3, EduRev gives you an ample number of Online tests for practice

Top Courses for Computer Science Engineering (CSE)

Download as PDF

Top Courses for Computer Science Engineering (CSE)