I have been trying to solve satisfiability of
{$<c, w>$ | $c$ is a CNF and $w$ is a binary string which satifies the $c$}.
As first looks to me, it is satisiable in linear time ($O(n)$) since $w$ has lenght $n$.
I tried thinking about whether the space complexity of this problem can be reduced to logarithmic order. But couldn’t end up with an acceptable reason so far. Well, my first thought is the following:
Considering that CNF $c$ is composed of conjuction of some clasuses, it’s possible to write every clauses’s result (0 or 1) to the working tape and after reading the entire string, evaluate those 0’s and 1’s (which correlates with the CNF’s clauses). But this won’t result in a logarithmic space complexity anyway and I think it would be of $O(n/k) = O(n)$ where $k$ is the number of clauses.
Is there an optimize way of solving this in logarithmic space?