Let G be an undirected graph whose vertices are the integers 1 through 8, and let the adjacent vertices of each vertex be given by the table below: look at the picture sent Assume that, in a traversal of G, the adjacent vertices of a given vertex are returned in the same order as they are listed in the table above. Which statement of the following is correct? group of answer choices  a) The sequence of vertices visited using a DFS traversal starting at vertex 1: 1, 2, 3, 4, 6, 5, 7, 8. b) The sequence of vertices visited using a BFS traversal starting at vertex 1: 1, 2, 3, 4, 6, 5, 7, 8. c) Both sequences are wrong. d) Both sequences are correct.

Systems Architecture
7th Edition
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Stephen D. Burd
Chapter7: Input/output Technology
Section: Chapter Questions
Problem 3VE
icon
Related questions
Question

Let G be an undirected graph whose vertices are the integers 1 through 8, and let the adjacent vertices of each vertex be given by the table below:

look at the picture sent

Assume that, in a traversal of G, the adjacent vertices of a given vertex are returned in the same order as they are listed in the table above.

Which statement of the following is correct?

group of answer choices 

a) The sequence of vertices visited using a DFS traversal starting at vertex 1: 1, 2, 3, 4, 6, 5, 7, 8.
b) The sequence of vertices visited using a BFS traversal starting at vertex 1: 1, 2, 3, 4, 6, 5, 7, 8.
c) Both sequences are wrong.
d) Both sequences are correct.
Vertex
1
2
3
4
5
6
7
00
8
Adjacent
vertices
(2, 3, 4)
(1, 3, 4)
(1, 2, 4)
(1, 2, 3, 6)
(6, 7, 8)
(4, 5, 7)
(5, 6, 8)
(5,7)
Transcribed Image Text:Vertex 1 2 3 4 5 6 7 00 8 Adjacent vertices (2, 3, 4) (1, 3, 4) (1, 2, 4) (1, 2, 3, 6) (6, 7, 8) (4, 5, 7) (5, 6, 8) (5,7)
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Knowledge Booster
Sets
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Systems Architecture
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage