Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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]
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions