DSA Week 11

DSA Week 11

University

10 Qs

quiz-placeholder

Similar activities

Theory of Computation-Finite Automata

Theory of Computation-Finite Automata

University

15 Qs

Mengenal Quizizz

Mengenal Quizizz

University - Professional Development

10 Qs

JAVA FUNDAMENTALS

JAVA FUNDAMENTALS

University

12 Qs

Matematyka

Matematyka

4th Grade - University

10 Qs

Quiz Dual 2

Quiz Dual 2

University

13 Qs

Tests of Hypotheses (Single Parameters)

Tests of Hypotheses (Single Parameters)

University

10 Qs

KUIS TPSK 1 SUPERINTENSIF

KUIS TPSK 1 SUPERINTENSIF

12th Grade - University

10 Qs

Regression Analysis

Regression Analysis

10th Grade - University

10 Qs

DSA Week 11

DSA Week 11

Assessment

Quiz

Other

University

Medium

Created by

Johan Alibasa

Used 1+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which option contains the correct set of vertices and edges based on the provided graph on the screen?

V = {0, 1, 2, 3}
E = {(0, 1), (0, 2), (0, 3), (1, 2)}

V = {1, 2, 3, 4}
E = {(1, 2), (2, 4), (3, 4)}

V = {1, 2, 3, 4}
E = {(1, 2), (2, 3), (3, 4)}

V = {1, 2, 3, 4}
E = {(1, 2), (3, 4), (2, 3)}

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which option contains the correct set of vertices and edges based on the provided graph on the screen?

V = {1, 2, 3, 4}
E = {(1, 3), (1, 2), (2, 3), (3, 4)}

V = {1, 2, 3, 4}
E = {(1, 3), (2, 4), (3, 4), (1, 2)}

V = {1, 2, 3, 4}
E = {(1, 2), (2, 3), (3, 4), (1, 4)}

V = {1, 2, 3, 4}
E = {(1, 2), (3, 4), (1, 4), (2, 4)}

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Based on the graph provided on the screen, which adjacency matrix is correct?

Media Image
Media Image
Media Image
Media Image

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Based on the graph provided on the screen, which adjacency matrix is correct?

Media Image
Media Image
Media Image
Media Image

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Based on the graph provided on the screen, which adjacency list is correct?

0 -> 3

1 -> 2

2 -> 1 -> 3

3 -> 0 -> 2

0 -> 3

1 -> 2

2 -> 3

3 -> 0

0 -> 3 -> 2 -> 1

1 -> 2 -> 3 -> 0

2 -> 3 -> 0

3 -> 2 -> 1

0 -> 3 -> 2

1 -> 2

2 -> 3 -> 0

3 -> 2

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Based on the graph provided on the screen, which adjacency list is correct?

0 -> 2 -> 3

1 -> 2

2 -> 0 -> 1

3 -> 0

0 -> 2 -> 3

1 -> 0 -> 2

2 -> 0 -> 1

3 -> 0

0 -> 2

1 -> 2

2 -> 0 -> 1

3 -> 0

0 -> 2 -> 3

1 -> 2

2 -> 0

3 -> 0

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the time complexity to find the number of in-edges for a single node X using an adjacency matrix?

O(n2)

O(n)

O(n3)

O(1)

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?