Search Header Logo

DSBS-FN-31.01.2024

Authored by CCC info@ccc.training

English

Professional Development

Used 1+ times

DSBS-FN-31.01.2024
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Which one of the following array elements represents a binary min heap?

12 10 8 25 14 17
8 10 12 25 14 17
25 17 14 12 10 8
14 17 25 10 12 8

2.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What will be the position of 5, when a max heap is constructed on the input elements 5, 70, 45, 7, 12, 15, 13, 65, 30, 25?

5 will be at root
5 will be at last level
5 will be at second level
5 can be anywhere in heap

3.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Which of the following algorithms is the best approach for solving Huffman codes?

greedy algorithm
exhaustive search
divide and conquer algorithm
brute force algorithm

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Fractional knapsack problem is solved most efficiently by which of the following algorithm?

Backtracking
Greedy algorithm
Dynamic programming
Divide and conquer

5.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Fractional knapsack problem is also known as __________

0/1 knapsack problem
Continuous knapsack problem
Divisible knapsack problem
Non continuous knapsack problem

6.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What is the objective of the knapsack problem?

To get maximum total value in the knapsack
To get maximum weight in the knapsack
To get minimum total value in the knapsack
To get minimum weight in the knapsack

7.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

The main time taking step in fractional knapsack problem is ___________

Breaking items into fraction
Adding items into knapsack
Sorting
Looping through sorted items

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?