
Cp QUIZ
Authored by sowndarya csm
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
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
15 mins • 10 pts
In backtracking, what is pruning?
Trimming unwanted branches in the search space.
The process of selecting the best solution
reversing the steps taken
The process of finding the optimal solution.
2.
MULTIPLE CHOICE QUESTION
15 mins • 10 pts
What is the key feature of a problem that makes it suitable for a backtracking solution?
The problem has overlapping subproblems.
The problem has an optimal substructure.
The problem can be divided into smaller independent subproblems.
The problem exhibits a recursive structure and can be solved by trying out different possibilities.
3.
MULTIPLE CHOICE QUESTION
15 mins • 10 pts
The first step in the naïve greedy algorithm is?
adding flows with higher values
reversing flow if required
analysing the zero flow
calculating the maximum flow using trial and error
4.
MULTIPLE CHOICE QUESTION
15 mins • 10 pts
Which of the following algorithms is the best approach for solving Huffman codes?
greedy algorithm
exhaustive search
divide and conquer algorithm
brute force algorithm
5.
MULTIPLE CHOICE QUESTION
15 mins • 10 pts
Which bit is reserved as a parity bit in an ASCII set?
first
seventh
eighth
tenth
6.
MULTIPLE CHOICE QUESTION
15 mins • 10 pts
Which of the following is/are property/properties of a dynamic programming problem?
Optimal substructure
Overlapping subproblems
Greedy approach
Both optimal substructure and overlapping subproblems
7.
MULTIPLE CHOICE QUESTION
15 mins • 10 pts
In dynamic programming, the technique of storing the previously calculated values is called ___________
Saving value property
Storing value property
Memoization
Mapping
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?