DSA Week 11

DSA Week 11

University

10 Qs

quiz-placeholder

Similar activities

Kwasica ketonowa na podstawie zaleceń PTD 2021

Kwasica ketonowa na podstawie zaleceń PTD 2021

University

14 Qs

Test1 de álgebra moderna

Test1 de álgebra moderna

University

8 Qs

Tech quiz Round 1

Tech quiz Round 1

University

15 Qs

Recuperación Lógica

Recuperación Lógica

University

10 Qs

TPSK1SUPER

TPSK1SUPER

12th Grade - University

15 Qs

C PROGRAMMING

C PROGRAMMING

University

15 Qs

Inecuaciones de 1er grado con 1 variable

Inecuaciones de 1er grado con 1 variable

University

12 Qs

UNIT1_PYTHON

UNIT1_PYTHON

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?