Algorithms for finding the minimum cycle mean in the weighted directed graph

Similar documents
Advanced Operations Research Techniques IE316. Quiz 1 Review. Dr. Ted Ralphs

Minimum Cycle Bases of Halin Graphs

CS599: Convex and Combinatorial Optimization Fall 2013 Lecture 14: Combinatorial Problems as Linear Programs I. Instructor: Shaddin Dughmi

The strong chromatic number of a graph

CS 473: Algorithms. Ruta Mehta. Spring University of Illinois, Urbana-Champaign. Ruta (UIUC) CS473 1 Spring / 36

1. Lecture notes on bipartite matching February 4th,

Lecture 7. s.t. e = (u,v) E x u + x v 1 (2) v V x v 0 (3)

Introduction to Mathematical Programming IE496. Final Review. Dr. Ted Ralphs

Math 5593 Linear Programming Lecture Notes

MA4254: Discrete Optimization. Defeng Sun. Department of Mathematics National University of Singapore Office: S Telephone:

STRONGLY REGULAR FUZZY GRAPH

Mathematical and Algorithmic Foundations Linear Programming and Matchings

On the Complexity of the Policy Improvement Algorithm. for Markov Decision Processes

ORIE 6300 Mathematical Programming I September 2, Lecture 3

On the extending of k-regular graphs and their strong defining spectrum

2 The Mixed Postman Problem with Restrictions on the Arcs

Interpretation of Dual Model for Piecewise Linear. Programming Problem Robert Hlavatý

Polyhedra inscribed in a hyperboloid & AdS geometry. anti-de Sitter geometry.

Mathematics for Decision Making: An Introduction. Lecture 18

Bilinear Programming

Dirac-type characterizations of graphs without long chordless cycles

Linear Bilevel Programming With Upper Level Constraints Depending on the Lower Level Solution

College of Computer & Information Science Fall 2007 Northeastern University 14 September 2007

1 Linear programming relaxation

Crossing Families. Abstract

Robust time-varying shortest path with arbitrary waiting time at vertices

3 No-Wait Job Shops with Variable Processing Times

Lecture Notes 2: The Simplex Algorithm

Combinatorial Geometry & Topology arising in Game Theory and Optimization

In this lecture, we ll look at applications of duality to three problems:

Network flows and Menger s theorem

Convex Geometry arising in Optimization

Vertex 3-colorability of claw-free graphs

DM545 Linear and Integer Programming. Lecture 2. The Simplex Method. Marco Chiarandini

NP-completeness of 4-incidence colorability of semi-cubic graphs

Advanced Operations Research Techniques IE316. Quiz 2 Review. Dr. Ted Ralphs

Lagrangian Relaxation: An overview

Lecture 10,11: General Matching Polytope, Maximum Flow. 1 Perfect Matching and Matching Polytope on General Graphs

Blocking Combinatorial Games

Linear Programming. Course review MS-E2140. v. 1.1

Duality. Primal program P: Maximize n. Dual program D: Minimize m. j=1 c jx j subject to n. j=1. i=1 b iy i subject to m. i=1

Lecture Overview. 2 Shortest s t path. 2.1 The LP. 2.2 The Algorithm. COMPSCI 530: Design and Analysis of Algorithms 11/14/2013

Vertex-Colouring Edge-Weightings

Geometry. Every Simplicial Polytope with at Most d + 4 Vertices Is a Quotient of a Neighborly Polytope. U. H. Kortenkamp. 1.

1 Matching in Non-Bipartite Graphs

Polar Duality and Farkas Lemma

LATIN SQUARES AND THEIR APPLICATION TO THE FEASIBLE SET FOR ASSIGNMENT PROBLEMS

1. Lecture notes on bipartite matching

Two Characterizations of Hypercubes

SOLVING THE TRANSPORTATION PROBLEM WITH PIECEWISE-LINEAR CONCAVE COST FUNCTIONS

Graphs and Network Flows IE411. Lecture 21. Dr. Ted Ralphs

Structural and spectral properties of minimal strong digraphs

Some Strong Connectivity Concepts in Weighted Graphs

NP-Completeness. Algorithms

Acyclic Edge Colorings of Graphs

Convexity: an introduction

Chapter 4. square sum graphs. 4.1 Introduction

In this chapter we introduce some of the basic concepts that will be useful for the study of integer programming problems.

[Ramalingam, 4(12): December 2017] ISSN DOI /zenodo Impact Factor

Construction of a transitive orientation using B-stable subgraphs

