DSA Week 11

DSA Week 11

University

10 Qs

quiz-placeholder

Similar activities

Math 1050 Review (3/25)

Math 1050 Review (3/25)

12th Grade - University

13 Qs

es facil confia en mi :3

es facil confia en mi :3

1st Grade - University

8 Qs

TESTING OF HYPOTHESES

TESTING OF HYPOTHESES

University

10 Qs

Enlarged Vestibular Aqueduct Quiz

Enlarged Vestibular Aqueduct Quiz

University

14 Qs

Die

Die

KG - Professional Development

12 Qs

Java set3

Java set3

University

10 Qs

B3.2.Điều chỉnh sai sót Thuế GTGT

B3.2.Điều chỉnh sai sót Thuế GTGT

University

10 Qs

 coding comptition

coding comptition

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?