Question 31 :
In a binary max heap containing n numbers, the smallest element can be found in time
- O(n)
- O(logn)
- O(loglogn)
- O(1)
Question 32 :
What is the special property of red-black trees and what root should always be?
- A colour of a node is either red or black and root should always be black colour only
- height of the tree
- pointer to next node
- A colour which is either green or black
Question 33 :
Push Relabel algorithm is used to find
- finding a flow between source and sink that is maximum
- finding a flow between source and sink that is minimum
- finding the shortest path between source and sink
- computing a minimum spanning tree
Question 34 :
Which of the terms is not used in a linear programming problem?
- Slack variables
- Objective function
- Concave region
- Feasible solution
Question 35 :
Problems that cannot be solved by any algorithm are called?
- tractable problems
- intractable problems
- undecidable problems
- decidable problems
Question 36 :
Which is the correct technique for finding a maximum matching in a graph?
- DFS traversal
- BFS traversal
- Shortest path traversal
- Heap order traversal
Question 37 :
Johnson's algorithm used to solve following problem?
- All pair shortest path
- Min-cut
- Single source shortest path
- Minimum spanning tree
Question 38 :
Bellman Ford algorithm uses which algorithm design technique?
- Dynamic Programming
- Greedy Algorithms
- Linear Programming
- Branch and Bound
Question 39 :
Another name for Jarvis march algorithm to find convex hull is
- Gift wrapping
- Bin packing
- Segment linking
- Region mapping
Question 40 :
Arrange the following in the increasing order of their asymptotic complexity in big theta notation 2n, log n, n! , n
- 2n < log n < n! < n
- 2n < n< n! < log n
- n < log n < 2n < n!
- log n < n < 2n < n!
Question 41 :
What is the complexity of Ford Fulkerson's algorithm?
- O(|f*| |E|)
- O(|E|)
- O(VE)
- O(|V|)
Question 42 :
The number of trees in a binomial heap with n nodes is
- logn
- n
- nlogn
- n/2
Question 43 :
The flow function f maps a value for each edge where ___________
- f(u,v) <=c(u,v)
- f(u,v)>= c(u,v)
- f(u,v) < c(u,v)
- f(u,v)> c(u,v)
Question 44 :
In what time can an augmented path be found?
- O(|E| log |V|)
- O(|E|)
- O(|E|2)
- O(|E|2 log |V|)
Question 45 :
If the cross product of the vectors p1 and p2 is 0 then
- p1 is clockwise from p2 with respect to the origin (0,0).
- p1 is counterclockwise from p2 with respect to the origin (0,0).
- Either p1 is clockwise from p2 or p2 is clockwise from p1
- p1 and p2 are collinear, pointing in either opposite or same direction.
Question 46 :
The running time of graham scan Algorithm for solving convex hull is(n=number of points in set Q).
- O(n)
- O(n.logn)
- O(logn)
- O(n^2)
Question 47 :
Which method of amortized analysis keeps the same amortized cost for all the operations?
- Aggregate Analysis
- Accounting Method
- Potential Method
- Dynamic Table
Question 48 :
How many cases are there in under master method?
- 2
- 3
- 4
- 5
Question 49 :
Which data structure Graham’s Scan algorithm uses for storing the points of convex hull?
- Tree
- Linked List
- Stack
- Queue
Question 50 :
Which of the following problems should be solved using dynamic programming?
- Merge sort
- Binary search
- Longest common subsequence
- Quick sort