HiveBrain v1.2.0
Get Started
← Back to all entries
patternMinor

Is 2-coloring in NL or L?

Submitted by: @import:stackexchange-cs··
0
Viewed 0 times
coloringstackoverflowprogramming

Problem

The 2-coloring problem is in P. How can I prove that it is in NL or L? I see that I should create a deterministic/nondeterministic algorithm with logarithmic space, but I have no idea how to store the coloring in logarithmic space.

Solution

The 2-coloring problem is $\mathsf{SL}$-complete. That means that there is a logspace reduction from 2-coloring to undirected accessibility (and conversely). See this paper for some references.

It was showed in 2004 that $\mathsf{L} = \mathsf{SL}$.

Context

StackExchange Computer Science Q#165171, answer score: 5

Revisions (0)

No revisions yet.