A note on self complementary brittle and self complementary quasi chordal graphs

Lattice-point generating functions for free sums of polytopes

Abstract Combinatorial Games

6.854 Advanced Algorithms. Scribes: Jay Kumar Sundararajan. Duality

arxiv: v1 [math.co] 27 Feb 2015

A PARAMETRIC SIMPLEX METHOD FOR OPTIMIZING A LINEAR FUNCTION OVER THE EFFICIENT SET OF A BICRITERIA LINEAR PROBLEM. 1.

11 Linear Programming

Lecture 5: Duality Theory

Introduction to Mathematical Programming IE406. Lecture 20. Dr. Ted Ralphs

On the Hardness of Computing Intersection, Union and Minkowski Sum of Polytopes

Linear programming and duality theory

CLASSES OF VERY STRONGLY PERFECT GRAPHS. Ganesh R. Gandal 1, R. Mary Jeya Jothi 2. 1 Department of Mathematics. Sathyabama University Chennai, INDIA

FACES OF CONVEX SETS

Minimum Cost Edge Disjoint Paths

Coloring Fuzzy Circular Interval Graphs

R n a T i x = b i} is a Hyperplane.

arxiv: v1 [math.at] 8 Jan 2015

Robert Cowen and Stephen H. Hechler. Received June 4, 2003; revised June 18, 2003

Topological Invariance under Line Graph Transformations

A PROOF OF THE LOWER BOUND CONJECTURE FOR CONVEX POLYTOPES

Traveling Salesman Problem (TSP) Input: undirected graph G=(V,E), c: E R + Goal: find a tour (Hamiltonian cycle) of minimum cost

Vertex-antimagic total labelings of graphs

Some Approximation Algorithms for Constructing Combinatorial Structures Fixed in Networks

Graphs that have the feasible bases of a given linear

Some new results on circle graphs. Guillermo Durán 1

Polyhedral Computation Today s Topic: The Double Description Algorithm. Komei Fukuda Swiss Federal Institute of Technology Zurich October 29, 2010

Math 5593 Linear Programming Final Exam

An FPTAS for minimizing the product of two non-negative linear cost functions

POLYHEDRAL GEOMETRY. Convex functions and sets. Mathematical Programming Niels Lauritzen Recall that a subset C R n is convex if

Convex Optimization MLSS 2015

Exploiting Social Network Structure for Person-to-Person Sentiment Analysis (Supplementary Material to [WPLP14])

Unlabeled equivalence for matroids representable over finite fields

An Alternative Approach for Solving Extreme Point Linear and Linear Fractional Programming Problems

4 LINEAR PROGRAMMING (LP) E. Amaldi Fondamenti di R.O. Politecnico di Milano 1

Minimal Universal Bipartite Graphs

Weighted Geodetic Convex Sets in A Graph

On the Strongly Connected and Biconnected Components of the Complement of Graphs

Solution of P versus NP problem

Line Graphs and Circulants

Acyclic Edge Colorings of Graphs

Transcription:

Computer Science Journal of Moldova, vol.6, no.1(16), 1998 Algorithms for finding the minimum cycle mean in the weighted directed graph D. Lozovanu C. Petic Abstract In this paper we study the problem of finding the minimum cycle mean in the weighted directed graph. The computational aspect of some algorithms for solving this problem is discussed and two algorithms for minimum cycle mean finding in the weighted directed graph are proposed. 1 Introduction The problem of finding the minimum cycle mean in the weighted directed graphs appears as an auxiliary problem of finding optimal stationary strategies for optimal control problem [1]. In this paper we propose a new polynomial time algorithm for finding the minimum cycle mean in the weighted directed graph. There will be also considered and analyzed a more general problem of finding the optimal cycle mean. 2 Problem formulation Let G = (V, E) be a directed graph, where V, V = n, is the set of vertices and E, E = m, is the set of edges. On the edges set E there is defined a function c : E R from E into the real numbers, associating each edge e E a weight c(e). The function c is called the function of cost and c(e) is called the cost of the edge e. The problem of finding minimum cycle mean in a digraph was formulated by Richard M. Karp as follows [2]. Given any sequence of edges c 1998 by D.Lozovanu, C.Petic 27

