On Algebraic Expressions of Generalized Fibonacci Graphs

Similar documents
arxiv: v1 [cs.ds] 12 May 2013

Acyclic Subgraphs of Planar Digraphs

A Reduction of Conway s Thrackle Conjecture

Read-Once Functions (Revisited) and the Readability Number of a Boolean Function. Martin Charles Golumbic

The Encoding Complexity of Network Coding

Vertex 3-colorability of claw-free graphs

A GRAPH FROM THE VIEWPOINT OF ALGEBRAIC TOPOLOGY

Odd Harmonious Labeling of Some Graphs

Complexity Results on Graphs with Few Cliques

2386 IEEE TRANSACTIONS ON INFORMATION THEORY, VOL. 52, NO. 6, JUNE 2006

CS473-Algorithms I. Lecture 13-A. Graphs. Cevdet Aykanat - Bilkent University Computer Engineering Department

Enumeration of Full Graphs: Onset of the Asymptotic Region. Department of Mathematics. Massachusetts Institute of Technology. Cambridge, MA 02139

Definition For vertices u, v V (G), the distance from u to v, denoted d(u, v), in G is the length of a shortest u, v-path. 1

These notes present some properties of chordal graphs, a set of undirected graphs that are important for undirected graphical models.

Connectivity check in 3-connected planar graphs with obstacles

COLORING EDGES AND VERTICES OF GRAPHS WITHOUT SHORT OR LONG CYCLES

On the Balanced Case of the Brualdi-Shen Conjecture on 4-Cycle Decompositions of Eulerian Bipartite Tournaments

Lecture 22 Tuesday, April 10

Counting the Number of Eulerian Orientations

Minimum Tree Spanner Problem for Butterfly and Benes Networks

Lecture 9 - Matrix Multiplication Equivalences and Spectral Graph Theory 1

UML CS Algorithms Qualifying Exam Spring, 2004 ALGORITHMS QUALIFYING EXAM

Speed-up of Parallel Processing of Divisible Loads on k-dimensional Meshes and Tori

Reachability in K 3,3 -free and K 5 -free Graphs is in Unambiguous Logspace

Acyclic orientations of graphs

Reverse Polish notation in constructing the algorithm for polygon triangulation

An Optimal Algorithm for the Indirect Covering Subtree Problem

Acyclic Colorings of Graph Subdivisions

DHANALAKSHMI COLLEGE OF ENGINEERING, CHENNAI

Minimal Dominating Sets in Graphs: Enumeration, Combinatorial Bounds and Graph Classes

Generalized Pebbling Number

Thomas H. Cormen Charles E. Leiserson Ronald L. Rivest. Introduction to Algorithms

CMPSCI 311: Introduction to Algorithms Practice Final Exam

Characterizing Graphs (3) Characterizing Graphs (1) Characterizing Graphs (2) Characterizing Graphs (4)

Provably Efficient Non-Preemptive Task Scheduling with Cilk

arxiv: v2 [cs.dm] 30 May 2008

Introduction to Algorithms Third Edition

On the Max Coloring Problem

On Sequential Topogenic Graphs

Packing Edge-Disjoint Triangles in Given Graphs

Generalized Interlinked Cycle Cover for Index Coding

The competition numbers of complete tripartite graphs

An Effective Upperbound on Treewidth Using Partial Fill-in of Separators

Contracting Chordal Graphs and Bipartite Graphs to Paths and Trees

Heuristic Algorithms for Multiconstrained Quality-of-Service Routing

Advanced algorithms. topological ordering, minimum spanning tree, Union-Find problem. Jiří Vyskočil, Radek Mařík 2012

1 Digraphs. Definition 1

As an example of possible application we compute these invariants for connectome graphs which are studied in neuroscience.

Interleaving Schemes on Circulant Graphs with Two Offsets

MA651 Topology. Lecture 4. Topological spaces 2

The strong chromatic number of a graph

Minimum Cost Edge Disjoint Paths

Discrete Applied Mathematics

Negative Numbers in Combinatorics: Geometrical and Algebraic Perspectives

Number Theory and Graph Theory

