Search Header Logo

Cp QUIZ

Authored by sowndarya csm

Computers

University

Used 1+ times

Cp QUIZ
AI

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?

  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

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?