
unit-3
Authored by Kvijayalakshmi Chennai
Computers
University
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
4 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A sub-sequence of a given sequence is just the given sequence with some elements (possibly none or all) left out. We are given two sequences X[m] and Y[n] of lengths m and n, respectively, with indexes of X and Y starting from 0.
We wish to find the length of the longest common sub-sequence (LCS) of X[m] and Y[n] as l(m,n), where an incomplete recursive definition for the function l(i,j) to compute the length of the LCS of X[m] and Y[n] is given below:
l(i,j) = 0, if either i=0 or j=0
= expr1, if i,j>0 and X[i - 1] = Y[j - 1]
= expr2, if i,j>0 and X[i - 1] ≠ Y[j - 1]
A) expr1 ≡ l(i-1,j) + 1
(B) expr1 ≡≡ l(i,j-1)
C) expr2 ≡≡ max(l(i-1,j),l(i,j-1)
(D) expr2 ≡
≡ max(l(i-1,j-1),l(i,j))
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens when a top-down approach of dynamic programming is applied to any problem?
It increases both, the time complexity and the space complexity
It increases the space complexity and decreases the time complexity
It increases the time complexity and decreases the space complexity
It decreases both, the time complexity and the space complexity
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider a weighted complete graph G on the vertex set {v1, v2, ..vn} such that the weight of the edge (vi, vj) is 2
|
i
−
j
|
2|i−j|
. The weight of a minimum spanning tree of G is:
n-1
2n-2
n\2
n2
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is true about Kruskal and Prim MST algorithms? Assume that Prim is implemented for adjacency list representation using Binary Heap and Kruskal is implemented using union by rank.
Worst case time complexity of both algorithms is same
Worst case time complexity of Kruskal is better than Prim
Worst case time complexity of Prim is better than Kruskal
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
9 questions
Scratch (16th May)
Quiz
•
KG - University
9 questions
C++ linked lists
Quiz
•
University
9 questions
Networking Virtualization
Quiz
•
University
8 questions
Level 1 - week 1
Quiz
•
7th Grade - University
8 questions
Intro-Computação_1.2
Quiz
•
University
9 questions
CHAPTER 5 ONLINE QUIZ
Quiz
•
University
9 questions
Fundamental of Mobile Computing
Quiz
•
University
9 questions
Data Structures and Algorithm
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
29 questions
Alg. 1 Section 5.1 Coordinate Plane
Quiz
•
9th Grade
22 questions
fractions
Quiz
•
3rd Grade
11 questions
FOREST Effective communication
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
7 questions
Fragments, Run-ons, and Complete Sentences
Interactive video
•
4th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
10 questions
DNA Structure and Replication: Crash Course Biology
Interactive video
•
11th Grade - University
5 questions
Inherited and Acquired Traits of Animals
Interactive video
•
4th Grade - University
5 questions
Examining Theme
Interactive video
•
4th Grade - University
20 questions
Implicit vs. Explicit
Quiz
•
6th Grade - University
7 questions
Comparing Fractions
Interactive video
•
1st Grade - University