D.Lozovanu, C.Petic p σ = {e 1, e 2,..., e p } we define W (σ), the weight of σ, as c(e i ) and i=1 define M(σ), the mean weight of σ, as W (σ) Then we assume that p λ = min M(σ), where c ranges over all directed cycles in G. λ is c called the minimum cycle mean. Richard M. Karp has given a simple characterization of the minimum cycle mean in the directed weighted graph as well as an algorithm for computing it efficiently. We consider that G is strongly connected. If G is not strongly connected, then we can find the minimum cycle mean by determining the minimum cycle mean for each strong component of G, and then taking the least of these. The strong components can be found in O(n + m) computational steps. 3 Main results The problem of finding minimum cycle mean in the weighted directed graph can be reduced to a linear programming problem [1,3], which represents the continue model of the minimum cycle mean problem in the directed graph. The mathematical formulation of the problem considered in this paper can be given as: c(e)z(e) min e V + (v) z(e) z(e) = 1 z(e) 0 e V (v) z(e) = 0, v V where V + (v) is the set of edges, which have their extremities in v, V (v) is the set of edges originated in v, and z(e) is a variable associated to each edge e E. 28 (1)

Algorithms for finding the minimum cycle mean... Solution z of the system (1) determines in G some circulation with constant (equal to 1) sum of flux values by edges of the directed weighted graph G. It is easy to show, that any solution of the system (1) can be represented in the form of convex combination of the fluxes of some elementary directed cycles with constant (equal to 1) sum of flux values by edges of these cycles. Thus, associating each solution z of the system (1) the graph G z = (V z, E z ) induced by the edges e E with z(e) > 0, we obtain [4] that any of the extreme points of the polyhedral set Z of solutions of the system (1) will correspond to the graph G z in G, which have the structure of elementary directed cycle. Lemma 1 If z R m is the solution of the system (1) and corresponds to an extreme point of the set Z, then the graph G z reprezents an elementary cycle. Proof. First of all we shall prove that there exist a cycle in G z. If G z contains only edges for which z(e) > 0, then in any vertex v from the vertex set V z get in an edge z(e i ) > 0 and get out an edge z(e j ) > 0. If G is a finite graph, then crossing the vertices from V z we shall come to the first vertex from which we have started. Thus, there exist a cycle in G z. Further, we shall prove that G z is an elementary cycle. Let assume that G z is not an elementary cycle. Then, according to the demonstration made above in G z there exist a cycle. We shall choose an elementary cycle from G z. Let assume that the edges of this cycle are {e 1, e 2,..., e n2 }. Let z = (z(e 1 ), z(e 2 ),..., z(e n1 ), 0,..., 0) be the solution of the system (1), associated to G z. Then we can reprezent it in the following form: z = (z(e 1 ), z(e 2 ),..., z(e n2 ), z(e n2 +1),..., z(e n1 ), 0,..., 0), where the first n 2 values of z are the values of the solution on the edges of the elementary cycle which we have chosen. Let us denote θ = min z(e i ) > 0, where C 0 is the elementary chosen cycle. Further, e i C 0 we shall consider the following two solutions: z 1 = 1 1 n 2 θ (z(e 1) θ,..., z(e n2 ) θ, z(e n2 +1),..., z(e n1 ), 0,..., 0) 29

