• Keine Ergebnisse gefunden

Exercise 1: Minimum Spanning Trees

N/A
N/A
Protected

Academic year: 2022

Aktie "Exercise 1: Minimum Spanning Trees"

Copied!
1
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

University of Freiburg Dept. of Computer Science Prof. Dr. F. Kuhn

Algorithms and Data Structures Summer Term 2021

Exercise Sheet 9

Exercise 1: Minimum Spanning Trees

LetG= (V, E, w) be anundirected, connected, weighted graph with pairwise distinct edge weights.

(a) Show that Ghas a unique minimum spanning tree.

(b) Show that the minimum spanning treeT0 ofG is obtained by the following construction:

Start withT0 =∅. For each cut inG, add the lightest cut edge to T0.

Exercise 2: Travelling Salesperson Problem

Let p1, . . . , pn ∈R2 be points in the euclidean plane. Point pi represents the position of city i. The distance between cities iand j is defined as the euclidean distance between the points pi and pj. A tour is a sequence of cities (i1, . . . , in) such that each city is visited exactly once (formally, it is a permutation of {1, . . . , n}). The task is to find a tour that minimizes the travelled distance. This problem is probably costly to solve.1 We therefore aim for a tour that is at most twice as long as a minimal tour.

We can model this as a graph problem, using the graph G = (V, E, w) with V = {p1, . . . , pn} and w(pi, pj) :=kpi−pjk2. Hence, G is undirected and complete and fulfills the triangle inequality, i.e., for any nodes x, y, z we have w({x, z}) ≤ w({x, y}) +w({y, z}). We aim for a tour (i1, . . . , in) such thatw(pin, pi1) +Pn−1

j=1 w(pij, pij+1) is small.

Let G be a weighted, undirected, complete graph that fulfills the triangle inequality. Show that the sequence of nodes obtained by a pre-order traversal of a minimum spanning tree (starting at an arbitrary root) is a tour that is at most twice as long as a minimal tour.

1The Travelling Salesperson Problem is in the class ofN P-complete problems for which it is assumed that no algorithm with polynomial runtime exists. However, this has not been proven yet.

Referenzen

ÄHNLICHE DOKUMENTE

Ruthmair, M., Raidl, G.R.: A Kruskal-Based Heuristic for the Rooted Delay- Constrained Minimum Spanning Tree Problem. Salama, H.F., Reeves, D.S., Viniotis, Y.: The

In comparison to existing heuristics the main intention is not to create a minimum cost spanning tree, but a solution with a high potential for further improvement..

We present exact mixed integer programming approaches including branch-and-cut and branch- and-cut-and-price for the minimum label spanning tree problem as well as a variant of

We suggest a branch-and-cut approach, in which connectivity and cycle elimination constraints violated in the solution of the LP-relaxation are iteratively determined and added as

A Predecessor Coding in an Evolutionary Algorithm for the Capacitated Minimum Spanning Tree Problem.. G¨

Motivation, Greedy, Algorithm Kruskal, General Rules, ADT Union-Find, Algorithm Jarnik, Prim, Dijkstra, Fibonacci Heaps [Ottman/Widmayer, Kap... Of all undecided edges that cross

At each step there is a minimal spanning tree T that contains all selected and none of the rejected edges.. Choose a cut that is not crossed by a

Fachbereich Mathematik und