COMP 251 Winter 2017 Online quizzes with answers

Flexible Coloring. Xiaozhou Li a, Atri Rudra b, Ram Swaminathan a. Abstract

[8] that this cannot happen on the projective plane (cf. also [2]) and the results of Robertson, Seymour, and Thomas [5] on linkless embeddings of gra

Note. On the Thickness and Arboricity of a Graph

Discrete Mathematics

CPS 102: Discrete Mathematics. Quiz 3 Date: Wednesday November 30, Instructor: Bruce Maggs NAME: Prob # Score. Total 60

1 Matchings in Graphs

THE INDEPENDENCE NUMBER PROJECT:

A Connection between Network Coding and. Convolutional Codes

PACKING DIGRAPHS WITH DIRECTED CLOSED TRAILS

Generating edge covers of path graphs

Fundamental Properties of Graphs

Orthogonal art galleries with holes: a coloring proof of Aggarwal s Theorem

Equivalence of the filament and overlap graphs of subtrees of limited trees

THE INSULATION SEQUENCE OF A GRAPH

Minimal dominating sets in graph classes: combinatorial bounds and enumeration

Fundamental mathematical techniques reviewed: Mathematical induction Recursion. Typically taught in courses such as Calculus and Discrete Mathematics.

A note on the number of edges guaranteeing a C 4 in Eulerian bipartite digraphs

Improved algorithms for constructing fault-tolerant spanners

Chapter 9 Graph Algorithms

Graph Representations and Traversal

Coloring edges and vertices of graphs without short or long cycles

Some Upper Bounds for Signed Star Domination Number of Graphs. S. Akbari, A. Norouzi-Fard, A. Rezaei, R. Rotabi, S. Sabour.

CIS 121 Data Structures and Algorithms Midterm 3 Review Solution Sketches Fall 2018

The Geometry of Carpentry and Joinery

Square Difference Prime Labeling for Some Snake Graphs

Vertex Magic Total Labelings of Complete Graphs

Recognition and Orientation Algorithms for P 4 -comparability Graphs

The Fibonacci hypercube

On the Rigidity of Ramanujan Graphs

Layer-Based Scheduling Algorithms for Multiprocessor-Tasks with Precedence Constraints

An upper bound for the chromatic number of line graphs

A Transformational Characterization of Markov Equivalence for Directed Maximal Ancestral Graphs

Some Approximation Algorithms for Constructing Combinatorial Structures Fixed in Networks

11/22/2016. Chapter 9 Graph Algorithms. Introduction. Definitions. Definitions. Definitions. Definitions

On the Number of Linear Extensions of Graphs

Chapter 9 Graph Algorithms

The NP-Completeness of Some Edge-Partition Problems

Finding a winning strategy in variations of Kayles

Triangle Graphs and Simple Trapezoid Graphs

Bottleneck Steiner Tree with Bounded Number of Steiner Vertices

Star coloring planar graphs from small lists

Solving Linear Recurrence Relations (8.2)

EDGE MAXIMAL GRAPHS CONTAINING NO SPECIFIC WHEELS. Jordan Journal of Mathematics and Statistics (JJMS) 8(2), 2015, pp I.

Parameterized graph separation problems

Transcription:

