wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Advanced Design Techniques

Total questions: 18

Worksheet time: 9mins

Name
Class
Date
1.
a)

b)

c)

2.

Which of the following is the correct definition of the optimal substructure of a problem?

a)

A way to rearrange problem parameters so that the data of problem is represented in the shortest form possible

b)

A set of all the subproblems that must be solved to construct a solution to the initial problem

c)

A set of all the optimal solutions to a problem

3.

Which of the following strategies can be used to solve a 0-1 knapsack problem effectively?

a)

Brute force

b)

Dynamic programming

c)

Linear programming

4.
a)

O(n^2)

b)

O(nW)

c)

O(n)

d)

O(n long W)

5.

Is the solution to the knapsack problem unique?

a)

yes

b)

no

c)

Any knapsack problem has many solutions

6.

When does a problem have the optimal substructure?

a)

When the problem solution can be optimally constructed from optimal solutions of its subproblems

b)

When the data structures of the problem are well organized

c)

When the fastest algorithm is used to solve the problem

7.

Are subproblems less complex and smaller than the source problem when building substructures?

a)

yes

b)

No, there can be subproblems that have the same complexity as the source problem.

8.

Are permutations of chars in source strings considered while detecting their LCS?

a)

Yes

b)

No

9.

Why are an additional row and column used in a memorization table?

a)

To use more memory

b)

To make the solution algorithm more efficient

c)

10.

How much memory is used to memorize the solutions to subproblems?

a)

O(m + n)

b)

O(m -n)

c)

O(mn)

d)

O(m long n)

11.

Which of the following describes the solution to the ALS problem?

a)

The number of products that can be assembled in a given amount of time

b)

A sequence of lines which must be chosen at each stage of assembly line

c)

The minimum time it takes to assemble a product

12.

Which of the following is the time complexity of solving the ALS problem if n is the number of stages in each line?

a)

O(n)

b)

O(n long n)

c)

O(n^2)

13.

What is a matrix chain multiplication problem?

a)

Constructiion of a permutation of matrices that provides the matrices product of minimum sizes

b)

Computation of a product of matrices by performing minimum elementary operations

c)

Detection of whether given matrices can be multiplied or not

14.

Which of the following is the main idea behind the greedy approach?

a)

To make a random choice at each stage of an algorithm

b)

To make the best choice at each stage of an algorithm

c)

To choose the first suitable solution from the ones available

15.

Is the greedy approach suitable for building heuristic algorithms?

a)

The greedy approach is useless for building heuristic algorithms

b)

Yes, the greedy approach allows you to build algorithms that find suitable solutions, but not necessarily the optimal solutions.

16.

Which of the following is the core idea behind measuring information?

a)

Information and probability are inversely related.

b)

Information cannot be measured at all.

c)

The higher the probability, the more information there is.

17.

What is the information entropy?

a)

The expected value of information distribution

b)

The number of bits required to write the input of a problem

c)

The probability of fast problem solving

18.

Do any encoding schemes provide compression?

a)

Yes, any encoding scheme provides compression for a given message.

b)

No, only certain encoding schemes provide compression for a given message.

c)

There exists an encoding scheme that provides compression for any message.