Reading the header of an encoded connectivity instance #
Logarithmic-space reductions from directed s–t connectivity read the unary header
1^n 0 1^s 0 1^t 0 of the encoding Cslib.Complexity.encSTCON into three registers before
they read the adjacency matrix by address. Cslib.Complexity.STCONInstance.headerCode is that
code, for counter programs with output, and Cslib.Complexity.STCONInstance.reachesOut_headerCode
says that it stores n, s and t in the registers 0, 1 and 2, emitting nothing.
Main definitions #
Cslib.Complexity.STCONInstance.headerCode: the code reading the header.
Main results #
Cslib.Complexity.STCONInstance.reachesOut_headerCode: the header is read into the registers0,1and2.Cslib.Complexity.STCONInstance.regs_le: the registers[n, s, t, r, c]of such a writer are bounded oncen, the row and the column are.
The code reading the header, placed at the label b: it counts the three unary blocks
into the registers 0, 1 and 2, which start at 0, and continues at b + 6.
The registers [n, s, t, r, c] of a writer are bounded by B once n, the row r and
the column c are, since the terminals are below n.
The header is read: from the registers 0, 0, 0 followed by rest, the code stores n,
s and t in the registers 0, 1 and 2, emitting nothing, while every register stays at
most B.