Cp QUIZ

Cp QUIZ

University

10 Qs

quiz-placeholder

Similar activities

E10-DAA_7CSN

E10-DAA_7CSN

University

10 Qs

Viva - Practical - Main

Viva - Practical - Main

University

10 Qs

MS 101 - Seatwork FInals

MS 101 - Seatwork FInals

University

15 Qs

Dynamic Programming part 1

Dynamic Programming part 1

University

10 Qs

Dynamic programing 2

Dynamic programing 2

University

10 Qs

DAA Quiz

DAA Quiz

University

14 Qs

PDS - 04225 Algorithms - Chapter 3

PDS - 04225 Algorithms - Chapter 3

University

10 Qs

DC and DP Quiz

DC and DP Quiz

University

14 Qs

Cp QUIZ

Cp QUIZ

Assessment

Quiz

Computers

University

Easy

Created by

sowndarya csm

Used 1+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

15 mins • 10 pts

In backtracking, what is pruning?

  1. Trimming unwanted branches in the search space.

  1. The process of selecting the best solution

reversing the steps taken

  1. 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?

  1. The problem has overlapping subproblems.

  1. The problem has an optimal substructure.

  1. The problem can be divided into smaller independent subproblems.

  1. 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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?