DSBS-FN-30.01.2024

DSBS-FN-30.01.2024

Professional Development

15 Qs

quiz-placeholder

Similar activities

SASI -1st year -DAY1-AN(27.11.23)

SASI -1st year -DAY1-AN(27.11.23)

Professional Development

15 Qs

DSBS-AN-31.01.2024

DSBS-AN-31.01.2024

Professional Development

15 Qs

091223    SASI AN

091223 SASI AN

Professional Development

15 Qs

SASI -1st year -DAY4-FN (21.12.23)

SASI -1st year -DAY4-FN (21.12.23)

Professional Development

15 Qs

VRESEC-24.01.2024-AN-1-3

VRESEC-24.01.2024-AN-1-3

Professional Development

15 Qs

SASI -1st year -DAY4-AN (21.12.23)

SASI -1st year -DAY4-AN (21.12.23)

Professional Development

15 Qs

VCE-GAMMA-21.11.2023-AN

VCE-GAMMA-21.11.2023-AN

Professional Development

15 Qs

pointers B

pointers B

Professional Development

16 Qs

DSBS-FN-30.01.2024

DSBS-FN-30.01.2024

Assessment

Quiz

English

Professional Development

Hard

Created by

CCC info@ccc.training

Used 1+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

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

2.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Suppose you have coins of denominations 1,3 and 4. You use a greedy algorithm, in which you choose the largest denomination coin which is not greater than the remaining sum. For which of the following sums, will the algorithm produce an optimal answer?
100
10
6
14

3.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Dijkstra’s Algorithm is the prime example for ___________
Dynamic programming
Back tracking
Branch and bound
Greedy algorithm

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

With what data structure can a priority queue be implemented?
Array
List
Heap
Tree

5.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What is the time complexity to insert a node based on key in a priority queue?
O(nlogn)
O(logn)
O(n)
O(n2)

6.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Which of the following is not an advantage of a priority queue?
Easy to implement
Processes with different priority can be efficiently handled
Applications with differing requirements
Easy to delete elements in any case

7.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Descending priority queue can be implemented using ______
max heap
min heap
min-max heap
trie

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?