In
computational complexity theory
In theoretical computer science and mathematics, computational complexity theory focuses on classifying computational problems according to their resource usage, and relating these classes to each other. A computational problem is a task solved ...
, SL (Symmetric Logspace or Sym-L) is the
complexity class
In computational complexity theory, a complexity class is a set of computational problems of related resource-based complexity. The two most commonly analyzed resources are time and memory.
In general, a complexity class is defined in terms ...
of problems
log-space reducible
In computational complexity theory, a log-space reduction is a reduction computable by a deterministic Turing machine using logarithmic space. Conceptually, this means it can keep a constant number of pointers into the input, along with a logari ...
to USTCON (''undirected s-t connectivity''), which is the problem of determining whether there exists a path between two vertices in 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 ...
, otherwise described as the problem of determining whether two vertices are in the same
connected component. This problem is also called the undirected reachability problem. It does not matter whether
many-one reducibility or
Turing reducibility
In computability theory, a Turing reduction from a decision problem A to a decision problem B is an oracle machine which decides problem A given an oracle for B (Rogers 1967, Soare 1987). It can be understood as an algorithm that could be used to ...
is used. Although originally described in terms of
symmetric Turing machines, that equivalent formulation is very complex, and the reducibility definition is what is used in practice.
USTCON is a special case of
STCON
In computer science, st-connectivity or STCON is a decision problem asking, for vertices ''s'' and ''t'' in a directed graph, if ''t'' is reachable from ''s''.
Formally, the decision problem is given by
:.
Complexity
On a sequential compute ...
(''directed reachability''), the problem of determining whether a directed path between two vertices in 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 ...
exists, which is complete for
NL. Because USTCON is SL-complete, most advances that impact USTCON have also impacted SL. Thus they are connected, and discussed together.
In October 2004
Omer Reingold showed that SL =
L.
Origin
SL was first defined in 1982 by
Harry R. Lewis
Lewis has been honored for his "particularly distinguished contributions to undergraduate teaching"; his students have included future entrepreneurs Bill Gates and Mark Zuckerberg, and numerous future faculty members at Harvard and other scho ...
and
Christos Papadimitriou, who were looking for a class in which to place USTCON, which until this time could, at best, be placed only in
NL, despite seeming not to require nondeterminism. They defined the
symmetric Turing machine, used it to define SL, showed that USTCON was complete for SL, and proved that
:
where
L is the more well-known class of problems solvable by an ordinary
deterministic Turing machine
A Turing machine is a mathematical model of computation describing an abstract machine that manipulates symbols on a strip of tape according to a table of rules. Despite the model's simplicity, it is capable of implementing any computer algor ...
in logarithmic space, and NL is the class of problems solvable by
nondeterministic Turing machines
In theoretical computer science, a nondeterministic Turing machine (NTM) is a theoretical model of computation whose governing rules specify more than one possible action when in some given situations. That is, an NTM's next state is ''not'' comp ...
in logarithmic space. The result of Reingold, discussed later, shows that in fact, when limited to log space, the symmetric Turing machine is equivalent in power to the deterministic Turing machine.
Complete problems
By definition, USTCON is complete for SL (all problems in SL reduce to it, including itself). Many more interesting complete problems were found, most by reducing directly or indirectly from USTCON, and a compendium of them was made by Àlvarez and Greenlaw. Many of the problems are
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 ...
problems on undirected graphs. Some of the simplest and most important SL-complete problems they describe include:
* USTCON
* Simulation of symmetric Turing machines: does an STM accept a given input in a certain space, given in unary?
* Vertex-disjoint paths: are there ''k'' paths between two vertices, sharing vertices only at the endpoints? (a generalization of USTCON, equivalent to asking whether a graph is ''k''-connected)
* Is a given graph a
bipartite graph
In the mathematical field of graph theory, a bipartite graph (or bigraph) is a graph whose vertices can be divided into two disjoint and independent sets U and V, that is every edge connects a vertex in U to one in V. Vertex sets U and V ar ...
, or equivalently, does it have a
graph coloring
In graph theory, graph coloring is a special case of graph labeling; it is an assignment of labels traditionally called "colors" to elements of a graph subject to certain constraints. In its simplest form, it is a way of coloring the vertices ...
using 2 colors?
* Do two undirected graphs have the same number of
connected components?
* Does a graph have an even number of connected components?
* Given a graph, is there a cycle containing a given edge?
* Do the
spanning forests of two graphs have the same number of edges?
* Given a graph where all its edges have distinct weights, is a given edge in the
minimum weight spanning forest
A minimum spanning tree (MST) or minimum weight spanning tree is a subset of the edges of a connected, edge-weighted undirected graph that connects all the vertices together, without any cycles and with the minimum possible total edge weight. T ...
?
*
Exclusive or
Exclusive or or exclusive disjunction is a logical operation that is true if and only if its arguments differ (one is true, the other is false).
It is symbolized by the prefix operator J and by the infix operators XOR ( or ), EOR, EXOR, , ...
2-
satisfiability
In mathematical logic, a formula is ''satisfiable'' if it is true under some assignment of values to its variables. For example, the formula x+3=y is satisfiable because it is true when x=3 and y=6, while the formula x+1=x is not satisfiable over ...
: given a formula requiring that
or
hold for a number of pairs of variables
, is there an assignment to the variables that makes it true?
The
complement
A complement is something that completes something else.
Complement may refer specifically to:
The arts
* Complement (music), an interval that, when added to another, spans an octave
** Aggregate complementation, the separation of pitch-clas ...
s of all these problems are in SL as well, since, as we will see, SL is closed under complement.
From the fact that L = SL, it follows that many more problems are SL-complete with respect to log-space reductions: every non-trivial problem in L or in SL is SL-complete; moreover, even if the reductions are in some smaller class than L, L-completeness is equivalent to SL-completeness. In this sense this class has become somewhat trivial.
Important results
There are well-known classical algorithms such as
depth-first search
Depth-first search (DFS) is an algorithm for traversing or searching tree or graph data structures. The algorithm starts at the root node (selecting some arbitrary node as the root node in the case of a graph) and explores as far as possible alo ...
and
breadth-first search
Breadth-first search (BFS) is an algorithm for searching a tree data structure for a node that satisfies a given property. It starts at the tree root and explores all nodes at the present depth prior to moving on to the nodes at the next d ...
which solve USTCON in linear time and space. Their existence, shown long before SL was defined, proves that SL is contained in P. It's also not difficult to show that USTCON, and so SL, is in NL, since we can just nondeterministically guess at each vertex which vertex to visit next in order to discover a path if one exists.
The first nontrivial result for SL, however, was
Savitch's theorem, proved in 1970, which provided an algorithm that solves USTCON in log
2 ''n'' space. Unlike depth-first search, however, this algorithm is impractical for most applications because of its potentially superpolynomial running time. One consequence of this is that USTCON, and so SL, is in . (Actually, Savitch's theorem gives the stronger result that NL is in .)
Although there were no (uniform) ''deterministic'' space improvements on Savitch's algorithm for 22 years, a highly practical probabilistic log-space algorithm was found in 1979 by Aleliunas et al.: simply start at one vertex and perform a
random walk
In mathematics, a random walk is a random process that describes a path that consists of a succession of random steps on some mathematical space.
An elementary example of a random walk is the random walk on the integer number line \mathbb ...
until you find the other one (then accept) or until time has passed (then reject). False rejections are made with a small bounded probability that shrinks exponentially the longer the random walk is continued. This showed that SL is contained in
RLP, the class of problems solvable in polynomial time and logarithmic space with probabilistic machines that reject incorrectly less than 1/3 of the time. By replacing the random walk by a universal traversal sequence, Aleliunas et al. also showed that SL is contained in
L/poly, a non-uniform complexity class of the problems solvable deterministically in logarithmic space with polynomial
advice.
In 1989, Borodin et al. strengthened this result by showing that the
complement
A complement is something that completes something else.
Complement may refer specifically to:
The arts
* Complement (music), an interval that, when added to another, spans an octave
** Aggregate complementation, the separation of pitch-clas ...
of USTCON, determining whether two vertices are in different connected components, is also in RLP. This placed USTCON, and SL, in co-RLP and in the intersection of RLP and co-RLP, which is
ZPLP, the class of problems which have log-space, expected polynomial-time, no-error randomized algorithms.
In 1992,
Nisan
Nisan (or Nissan; he, נִיסָן, Standard ''Nīsan'', Tiberian ''Nīsān''; from akk, 𒊬𒊒𒄀 ''Nisanu'') in the Babylonian and Hebrew calendars is the month of the barley ripening and first month of spring. The name of the month is ...
,
Szemerédi, and
Wigderson finally found a new deterministic algorithm to solve USTCON using only log
1.5 ''n'' space. This was improved slightly, but there would be no more significant gains until Reingold.
In 1995, Nisan and Ta-Shma showed the surprising result that SL is closed under complement, which at the time was believed by many to be false; that is, SL = co-SL. Equivalently, if a problem can be solved by reducing it to a graph and asking if two vertices are in the ''same'' component, it can also be solved by reducing it to another graph and asking if two vertices are in ''different'' components. However, Reingold's paper would later make this result redundant.
One of the most important corollaries of SL = co-SL is that L
SL = SL; that is, a deterministic, log-space machine with an
oracle
An oracle is a person or agency considered to provide wise and insightful counsel or prophetic predictions, most notably including precognition of the future, inspired by deities. As such, it is a form of divination.
Description
The wor ...
for SL can solve problems in SL (trivially) but cannot solve any other problems. This means it does not matter whether we use Turing reducibility or many-one reducibility to show a problem is in SL; they are equivalent.
A breakthrough October 2004 paper by
Omer Reingold showed that USTCON is in fact in
L. Since USTCON is SL-complete, this implies that SL = L, essentially eliminating the usefulness of consideration of SL as a separate class. A few weeks later, graduate student Vladimir Trifonov showed that USTCON could be solved deterministically using
space—a weaker result—using different techniques.
[.] There has not been substantial effort into turning Reingold's algorithm for USTCON into a practical formulation. It is explicit in his paper (and those leading up to it) that they are primarily concerned with asymptotics; as a result, the algorithm he describes would actually take
memory, and
time. This means that even for
, the algorithm would require more memory than contained on all computers in the world (a kiloexaexaexabyte).
Consequences of L = SL
The collapse of L and SL has a number of significant consequences. Most obviously, all SL-complete problems are now in L, and can be gainfully employed in the design of deterministic log-space and polylogarithmic-space algorithms. In particular, we have a new set of tools to use in
log-space reductions. It is also now known that a problem is in L if and only if it is log-space reducible to USTCON.
Footnotes
References
*
*
Michael Sipser. ''Introduction to the Theory of Computation''. PWS Publishing Co., Boston 1997 .
{{DEFAULTSORT:Sl (Complexity)
Complexity classes