Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Q 2 . 1 8 marks : Graphs A travel agent uses a graph to arrange trips to his customers. A graph is constructed to

Q2.18 marks : Graphs
A travel agent uses a graph to arrange trips to his customers. A graph is constructed to define the connections between a number of cities (vertices) in the Arab Gulf region. The cities are: Abu Dhabi (AD), Mascot (Mt), Kuwait (K), Manama (Mn), Reyadh (R). Sanaa (S) and Doha (D). The connected roads (edges) are such that:
(AD,Mt),(Mt,AD),(AD,R),(R,AD),(D,R),(R,D),(Mt,R),(R,Mt),(S,D),(D,S),(Mn,Mt),(Mt,Mn),(Mt,K),(K,Mt),(K,S),(K,D).
A.[4 marks] Show how the above graph can be stored by constructing the:
[2 marks] adjacency list.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

What do these students reactions tell you about childrens thinking?

Answered: 1 week ago

Question

=+1. Who will receive the final evaluation?

Answered: 1 week ago