Part 1 - Program
Use the Graph found in the lecture notes for airports cities.
Use the the Adjacency matrix for that graph
Code them.
Code the correct Search algorithm and find shortest path between Washington and Chicago

Part 2 - Definition
Define the characteristics of a graph

Part 3 - Draw a Hierarchy diagram for lists, trees and Graphs..
Explain WHY you drew it the way you do.

Solution PreviewSolution Preview

These solutions may offer step-by-step problem-solving explanations or good writing examples that include modern styles of formatting and construction of bibliographies out of text citations and references. Students may use these solutions for personal skill-building and practice. Unethical use is strictly forbidden.

#include <stack>
#include <vector>
#include <iomanip>
#include <iostream>
using namespace std;

class Graph {

    Graph(int v, vector<string> names) { // constructor - here we initialize the graph
       // allocate the adjacency matrix
       m_adjMatrix = new int*[v];
       for (int i = 0; i < v; i++) {
            m_adjMatrix[i] = new int[v];
       // initialize the adjacency matrix to 0
       for (int i = 0; i < v; i++)
            for (int j = 0; j < v; j++)
                m_adjMatrix[i][j] = 0;
       m_v = v;
       m_e = 0;
       m_vertexName = names;
    ~Graph() {
       // deallocate the adjacency matrix
       for (int i = 0; i < m_v; i++)
            delete[] m_adjMatrix[i];...

By purchasing this solution you'll be able to access the following files:
Solution1.docx, Solution2.docx and Solution.cpp.

50% discount

$35.00 $17.50
for this solution

or FREE if you
register a new account!

PayPal, G Pay, ApplePay, Amazon Pay, and all major credit cards accepted.

Find A Tutor

View available Computer Science - Other Tutors

Get College Homework Help.

Are you sure you don't want to upload any files?

Fast tutor response requires as much info as possible.

Upload a file
Continue without uploading

We couldn't find that subject.
Please select the best match from the list below.

We'll send you an email right away. If it's not in your inbox, check your spam folder.

  • 1
  • 2
  • 3
Live Chats