Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

( 3 0 points ) ( Greedv technique ) Ali would like to go on a long holiday visiting number of cities in Turkex, He

(30 points)(Greedv technique) Ali would like to go on a long holiday visiting number of
cities in Turkex, He will start his joumex from Istanbul. The duration of journeys with a
bus between cities are given as below:
stanbul- Kuadas(5 hours)
Kuadas- Bodrum (2 hours)
stanbul- Eskiehir (3 hours)
Eskiehir- Nevehir (5 hours)
Bodrum- Mersin (12 hours)
Mersin- Antalya (7 hours)
Antalya- Nevehir (6 hours)
Mersin- Nevehir (3 hours)
Eskiehir-Mersin (7 hours)
stanbul-Mersin (9 hours)
Bodrum- Eskiehir (7 hours)
He needs to visit Kuadas, Bodrum, Eskiehir, Nevehir, Mersin, Antalya starting from
Istanbul.
Draw a Graph with vertices denoted bx cities, and the edges between cities are the
duration of bus trips mentioned above.
Draw the Minimum Spanning Tree
a. Using Prim's algorithm
b. Using Kruskal's algarithm
Show your steps,
Draw the single source shortest paths (starting from Istanbul) using Diikstra
Algorithm. Show your steps. Is the MST you have found the same as the single
source shortest path xou have found with Dijkstra?
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