
QUIZ 01 -DAA

Quiz
•
Information Technology (IT)
•
University
•
Medium
arr revathi
Used 3+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Analyze the time complexity derivation of the divide and conquer maximum subarray algorithm. Which recurrence relation represents the time complexity correctly?
T(n)=T(n−1)+O(1)
T(n)=2T(n/2)+O(n)
T(n)=T(n/2)+O(log n)
T(n)=nT(n−1)+O(n2))
2.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Huffman coding produces a prefix-free code that minimizes the weighted path length. Which data structure most efficiently supports the construction of this code?
Linked List
Priority Queue (Min-Heap)
Stack
Binary Search Tree
3.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Which of the following properties is not required for an algorithm to be solvable optimally using greedy techniques?
Greedy-choice property
Optimal substructure
Overlapping subproblems
Problem decomposition into independent subproblems
4.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
In analyzing the time complexity of the maximum subarray problem solved by divide and conquer, the merging step takes O(n)O(n)O(n) time. What does this step accomplish?
Combining the solutions of left and right subarrays, including subarrays crossing the midpoint
Sorting the array to reduce the problem size
Removing duplicate subarrays
Calculating the prefix sums for dynamic programming
5.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Suppose you design a new algorithm for a problem and derive its time complexity as O(nlogn). Which of the following algorithmic techniques is most likely used?
Dynamic programming with memoization
Greedy algorithm with sorting
Divide and conquer with recursive calls
Backtracking with pruning
6.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
The Subset Sum problem solved using backtracking is classified as:
Polynomial time problem
NP-complete problem
Greedy solvable problem
Linear time problem
7.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
In the Branch and Bound method using FIFO-BB for the job selection problem, the primary difference from LIFO-BB is:
FIFO-BB explores nodes in a breadth-first manner; LIFO-BB in a depth-first manner
FIFO-BB requires more memory than LIFO-BB always
LIFO-BB guarantees optimal solution, FIFO-BB does not
Both methods explore nodes in the same order
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Test 2 - PB - Introducción a Python

Quiz
•
University
11 questions
Kỹ Thuật Sắp Xếp

Quiz
•
University
15 questions
Bài 24

Quiz
•
10th Grade - University
10 questions
Contadores y Acumuladores

Quiz
•
University
13 questions
Buổi 4

Quiz
•
University
12 questions
Python-Quiz1

Quiz
•
University
10 questions
Types of Logic

Quiz
•
University
15 questions
Algorithms: Divide and Conquer vs Greedy

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Information Technology (IT)
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University