Search Header Logo

Math

Authored by Hiếu Hồ

Mathematics

University

Used 1+ times

Math
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?