Math

Math

University

20 Qs

quiz-placeholder

Similar activities

Unit 8 Shapes Review

Unit 8 Shapes Review

3rd Grade - University

20 Qs

The Mathematics of Graphs

The Mathematics of Graphs

University

20 Qs

Graph Theory

Graph Theory

University

20 Qs

DM UINT III MCQ R

DM UINT III MCQ R

University

20 Qs

D1 Graphs and Networks Key Words (Chapter 2)

D1 Graphs and Networks Key Words (Chapter 2)

8th Grade - University

20 Qs

Graph Theory-1

Graph Theory-1

University

20 Qs

Polyhedra

Polyhedra

6th Grade - University

20 Qs

3D Objects

3D Objects

6th Grade - University

17 Qs

Math

Math

Assessment

Quiz

Mathematics

University

Easy

Created by

Hiếu Hồ

Used 1+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is Prim's algorithm used for?

  • A) Finding the longest path in a graph

  • B) Finding the minimum spanning tree

  • C) Finding the shortest path in a graph

D) Finding all possible circuits in a graph

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the first step in Prim's algorithm?

  • A) Start with an empty tree

  • B) Add the largest edge to the spanning tree

  • C) Add any edge to the tree

D) Choose any edge with the smallest weight

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In Prim's algorithm, when do you stop adding edges?

  • A) When there are no more edges left

B) When n−1n - 1n−1 edges have been added

  • C) When the tree forms a circuit

D) When all vertices are connected

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following statements is true about Kruskal's algorithm?

  • A) It starts with any edge

  • B) It only adds edges incident to a vertex already in the tree

  • C) It starts with an empty graph and adds edges of minimum weight

D) It only works for directed graphs

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a key difference between Prim's and Kruskal's algorithms?

  • A) Prim's algorithm only works on directed graphs

  • B) Kruskal's algorithm adds edges that are incident to a vertex already in the tree

  • C) Prim’s algorithm only adds edges connected to vertices in the tree

D) Kruskal’s algorithm cannot find the minimum spanning tree

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In Kruskal's algorithm, how are edges chosen?

  • A) By adding the highest-weighted edges first

  • B) By adding edges only if they form a circuit

  • C) By adding edges of minimum weight that do not form a circuit

D) By adding edges that form a cycle

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the total weight of the minimum spanning tree in Example 8 (using Prim's algorithm)?

  • A) 22

  • B) 24

  • C) 25

D) 26

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?