On Algebraic Expressions of Generalized Fibonacci Graphs MARK KORENBLIT and VADIM E LEVIT Department of Computer Science Holon Academic Institute of Technology 5 Golomb Str, PO Box 305, Holon 580 ISRAEL {korenblit, levitv}@haitacil Abstract: - The paper investigates relationship between algebraic expressions and generalized Fibonacci graphs We propose an algorithm for constructing expressions of generalized Fibonacci graphs On every step it divides the graph into two parts of the same size We show that this algorithm applied to an n-vertex log ( k + ) generalized Fibonacci graph of degree k generates an expression of O ( n ) k length When k equals, O n length the algorithm generates expressions of Key-Words: - complexity of an algebraic expression, generalized Fibonacci graph, optimal representation of the algebraic expression, st-dag, st-dag expression, subexpression, subgraph Introduction A graph G=(V,E) consists of a vertex set V and an edge set E, where each edge corresponds to a pair (v,w) of vertices If the edges are ordered pairs of vertices (ie, the pair (v,w) is different from the pair (v,w), then we call the graph directed or digraph; otherwise, we call it undirected A path from vertex v 0 to vertex v j in a graph G=(V,E) is a sequence of its vertices v 0, v, v,, v j, v j, such that (v i,v i ) E for i j A graph G =(V,E ) is a subgraph of G=(V,E) if V V and E E A graph G is homeomorphic to a graph G (homeomorph of G ) if G can be obtained by subdividing edges of G via adding new vertices A two-terminal directed acyclic graph (st-dag) has only one source s and only one sink t In an st-dag, every vertex lies on some path from the source to the sink An st-dag that has only one path between the source and the sink is known as a path graph A complete graph is an undirected graph that has an edge between any two vertices An algebraic expression is called an st-dag expression if it is algebraically equivalent to the sum of products corresponding to all possible paths between the source and the sink of the st-dag [] This expression consists of terms (edge labels), and the operators + (disjoint union) and (concatenation, also denoted by juxtaposition when no ambiguity arises) An st-dag expression of an st-dag G will be further denoted by Ex(G) We define the complexity of an algebraic expression in two ways The complexity of an algebraic expression is (i) a total number of terms in the expression including all their appearances (the first complexity characteristic) or (ii) a number of plus operators in the expression (the second complexity characteristic) The first and the second complexity characteristics of an st-dag expression are denoted by T(n) and P(n) respectively, where n is the number of vertices of the graph (the size of the graph) An equivalent expression with the minimum complexity is called an optimal representation of the algebraic expression A series-parallel (SP) graph is defined recursively as follows: (i) A single edge (u,v) is a series-parallel graph with source u and sink v (ii) If G and G are series-parallel graphs, so is the graph obtained by either of the following operations: (a) Parallel composition: identify the source of G with the source of G and the sink of G with the sink of G (b) Series composition: identify the sink of G with the source of G As shown in [] and [7], a SP graph expression has a representation in which each term appears only once We proved in [7] that this representation is an optimal representation of the SP graph expression from the first complexity characteristic point of view For example, the expression of the SP graph presented in Fig is abd+abe+acd+ace+fe+fd a f b c Fig A series-parallel graph d e

b b b i b i+ b n a a 3 a a i a i+ a i+ a n 3 i i+ i+ n n Fig An n-vertex Fibonacci graph This expression can be reduced to (a(b+c)+f)(d+e), where each term appears once The notion of a Fibonacci graph (FG) was introduced in [6] A Fibonacci graph has vertices {,, 3,, n} and edges {(v,v+) v=,,,n } U {(v,v+) v=,,,n } That is, in an n-vertex FG (n ), two edges leave each of its n vertices except the two final vertices (n and n) Two edges leaving the v vertex ( v n ) enter the v+ and the v+ vertices The single edge leaving the n vertex enters the n vertex No edge leaves the n vertex This graph is illustrated in Fig A generalized Fibonacci graph [6] of degree k (FG k ) has vertices {,, 3,, n} and edges FG a {(v,w) v < w n and w v k} FG a a a 3 a 4 a 5 3 4 5 6 b b b 3 b 4 a a 3 a 4 3 4 5 FG 3 b b b 3 b 4 a c c a a 3 a 4 3 4 5 c 3 Fig3 The hierarchy of generalized 6-vertex Fibonacci graphs a 5 a 5 6 6 That is, in an n-vertex FG k (n k), k edges leave each of its n vertices except the k final vertices (n k+, n k+,, n, n); k edges leaving the v vertex ( v n k) enter the v+, the v+,, the v+k vertices respectively; k edges leaving the n k+ vertex enter the n k+, the n k+3,, the n vertices respectively; k edges leaving the n k+ vertex enter the n k+3, the n k+4,, the n vertices respectively, etc; the single edge leaving the n vertex enters the n vertex; no edge leaves the n vertex Fig 3 presents the hierarchy of 6-vertex generalized Fibonacci graphs FG is a path graph (it is a SP graph) The Fibonacci graph defined above is FG The next graph is FG 3 FG n is the last nontrivial graph in the hierarchy of n-vertex generalized Fibonacci graphs (its undirected version is a complete graph) Hence, for n = 6 it is FG 5 (this graph is not shown in Fig 3) As shown in [6], an n-vertex FG k has k( k +) m = kn edges It is proved in [3] that an st-dag is SP if and only if it does not contain a subgraph homeomorphic to the forbidden subgraph enclosed between vertices and 4 of an FG from Fig Thus, generalized Fibonacci graphs (k ) are of interest as ''through'' non-sp st-dags Mutual relations between graphs and algebraic expressions are discussed in [], [7], [8], [9], [0], [], [], [3], and other works Specifically, [0], [], and [3] consider the correspondence between SP graphs and read-once functions A Boolean function is defined as read-once if it may be computed by some formula in which no variable occurs more than once (read-once formula) On the other hand, a SP graph expression can be reduced to the representation in which each term appears only once Hence, such a representation of a SP graph expression can be interpreted as a read-once formula (Boolean operations are replaced by arithmetic ones) An expression of a homeomorph of the forbidden subgraph belonging to any non-sp st-dag has no representation in which each term appears once For example, consider the subgraph enclosed between vertices and 4 of an FG from Fig Possible

optimal representations of its expression are a (a a 3 +b )+b a 3 or (a a +b )a 3 +a b For this reason, an expression of a non-sp st-dag can not be represented as a read-once formula However, for arbitrary functions, which are not read-once, generating the optimum factored form is NPcomplete [4] Some heuristic algorithms developed in order to obtain good factored forms are described in [4], [5], and other works Therefore, generating an optimal representation (from both complexity characteristics point of view) for a non-sp st-dag expression is a highly complex problem In [9] we presented a heuristic algorithm based on the decomposition method built to simplify the expressions of FG While [7] is a substantially improved version of [9], in [9], [7] we show that complexity characteristics of an n-vertex FG can be estimated as O ( n ) Our intent in this paper is to simplify the expressions of FG k for an arbitrary k The Decomposition Method for Constructing Expressions of Generalized Fibonacci Graphs of Degree In this section we sketch some of the results received in [9], [7] Consider the n-vertex FG presented in Fig Denote by E(p,q) a subexpression related to its subgraph (which is an FG too) having a source p ( p n) and a sink q ( q n, q p) If q p, then we choose any decomposition vertex i (p + i q ) in a subgraph, and, in effect, split it at this vertex (Fig 4) Otherwise, we assign final values to E(p,q) As follows from the FG structure any path from vertex p to vertex q passes through vertex i or avoids it via edge b i- Therefore, E(p,q) is generated by the following recursive procedure (decomposition procedure): case q = p: E(p,q) case q = p + : E(p,q) a p 3 case q p + : choice(p,q,i) 4 E(p,q) E(p,i)E(i,q)+ E(p,i )b i- E(i+,q) Lines and contain conditions of exit from the recursion The special case when a subgraph consists of a single vertex is considered in line It is clear that such a subgraph can be connected to other subgraphs only serially For this reason, it is accepted that its subexpression is, so that when it is multiplied by another subexpression, the final result is not influenced Line describes a subgraph consisting of a single edge The corresponding subexpression consists of a single term equal to the edge label The common case is processed in lines 3 and 4 The procedure choice(p,q,i) in line 3 chooses an arbitrary decomposition vertex i on the interval (p,q) so that p < i < q A current subgraph is decomposed into four new subgraphs in line 4 Subgraphs described by subexpressions E(p,i) and E(i,q) include all paths from vertex p to vertex q passing through vertex i Subgraphs described by subexpressions E(p,i ) and E(i+,q) include all paths from vertex p to vertex q passing via edge b i- E(,n) is the expression of the initial n-vertex FG (Ex(FG )) Hence, the decomposition procedure is initially invoked by substituting parameters and n instead of p and q, respectively The following theorem that determines an optimal location of the decomposition vertex i in an arbitrary interval (p,q) of a Fibonacci graph is proved in [7] Theorem The representation with a minimum total number of terms among all possible representations of Ex(FG ) derived by the decomposition method is achieved if and only if on q p + each recursive step i is equal to for odd q p + q p + 3 q p+ and to or for even q p+, ie, when i is a middle vertex of the interval (p,q) This decomposition method is called optimal It can be shown that the optimal decomposition method also brings about the minimum to the number of plus operators of Ex(FG ) Thus, the total number of terms in the n-vertex FG expression derived by the optimal decomposition method is defined recursively as follows: b p b i b q a p a i p p+ i i i+ q q Fig4 Decomposition of a Fibonacci subgraph at vertex i 3 a i a q

T () = 0, T () = n = T + + + T n n T + +, 3 T n The number of plus operators in this expression is defined similarly: and P() = 0, P() = 0 n P( n) = P + + + P For large n n n P + +, 3 P n 4T + P ( n) 4P + By the master theorem [] the recurrence as n = αt + f ( n), β n where α and β > are constants, and is β n interpreted as either or β asymptotically as follows: n, can be bounded β = Θ n log α ε if β ( n) = O n α log β f for some constant ε > 0 Θ For the 8-vertex FG, the possible expression derived by the optimal decomposition method is Therefore, T(n) and P(n) are ( n ) (a (a a 3 +b )+b a 3 )((a 4 a 5 +b 4 )(a 6 a 7 +b 6 )+a 4 b 5 a 7 )+ (a a +b )b 3 (a 5 (a 6 a 7 +b 6 )+b 5 a 7 ) It contains 5 terms and 9 plus operators We conjecture that the optimal decomposition method provides an optimal representation (for both our complexity characteristics) of an algebraic expression of a Fibonacci graph 3 The Decomposition Method for Constructing Expressions of Generalized Fibonacci Graphs of Arbitrary Degrees We intend to generate an algebraic expression for FG k and apply the decomposition method with that end in view The method is the decomposition method described in the previous section extended for a generalized Fibonacci graph We consider the n-vertex FG k (k ) and, as in section, denote by E(p,q) a subexpression related to its subgraph (which is FG k too) having a source p ( p n) and a sink q ( q n, q p) If q p (k ), then we choose any decomposition vertex i (p + k i q k + ) in a subgraph and split it at this vertex Otherwise, we assign final values to E(p,q) Any path from vertex p to vertex q passes through vertex i or avoids it via connecting edges (labeled b, c, d, with indexes) For example, as follows from the FG 3 structure (Fig 5) any path from vertex p to vertex q passes through decomposition vertex i or avoids it via connecting edges: b i-, c i- or c i- Therefore, E(p,q) can be generated for FG 3 by the following c p c i c i c q 3 b p b i b q a p a i p p+ i i i+ q q Fig5 Decomposition of a generalized Fibonacci subgraph of degree 3 at vertex i a i a q 4

decomposition procedure: case q = p: E(p,q) case q = p + : E(p,q) a p 3 case q = p + : E(p,q) a p a p+ +b p 4 case q = p + 3: E(p,q) (a p a p+ +b p )a p+ + a p b p+ +c p 5 case q p + 4: choice(p,q,i) 6 E(p,q) E(p,i)E(i,q)+ E(p,i )b i- E(i+,q)+ E(p,i )c i- E(i+,q)+ E(p,i )c i- E(i+,q) For an arbitrary k (k ), the number of connecting edges increases as an arithmetical progression from level to level (b-edges are located on the second level, c-edges are located on the third one, etc) Hence, the number of subgraphs revealed after the decomposition is equal to k + y= y = k k + The number of connecting edges and the number of additional plus operators between parts of the derived expression are equal to k y= k y = ( k ) We will choose the decomposition vertex i in the middle of a decomposed subgraph on each recursive step (we proceed from the supposition that it is the best way not only for k = but for any k and, also, call this decomposition method optimal) In such a case, for an n-vertex FG k, the total number of terms T(n) in the expression Ex(FG k ) derived by the optimal decomposition method can be estimated as follows: T n k k + T + k k Analogously, for an n-vertex FG k, the number of plus operators P(n) in the expression Ex(FG k ) derived by the optimal decomposition method can be estimated as follows: P k k n k k + P + Hence, by the master theorem and log ( k k + n = O n ) T () log ( k k + n = O n ) P () Specifically, for k =, when our graph is a path graph, () and () give O(n) For k = we have a O n complexity Fibonacci graph, and receive 3 Substituting 3 for k in () and () gives ( n ) O Further increase of k leads to slower increase of the order of complexity characteristics For instance, for log 4 O n, ie, less than k = 4, T(n) and P(n) are 4 O ( n ) 4 Conclusion and Future Work The paper investigates relationship between algebraic expressions and generalized Fibonacci graphs The optimal decomposition method applied to an n-vertex generalized Fibonacci graph of degree log ( k k + ) k (FG k ) generates an expression of O ( n ) complexity This result is a generalization of a previous result received for an n-vertex Fibonacci graph (FG ), where complexity characteristics are estimated as O ( n ) We conjecture that splitting of FG k in the middle of a decomposed subgraph on each recursive step yields the shortest expression possible (as in Theorem, where k equals two) Our experimental calculations show that the order of complexity characteristics of an n-vertex complete st-dag (FG n ) does not exceed n log n Based on the fact that any n-vertex st-dag (a two-terminal directed acyclic graph) is a subgraph of an n-vertex complete st-dag we are going to estimate the complexity of the shortest expression for any st-dag References: [] W W Bein, J Kamburowski, and M F M Stallmann, Optimal Reduction of Two-Terminal Directed Acyclic Graphs, SIAM Journal of Computing, Vol, No 6, 99, pp -9 [] T H Cormen, C E Leiseron, and R L Rivest, Introduction to Algorithms, The MIT Press, Cambridge, Massachusetts, 994 5

[3] R J Duffin, Topology of Series-Parallel Networks, Journal of Mathematical Analysis and Applications 0, 965, pp 303-38 [4] M C Golumbic and A Mintz, Factoring Logic Functions Using Graph Partitioning, Proc IEEE/ACM Int Conf Computer Aided Design, November 999, San Jose, California, USA, pp 95-98 [5] M C Golumbic, A Mintz, and U Rotics, Factoring and Recognition of Read-Once Functions using Cographs and Normality, Proc 38th Design Automation Conference, Las Vegas, Nevada, USA, June 00, pp 09-4 [6] M C Golumbic and Y Perl, Generalized Fibonacci Maximum Path Graphs, Discrete Mathematics 8, 979, pp 37-45 [7] M Korenblit and V E Levit, On Algebraic Expressions of Series-Parallel and Fibonacci Graphs, in: Discrete Mathematics and Theoretical Computer Science, Proc 4th Int Conf, DMTCS 003, LNCS 73, 003, pp 5-4 [8] V E Levit and M Korenblit, Symbolic PERT and its Generalization, in: Intelligent Scheduling of Robots and Flexible Manufacturing Systems, Proc Int Workshop held at the Center for Technological Education Holon, Holon, Israel, July 995, pp 65-80 [9] V E Levit and M Korenblit, A Symbolic Approach to Scheduling of Robotics Lines, in: Intelligent Scheduling of Robots and Flexible Manufacturing Systems, The Center for Technological Education Holon, Holon, Israel, 996, pp 3-5 [0] D Mundici, Functions Computed by Monotone Boolean Formulas with no Repeated Variables, Theoretical Computer Science 66, 989, pp 3-4 [] D Mundici, Solution of Rota s Problem on the Order of Series-Parallel Networks, Advances in Applied Mathematics, 99, pp 455-463 [] V Naumann, Measuring the Distance to Series-Parallelity by Path Expressions, in: Graph-Theoretic Concepts in Computer Science, Proc 0th Int Workshop, WG 94, LNCS 903, 994, pp 69-8 [3] P Savicky and A R Woods, The Number of Boolean Functions Computed by Formulas of a Given Size, Random Structures and Algorithms 3, 998, pp 349-38 [4] A R R Wang, Algorithms for Multilevel Logic Optimization, PhD Thesis, University of California, Berkeley, 989 6