Rank Coloring
   HOME

TheInfoList



OR:

In
graph theory In mathematics, graph theory is the study of '' graphs'', which are mathematical structures used to model pairwise relations between objects. A graph in this context is made up of '' vertices'' (also called ''nodes'' or ''points'') which are conn ...
, the cycle rank of a
directed graph In mathematics, and more specifically in graph theory, a directed graph (or digraph) is a graph that is made up of a set of vertices connected by directed edges, often called arcs. Definition In formal terms, a directed graph is an ordered pai ...
is a digraph
connectivity Connectivity may refer to: Computing and technology * Connectivity (media), the ability of the social media to accumulate economic capital from the users connections and activities * Internet connectivity, the means by which individual terminals ...
measure proposed first by Eggan and Büchi . Intuitively, this concept measures how close a digraph is to a
directed acyclic graph In mathematics, particularly graph theory, and computer science, a directed acyclic graph (DAG) is a directed graph with no directed cycles. That is, it consists of vertices and edges (also called ''arcs''), with each edge directed from one v ...
(DAG), in the sense that a DAG has cycle rank zero, while a complete digraph of
order Order, ORDER or Orders may refer to: * Categorization, the process in which ideas and objects are recognized, differentiated, and understood * Heterarchy, a system of organization wherein the elements have the potential to be ranked a number of ...
''n'' with a
self-loop In graph theory, a loop (also called a self-loop or a ''buckle'') is an edge that connects a vertex to itself. A simple graph contains no loops. Depending on the context, a graph or a multigraph may be defined so as to either allow or disallow t ...
at each vertex has cycle rank ''n''. The cycle rank of a directed graph is closely related to the
tree-depth In graph theory, the tree-depth of a connected undirected graph G is a numerical invariant of G, the minimum height of a Trémaux tree for a supergraph of G. This invariant and its close relatives have gone under many different names in the l ...
of an
undirected graph In discrete mathematics, and more specifically in graph theory, a graph is a structure amounting to a set of objects in which some pairs of the objects are in some sense "related". The objects correspond to mathematical abstractions called '' v ...
and to the
star height In theoretical computer science, more precisely in the theory of formal languages, the star height is a measure for the structural complexity of regular expressions and regular languages. The star height of a regular ''expression'' equals the maxim ...
of a
regular language In theoretical computer science and formal language theory, a regular language (also called a rational language) is a formal language that can be defined by a regular expression, in the strict sense in theoretical computer science (as opposed to ...
. It has also found use in
sparse matrix In numerical analysis and scientific computing, a sparse matrix or sparse array is a matrix in which most of the elements are zero. There is no strict definition regarding the proportion of zero-value elements for a matrix to qualify as sparse b ...
computations (see ) and
logic Logic is the study of correct reasoning. It includes both formal and informal logic. Formal logic is the science of deductively valid inferences or of logical truths. It is a formal science investigating how conclusions follow from premis ...
.


Definition

The cycle rank ''r''(''G'') of a digraph is inductively defined as follows: * If ''G'' is acyclic, then . * If ''G'' is
strongly connected In the mathematical theory of directed graphs, a graph is said to be strongly connected if every vertex is reachable from every other vertex. The strongly connected components of an arbitrary directed graph form a partition into subgraphs that ...
and ''E'' is nonempty, then ::r(G) = 1 + \min_ r(G-v),\, where is the digraph resulting from deletion of vertex and all edges beginning or ending at . * If ''G'' is not strongly connected, then ''r''(''G'') is equal to the maximum cycle rank among all strongly connected components of ''G''. The
tree-depth In graph theory, the tree-depth of a connected undirected graph G is a numerical invariant of G, the minimum height of a Trémaux tree for a supergraph of G. This invariant and its close relatives have gone under many different names in the l ...
of an undirected graph has a very similar definition, using undirected connectivity and connected components in place of strong connectivity and strongly connected components.


History

Cycle rank was introduced by in the context of
star height In theoretical computer science, more precisely in the theory of formal languages, the star height is a measure for the structural complexity of regular expressions and regular languages. The star height of a regular ''expression'' equals the maxim ...
of
regular language In theoretical computer science and formal language theory, a regular language (also called a rational language) is a formal language that can be defined by a regular expression, in the strict sense in theoretical computer science (as opposed to ...
s. It was rediscovered by as a generalization of undirected
tree-depth In graph theory, the tree-depth of a connected undirected graph G is a numerical invariant of G, the minimum height of a Trémaux tree for a supergraph of G. This invariant and its close relatives have gone under many different names in the l ...
, which had been developed beginning in the 1980s and applied to
sparse matrix In numerical analysis and scientific computing, a sparse matrix or sparse array is a matrix in which most of the elements are zero. There is no strict definition regarding the proportion of zero-value elements for a matrix to qualify as sparse b ...
computations .


Examples

The cycle rank of a directed acyclic graph is 0, while a complete digraph of order ''n'' with a
self-loop In graph theory, a loop (also called a self-loop or a ''buckle'') is an edge that connects a vertex to itself. A simple graph contains no loops. Depending on the context, a graph or a multigraph may be defined so as to either allow or disallow t ...
at each vertex has cycle rank ''n''. Apart from these, the cycle rank of a few other digraphs is known: the undirected path P_n of order ''n'', which possesses a symmetric edge relation and no self-loops, has cycle rank \lfloor \log n\rfloor . For the directed (m\times n)-torus T_, i.e., the
cartesian product In mathematics, specifically set theory, the Cartesian product of two sets ''A'' and ''B'', denoted ''A''×''B'', is the set of all ordered pairs where ''a'' is in ''A'' and ''b'' is in ''B''. In terms of set-builder notation, that is : A\ ...
of two directed circuits of lengths ''m'' and ''n'', we have r(T_) = n and r(T_) = \min\ + 1 for ''m ≠ n'' (, ).


Computing the cycle rank

Computing the cycle rank is computationally hard: proves that the corresponding decision problem is
NP-complete In computational complexity theory, a problem is NP-complete when: # it is a problem for which the correctness of each solution can be verified quickly (namely, in polynomial time) and a brute-force search algorithm can find a solution by tryin ...
, even for sparse digraphs of maximum outdegree at most 2. On the positive side, the problem is solvable in time O(1.9129^n) on digraphs of maximum
outdegree In mathematics, and more specifically in graph theory, a directed graph (or digraph) is a graph that is made up of a set of vertices connected by directed edges, often called arcs. Definition In formal terms, a directed graph is an ordered pai ...
at most 2, and in time O^*(2^n) on general digraphs. There is an
approximation algorithm In computer science and operations research, approximation algorithms are efficient algorithms that find approximate solutions to optimization problems (in particular NP-hard problems) with provable guarantees on the distance of the returned solu ...
with approximation ratio O((\log n)^\frac32).


Applications


Star height of regular languages

The first application of cycle rank was in
formal language theory In logic, mathematics, computer science, and linguistics, a formal language consists of words whose letters are taken from an alphabet and are well-formed according to a specific set of rules. The alphabet of a formal language consists of sy ...
, for studying the
star height In theoretical computer science, more precisely in the theory of formal languages, the star height is a measure for the structural complexity of regular expressions and regular languages. The star height of a regular ''expression'' equals the maxim ...
of
regular languages In theoretical computer science and formal language theory, a regular language (also called a rational language) is a formal language that can be defined by a regular expression, in the strict sense in theoretical computer science (as opposed ...
. established a relation between the theories of regular expressions, finite automata, and of
directed graph In mathematics, and more specifically in graph theory, a directed graph (or digraph) is a graph that is made up of a set of vertices connected by directed edges, often called arcs. Definition In formal terms, a directed graph is an ordered pai ...
s. In subsequent years, this relation became known as ''Eggan's theorem'', cf. . In automata theory, a nondeterministic finite automaton with ε-moves (ε-NFA) is defined as a
5-tuple In mathematics, a tuple is a finite ordered list (sequence) of elements. An -tuple is a sequence (or ordered list) of elements, where is a non-negative integer. There is only one 0-tuple, referred to as ''the empty tuple''. An -tuple is defi ...
, (''Q'', Σ, ''δ'', ''q0'', ''F''), consisting of * a finite set of states ''Q'' * a finite set of
input symbol In formal language theory, an alphabet is a non-empty set of symbols/glyphs, typically thought of as representing letters, characters, or digits but among other possibilities the "symbols" could also be a set of phonemes (sound units). Alphabets in ...
s Σ * a set of labeled edges ''δ'', referred to as ''transition relation'': ''Q'' × (Σ ∪) × ''Q''. Here ε denotes the
empty word In formal language theory, the empty string, or empty word, is the unique string of length zero. Formal theory Formally, a string is a finite, ordered sequence of characters such as letters, digits or spaces. The empty string is the special case ...
. * an ''initial'' state ''q''0 ∈ ''Q'' * a set of states ''F'' distinguished as ''accepting states'' ''F'' ⊆ ''Q''. A word ''w'' ∈ Σ* is accepted by the ε-NFA if there exists a
directed path In graph theory, a path in a graph is a finite or infinite sequence of edges which joins a sequence of vertices which, by most definitions, are all distinct (and since the vertices are distinct, so are the edges). A directed path (sometimes ca ...
from the initial state ''q''0 to some final state in ''F'' using edges from ''δ'', such that the
concatenation In formal language theory and computer programming, string concatenation is the operation of joining character strings end-to-end. For example, the concatenation of "snow" and "ball" is "snowball". In certain formalisations of concatenat ...
of all labels visited along the path yields the word ''w''. The set of all words over Σ* accepted by the automaton is the ''language'' accepted by the automaton ''A''. When speaking of digraph properties of a nondeterministic finite automaton ''A'' with state set ''Q'', we naturally address the digraph with vertex set ''Q'' induced by its transition relation. Now the theorem is stated as follows. :Eggan's Theorem: The star height of a regular language ''L'' equals the minimum cycle rank among all nondeterministic finite automata with ε-moves accepting ''L''. Proofs of this theorem are given by , and more recently by .


Cholesky factorization in sparse matrix computations

Another application of this concept lies in
sparse matrix In numerical analysis and scientific computing, a sparse matrix or sparse array is a matrix in which most of the elements are zero. There is no strict definition regarding the proportion of zero-value elements for a matrix to qualify as sparse b ...
computations, namely for using
nested dissection In numerical analysis, nested dissection is a divide and conquer heuristic for the solution of sparse symmetric systems of linear equations based on graph partitioning. Nested dissection was introduced by ; the name was suggested by Garrett B ...
to compute the
Cholesky factorization In linear algebra, the Cholesky decomposition or Cholesky factorization (pronounced ) is a decomposition of a Hermitian, positive-definite matrix into the product of a lower triangular matrix and its conjugate transpose, which is useful for effici ...
of a (symmetric) matrix in parallel. A given sparse (n\times n)-matrix ''M'' may be interpreted as the
adjacency matrix In graph theory and computer science, an adjacency matrix is a square matrix used to represent a finite graph. The elements of the matrix indicate whether pairs of vertices are adjacent or not in the graph. In the special case of a finite simple ...
of some symmetric digraph ''G'' on ''n'' vertices, in a way such that the non-zero entries of the matrix are in one-to-one correspondence with the edges of ''G''. If the cycle rank of the digraph ''G'' is at most ''k'', then the Cholesky factorization of ''M'' can be computed in at most ''k'' steps on a parallel computer with n processors .


See also

*
Circuit rank In graph theory, a branch of mathematics, the circuit rank, cyclomatic number, cycle rank, or nullity of an undirected graph is the minimum number of edges that must be removed from the graph to break all its cycle (graph theory), cycles, making ...


References

*. *. *. *. *. *. *. *. * *. {{refend Graph connectivity Graph invariants