Question: PART 1 : ALL. QUESTIONS ARE REQUIRED [ 1 0 Marks ] Question 1 : ( 1 0 marks ) Mark the fothowing statemerts we

PART 1: ALL. QUESTIONS ARE REQUIRED [10 Marks]
Question 1: (10 marks)
Mark the fothowing statemerts we trie or false
Linear search in an array ) invotves (log n) comparisons.
To represent hierarchical relationship between family members, a graph data structure is suitable.
The recurrence relation that arises in relation with the complexity of binary search is T(n)-=T(n2)+k. Where k is constant
Minimal spanning tree algorithm belongs to the brute-force paradigm
KMP soarching algorthm is faster than the Linear search
Searching in a list for an unavailable value will lead to average case performance.
The sequence 20,15,18,7,9,5,12,3,6,2 is a max-heap.
O(n),O(nlogn),O(n2),O(n2logn) is the right order from best to worst complexity.
A graph is a collection of nodes, called vertices and line segments called edges that connect pair of nodes.
Consider a sorted array of n numbers. the best known algorithm to find a pair 'a' and 'b' such that |a-b|=k,k being a positive integer is of order O(n).
PART 2: ALL QUESTIONS ARE REQUIRED [25 Marks]
 PART 1: ALL. QUESTIONS ARE REQUIRED [10 Marks] Question 1: (10

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!