Project: Within the framework of the valorization of the acquired knowledge, one wishes to carry out an algorithm manipulating classical procedures of the theory of the graphs. With regard to part 1 of the project, it is requested to file a report on the algorithm carried out as well as the various associated procedures by justifying the data structures used. For part 2, you are asked to submit the source files as well as a demonstration of the implementation via one or more execution scenarios depending on the type of graph entered by the user. Part 1: Write an algorithm that allows the acquisition of a graph G(X,E) by the user. The acquisition is performed by entering the adjacency matrix relative to G having the number n of vertices. 1. Undirected graph: each of the edges has a weight. 2. Directed graph: each of the arcs has a cost. • If the entered graph is undirected, the algorithm performs the following tasks: 1. Verification of graph connectivity. 2. Finding a spanning tree of minimum weight by applying the PRIM algorithm. 3. Search for a spanning tree of maximum weight by applying the PRIM algorithm. If the entered graph is oriented, the algorithm performs the following tasks: 1. Verification of the strong connectivity of the graph. If the graph is not strongly connected, you are asked to provide the reduced graph 2. Check for the existence of a root vertex 3. If there is a root vertex, it is requested to search for a tree structure of shortest paths resulting from this vertex by applying the most appropriate algorithm (BELLMAN algorithm, DIJKSTRA algorithm, BELLMAN-FORD algorithm).

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

subject "graph and optimization"

Project:
Within the framework of the valorization of the acquired knowledge, one
wishes to carry out an algorithm manipulating classical procedures of the
theory of the graphs. With regard to part 1 of the project, it is requested to file
a report on the algorithm carried out as well as the various associated
procedures by justifying the data structures used. For part 2, you are asked to
submit the source files as well as a demonstration of the implementation via
one or more execution scenarios depending on the type of graph entered by
the user.
Part 1:
Write an algorithm that allows the acquisition of a graph G(X,E) by the user.
The acquisition is performed by entering the adjacency matrix relative to G
having the number n of vertices.
1. Undirected graph: each of the edges has a weight.
2. Directed graph: each of the arcs has a cost.
•
If the entered graph is undirected, the algorithm performs the following
tasks:
1. Verification of graph connectivity.
2. Finding a spanning tree of minimum weight by applying the PRIM
algorithm.
3. Search for a spanning tree of maximum weight by applying the PRIM
algorithm.
If the entered graph is oriented, the algorithm performs the following
tasks:
1. Verification of the strong connectivity of the graph. If the graph is not
strongly connected, you are asked to provide the reduced graph
2. Check for the existence of a root vertex
3. If there is a root vertex, it is requested to search for a tree structure of
shortest paths resulting from this vertex by applying the most
appropriate algorithm (BELLMAN algorithm, DIJKSTRA algorithm,
BELLMAN-FORD algorithm).
Transcribed Image Text:Project: Within the framework of the valorization of the acquired knowledge, one wishes to carry out an algorithm manipulating classical procedures of the theory of the graphs. With regard to part 1 of the project, it is requested to file a report on the algorithm carried out as well as the various associated procedures by justifying the data structures used. For part 2, you are asked to submit the source files as well as a demonstration of the implementation via one or more execution scenarios depending on the type of graph entered by the user. Part 1: Write an algorithm that allows the acquisition of a graph G(X,E) by the user. The acquisition is performed by entering the adjacency matrix relative to G having the number n of vertices. 1. Undirected graph: each of the edges has a weight. 2. Directed graph: each of the arcs has a cost. • If the entered graph is undirected, the algorithm performs the following tasks: 1. Verification of graph connectivity. 2. Finding a spanning tree of minimum weight by applying the PRIM algorithm. 3. Search for a spanning tree of maximum weight by applying the PRIM algorithm. If the entered graph is oriented, the algorithm performs the following tasks: 1. Verification of the strong connectivity of the graph. If the graph is not strongly connected, you are asked to provide the reduced graph 2. Check for the existence of a root vertex 3. If there is a root vertex, it is requested to search for a tree structure of shortest paths resulting from this vertex by applying the most appropriate algorithm (BELLMAN algorithm, DIJKSTRA algorithm, BELLMAN-FORD algorithm).
Expert Solution
steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
Stack
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.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education