D.Lozovanu, C.Petic and z 2 = 1 (θ, θ,..., θ, 0, 0,..., 0), z 1, z 2 R m. n 2 θ }{{} n 2 We ll show that z 1 and z 2 are feasible solutions of the problem (1). It is easy to see that, considering the sum of first n 1 values of the solution z 1 n 1 n 1 we obtain: z(e i ) n 2 θ = 1 n 2 θ, because z(e i ) = 1. Applying i=1 the same procedure we obtain, that z 2 is also a feasible solution of the problem (1). Solution z, associated to G z, can be reprezented as the linear combination of two feasible solutions z 1 and z 2 : i=1 z = (1 n 2 θ)z 1 + n 2 θz 2, where n 2 θ < 1. In that case z is not an extreme point of the convex polyhedron Z, which is the set of all solutions of the problem (1). So then, G z is an elementary cycle. Theorem 1 If z is the optimal solution of the problem (1), then the cycle, generated by the set E z, is the minimum cycle mean in G, and vice versa if G z represents the minimum cycle mean in the graph G, then Z is the optimal solution of the problem (1). Proof. Let assume that z is the optimal solution of the problem (1). Since z is the solution of the system (1), and corresponds to an extreme point of the polyhedral set Z, then the graph G z, associated to z, represents an elementary cycle. Since z is the optimal solution of the problem (1), then G z is the minimum elementary cycle of G, which is the minimum cycle mean in the weighted directed graph. And vice versa, if G z is the minimum cycle mean in G, then this graph is generated by the solution z, which corresponds to an extreme point of the set Z, and it represents the minimum solution of the problem (1). The theorem is proved. 30

Algorithms for finding the minimum cycle mean... Theorem 2 Let G = (V, E) be a directed weighted graph. Then, there exist the function ε : V R and the number p, such that and ε(v) ε(u) + p c(e), e = (v, u) min {ε(u) ε(v) p + c(e)} = 0, e = (v, u), v V, u V + (v) where p = λ is the length of optimal cycle. Proof. For proving this theorem, we shall consider the dual problem of the problem (1), which can be written as: { max p ε(v) ε(u) + p c(e), e = (v, u) (2) According to the theorem of duality there exist z, and ε, p are the optimal solutions of the problem (2) then and only then, when z [ε(u) ε(v) p + c(v, u)] = 0, (v, u) E. From this it follows, that for edges e = (v, u) of minimum cycle mean min {ε(u) ε(v) p + c(v, u)} = 0, u V + (v) where (v, u) C, C is the minimum cycle mean. Further, the numbers ε(v) for v V, which do not belong to the optimal cycle will be found in the following way: ε(v) will represent the least length of the path from the vertex v to the optimal cycle. Then it is clear, that the relation min {ε(u) ε(v) p + c(v, u)} = 0, v u V + (v) V will take place. The theorem is proved. 31

D.Lozovanu, C.Petic 4 Algorithms Algorithm 1. (Find the minimum cycle mean of the weighted directed graph G) Input: A weighted directed graph G = (V, E) and the function of cost c, defined on the edge set E. Output: The minimum cycle mean of the graph G. Step 1. Form the linear programming problem (1). Step 2. Determine the optimal solution z of the problem (1). Step 3. Determine edges e E for which z (e) > 0. These edges generate the minmum cycle mean in G. Algorithm 2. (Find the minimum cycle mean of G by determining the cycle of negative weight) Input: A weighted directed graph G = (V, E) and the function of cost c, defined on the edge set E. Output: The minimum cycle mean of G. Step 1. Let S 1 = 0, S 2 = max {c(e)}. Step 2. If S 2 S 1 1 < 2 n max c(e), then c(e) c(e) S1, e E and determine the cycle of negative weight, which will be the minimum cycle mean of the graph G. If not, then go to Step 3. Step 3. Let h = S2 S 1 and p = S 1 + h. Make the substitution: 2 c(e) c(e) p. Step 4. If there exist a cycle of negative weight, then S 1 = S 1 + p and go to Step 2. If not, then S 2 = S 2 p and go to Step 2. The algorithm for determining the cycle of negative weight is given in [5]. 32

Algorithms for finding the minimum cycle mean... 5 Generalization The problem formulated above can be generalized in the following way. It is given a graph G on the edge set of which there are defined two functions c : E R and d : E R. Where c is the function of edges costs and d is a function, which associate every edge e E some other number d(e) 0. It is necessary to find such a cycle Φ, for which the aim function z(φ) = c(e) d(e) is minimum. The problem of finding the cycle Φ in the graph G with double weights, for which the relation z (Φ) is minimum, can be solved applying the algorithm of determining the cycle of negative weight in the graph G. This problem can be reduced to a linear programming problem in the following way: c(e)z(e) min z(e) z(e) = 0, e V + (v) e V (v) d(e)z(e) = 1 v V (3) z(e) 0 For this problem lemma 1 takes place. That means, that if z R m is the solution of the system (3) and corresponds to an extreme point of the set Z, then the graph G z = (V z, E z ), associated to the solution z, represents an elementary cycle. And also, for problem (3) it is true, that if z is the optimal solution of this problem, then G z represents the minimum cycle mean of the graph G. 33

D.Lozovanu, C.Petic References [1] I.V.Romanovski. Optimization of stationary control of discrete deterministic process. Cybernetics 2, 1967. [2] R.M.Karp. A characterization of the minimum cycle mean in a digraph. Discr. Math. 1978, Vol.23, No.3, p.309 311. [3] D.D.Lozovanu. Extreme-combinatorial problems and algorithms of their solving, Chişinău, Ştiinţa, 1991. [4] I.V.Romanovski. Algorithms of solving extreme problems. M.: Nauka, 1977. (Russian) [5] N.Cristofides. Graph theory. An agorithmic approach, Academic Press, New York, London, San Francisco, 1975. D.Lozovanu, C.Petic, Received December 19, 1997 Institute of mathematics, Academy of Sciences of Moldova, 5 Academiei str., Kishinev, MD-2028, Moldova 34