Question 1 (25 pts): Figure 1 Graphs for Question 1. a. In Figure 1(a), determine if the graph is simple. Also determine if there is a cycle in this

Question 1 (25 pts):

Figure 1 Graphs for Question 1.

a. In Figure 1(a), determine if the graph is simple. Also determine if there is a cycle in this graph.

b. In Figure 1(a), determine if the vertices 3 and 9 are connected. If these vertices are connected, find a path from vertex 3 to vertex 9.

c. In Figure 1(b), determine if the vertices 1 and 4 are connected. If these vertices are connected, find a path from vertex 1 to vertex 10.

d. In Figure 1(b), find a path, if any, from vertex 1 to vertex 7 that has 4 edges.

Question 2 (25 pts):

Figure 2 A graph for Question 2.

a. Find the adjacency matrix of the graph in Figure 2.

b. Draw the adjacency list of the graph in Figure 2.

c. List the nodes of the graph, in Figure 2, in a depth first traversal.

d. List the nodes of the graph, in Figure 2, in a breadth first traversal.

Question 3 (25 pts):

Figure 3 A graph for Question 3

a. List the nodes of the graph, in Figure 3, in a breadth first traversal.

b. List the nodes of the graph, in Figure3, in a depth first traversal.

Question 4:

Write a program that outputs the nodes of a graph in a breadth first traversal.

Submit the source code, and copy and paste the screenshot of the output here.

Share This Post

Email
WhatsApp
Facebook
Twitter
LinkedIn
Pinterest
Reddit

Order a Similar Paper and get 15% Discount on your First Order

Related Questions

Create your Cybersecurity Portfolio Portfolios are an invaluable tool in academic and professional development. They provide a powerful medium for users

Create your Cybersecurity Portfolio Portfolios are an invaluable tool in academic and professional development. They provide a powerful medium for users to efficiently collect and organize artifacts representative of work completed over time. Portfolios offer a means to demonstrate formative and/or summative progress and achievement. Portfolio authors are empowered with tools

Assessment 4: Research Proposal ReportDue date: Week 12Group/individual: IndividualWord count/Time provided: 2000 wordsWeighting: 30%Assessment 4

Assessment 4: Research Proposal ReportDue date: Week 12Group/individual: IndividualWord count/Time provided: 2000 wordsWeighting: 30%Assessment 4 DetailThis assessment requires student to develop a two-page paper with IEEE format based on previousthree assessments. It is expected that student will use this idea for further develop their Capstoneresearch project (Applied Research Project) in

I’ve attached the instructions and PowerPoint template needed for the work. To complete this assignment, you will need the attached files and the Small

I’ve attached the instructions and PowerPoint template needed for the work. To complete this assignment, you will need the attached files and the Small Merchant Guide to Safe Payments documentation (click link to download) from the Payment Card Industry Data Security Standards (PCI DSS) organization. Please read the instructions carefully and ask questions if

Design a BN for a new school building. Attached are three preliminary school blueprints. Each room will only have an instructor computer except

Design a BN for a new school building. Attached are three preliminary school blueprints. Each room will only have an instructor computer except for four labeled computer labs with 30 computers each. Create LANs to group the classrooms (determine how many per LAN by distance and location in the building) for all the teacher’s computers in the lecture halls/rooms. Each

Case Study https://www.dropbox.com/ Case

Case Study Case Study scl/fi/i9s2br812hcrdv1rjp5lc/GGFRT-Case-Study1-2245.pdf?rlkey=hs55yycv4tkk1tlcdxppxvxrs&st=1dyojc6z&dl=0 IT Plan 1 scl/fi/xv8mt8xcm9pjzf0rrtfuk/Mosley-s-IT-Strategic-Plan-GGFRT.docx?rlkey=3il6s7divy98soadjb6iai2di&st=hhu5hkfu&dl=0 IT Plan 2

This assignment is to submit a 12-page report on Cisco’s Vision: A smart +connected world using the working template provided and additionally

This assignment is to submit a 12-page report on Cisco’s Vision: A smart +connected world using the working template provided and additionally answering: ·        Explain the challenges of innovating and implementing new technologies on a large scale in this case.   ·        Telepresence is an innovative technology that requires widespread