<h3>UPDATE:</h3>

<p>I should have pointed out that the answer below is about the special case of $k = |V|$.  Since this case is hard, the problem for general $k$ is also hard.</p>

<p>The Holant framework is essentially an exponential sum over spanning subgraphs (i.e. all vertices are present in the subgraph, so the sum is over the subsets of edges).  In contrast, the current version of the question is about edge induced subgraphs.</p>

<p>An earlier version of this question concerned counting certain subgraphs with no isolated vertices.  The answer below correctly addresses this requirement.  When considering both spanning subgraphs (i.e. the Holant framework) and no isolated vertices, this is the same as considering edge induced subgraphs with $|V|$ vertices.  The OP basically pointed this out in <a href="https://cstheory.stackexchange.com/questions/15012/how-hard-is-to-compute-delta-v">this question</a>.</p>

<h2>3-Regular Planar Graphs</h2>

<p>For the moment, I will ignore your requirement that the graph $G$ is bipartite.</p>

<p>Suppose that $G$ is a 3-regular planar graph.  Your problem can be expressed as the bipartite planar Holant problem</p>

<p>$$\text{Pl-Holant}([1,0,-1]|[0,1,1,1]).$$</p>

<p>Let me explain how.  For more detail than I provide below, see <a href="http://arxiv.org/abs/1204.6445" rel="nofollow noreferrer">this paper</a>.</p>

<p>The Holant is a sum over (Boolean) assignments to edges. On the vertices are constraints who's inputs are the assignments to their incident edges.  For each assignment to the edges, we take the product of all the vertex constraints.</p>

<p>Your requirement that there be no isolated vertices is the constraint that is not satisfied at a particular vertex if none of its incident edges is selected and is satisfied if at least one edge is a selected.  This <a href="http://en.wikipedia.org/wiki/Symmetric_function" rel="nofollow noreferrer">symmetric</a> constraint is denoted by [0,1,1,1], which outputs 0 (i.e. unsatisfied) when the number of input 1's is 0 (i.e. no incident edges in the subgraph) and outputs 1 (i.e. satisfied) when the number of input 1's is 1, 2, or 3 (i.e. 1, 2, or 3 incident edges in the subgraph).</p>

<p>Your other requirement is to compute the number of subgraphs with an even number of edges minus the subgraphs with an odd number of edges.  For our graph $G$, we replace each edge by a path of length 2 (which is also called the 2-stretch of $G$).  This gives a (2,3)-regular bipartite graph.  To all of the original vertices, we assign the constraint [0,1,1,1] from above.  To all of the new vertices, we assign the constraint [1,0,-1].  Since the middle entry of this constraint is 0, this forces the incident edges of these degree 2 vertices to either both be assigned 0 (i.e. not in the subgraph) or both be assigned 1 (i.e. in the subgraph).  Now for a particular assignment to the edges, if the number $n$ of "original" edges is even, then the contribution from all the degree 2 vertices is $(-1)^n = 1$. Otherwise, $n$ is odd and the contribution is $(-1)^n = -1$.  This is exactly what you want.</p>

<p>This bipartite Holant problem is #P-hard by Theorem 6.1 in <a href="http://arxiv.org/abs/1008.0683" rel="nofollow noreferrer">this paper</a>.  However, that theorem is not the easiest to apply. Instead, consider the following.</p>

<p>We do a holographic transformation by $T = \begin{bmatrix} -1 &amp; 1 \\ 0 &amp; 1 \end{bmatrix},$ which does not change the value of the Holant.  Thus, the above problem is exactly the same as</p>

<p>$$
\begin{align*}
 \text{Pl-Holant}([1,0,-1]|[0,1,1,1])
 &amp;= \text{Pl-Holant}([1,0,-1] T^{\otimes 2}|(T^{-1})^{\otimes 3}[0,1,1,1])\\
 &amp;= \text{Pl-Holant}([1,-1,0]|[1,0,0,1]).
\end{align*}
$$</p>

<p>Then it is easy to see that this problem is #P-hard by Theorem 1.1 in <a href="http://arxiv.org/abs/1001.0464" rel="nofollow noreferrer">this paper</a>.</p>

<h2>Restricting to Bipartite Graphs</h2>

<p>Just like <a href="https://cstheory.stackexchange.com/questions/12441/number-of-subgraphs-with-a-given-number-of-nodes">your previous question</a>, the same problem restricted to bipartite graphs is much harder to handle and I believe it is still an open problem.  We have a conjecture as to the tractable cases (and I will check to see if your problem is one of them), but I think your problem is still #P-hard even when restricted to bipartite graphs.</p>

CC BY-SA 3.0
2012-09-03T07:32:00.707Z
Thanks for dedicating your time to this question and for having furnished such a detailed answer. Being not familiar with the Holant framework, I will need some time to parse it and to fully metabolize your reasoning (of course I've no doubt on its correctness, it is just that I want to understand every step, not only the conclusion). For what concerns the bipartiteness restriction, yes it would be really nice if you could check whether your tractable cases conjecture encompasses my problem.
Giorgio Camerani
CC BY-SA 3.0
2012-09-02T17:15:16.160Z
2013-01-10T15:37:33.713Z
2017-04-13T12:32:28.077Z
Tyson Williams
<p><a href="http://gcamerani.altervista.org">The ODD EVEN DELTA problem is #P-hard, even on 3-regular bipartite planar graphs.</a></p>

<p>Let $\mathcal{C}$ be the set of vertex covers of a general graph $G$. Then, assuming $G$ has no isolated vertices, the following equation holds (refer to the above article for the proof):</p>

<p>$$|\mathcal{C}| = 2^{|V|} - \sum_{k = 2}^{|V|} \Delta_k \cdot 2^{|V|-k}$$</p>

<p>Counting vertex covers is #P-complete even on 3-regular bipartite planar graphs, and it can be done with a linear number of calls to an ODD EVEN DELTA oracle.</p>

CC BY-SA 3.0
2013-01-01T09:14:16.583Z
2013-01-02T21:02:04.523Z
2013-01-02T21:02:04.523Z
Giorgio Camerani
<p>Let $G = ( V, E )$ be a graph. Let $k \leq |V|$ be an integer. Let $O_k$ be the number of edge induced subgraphs of $G$ having $k$ vertices and an odd number of edges. Let $E_k$ be the number of edge induced subgraphs of $G$ having $k$ vertices and an even number of edges. Let $\Delta_k = O_k - E_k$. The ODD EVEN DELTA problem consists in computing $\Delta_k$, given $G$ and $k$.</p>

<blockquote>
  <p><strong>Questions</strong>  </p>
  
  <ol>
  <li>Is it possible to compute $\Delta_k$ in polynomial time? Which is the best known algorithm to compute it?</li>
  <li>What if $G$ is 3-regular?</li>
  <li>What if $G$ is 3-regular bipartite?</li>
  <li>What if $G$ is 3-regular bipartite planar?</li>
  </ol>
</blockquote>

CC BY-SA 3.0
2012-09-02T17:29:48.570Z
What is your motivation?
Tyson Williams
CC BY-SA 3.0
2012-09-03T07:48:45.640Z
@TysonWilliams: My motivation is that, if the 1st part of the 1st question has an affirmative answer (even only for the bipartite 3-regular planar case), then there would be some interesting consequences deserving further exploration. If the algorithm is sub-exponential, it would still have some consequences (less interesting, but nonetheless deserving more exploration).
Giorgio Camerani
CC BY-SA 3.0
2012-09-03T12:34:57.577Z
Can you be more specific?  What do you mean by "some interesting consequences"?  How did you encounter this problem in the first place?
Tyson Williams
CC BY-SA 3.0
2012-09-03T13:47:13.480Z
@TysonWilliams: Could we continue this conversation privately, by e-mail?
Giorgio Camerani
<ds.algorithms><graph-theory><graph-algorithms><counting-complexity>
The ODD EVEN DELTA problem
Giorgio Camerani
# The ODD EVEN DELTA problem

(Asked by: username_0 on 2012-09-02)

Let $G = ( V, E )$ be a graph. Let $k \leq |V|$ be an integer. Let $O\_k$ be the number of edge induced subgraphs of $G$ having $k$ vertices and an odd number of edges. Let $E\_k$ be the number of edge induced subgraphs of $G$ having $k$ vertices and an even number of edges. Let $\Delta\_k = O\_k - E\_k$. The ODD EVEN DELTA problem consists in computing $\Delta\_k$, given $G$ and $k$.

> **Questions**
>
> 1. Is it possible to compute $\Delta\_k$ in polynomial time? Which is the best known algorithm to compute it?
> 2. What if $G$ is 3-regular?
> 3. What if $G$ is 3-regular bipartite?
> 4. What if $G$ is 3-regular bipartite planar?

**Tags:** ds.algorithms, graph-theory, graph-algorithms, counting-complexity
> **Comments:**
> **username_1**: What is your motivation?  
> **username_0**: @TysonWilliams: My motivation is that, if the 1st part of the 1st question has an affirmative answer (even only for the bipartite 3-regular planar case), then there would be some interesting consequences deserving further exploration. If the algorithm is sub-exponential, it would still have some consequences (less interesting, but nonetheless deserving more exploration).  
> **username_1**: Can you be more specific?  What do you mean by "some interesting consequences"?  How did you encounter this problem in the first place?  
> **username_0**: @TysonWilliams: Could we continue this conversation privately, by e-mail?  

---

## 2 answers

### Answer by username_0 on 2013-01-01. Score: 9 | Accepted answer

[The ODD EVEN DELTA problem is #P-hard, even on 3-regular bipartite planar graphs.](http://gcamerani.altervista.org)

Let $\mathcal{C}$ be the set of vertex covers of a general graph $G$. Then, assuming $G$ has no isolated vertices, the following equation holds (refer to the above article for the proof):

$$|\mathcal{C}| = 2^{|V|} - \sum\_{k = 2}^{|V|} \Delta\_k \cdot 2^{|V|-k}$$

Counting vertex covers is #P-complete even on 3-regular bipartite planar graphs, and it can be done with a linear number of calls to an ODD EVEN DELTA oracle.


---

### Answer by username_1 on 2012-09-02. Score: 7

### UPDATE:

I should have pointed out that the answer below is about the special case of $k = |V|$. Since this case is hard, the problem for general $k$ is also hard.

The Holant framework is essentially an exponential sum over spanning subgraphs (i.e. all vertices are present in the subgraph, so the sum is over the subsets of edges). In contrast, the current version of the question is about edge induced subgraphs.

An earlier version of this question concerned counting certain subgraphs with no isolated vertices. The answer below correctly addresses this requirement. When considering both spanning subgraphs (i.e. the Holant framework) and no isolated vertices, this is the same as considering edge induced subgraphs with $|V|$ vertices. The OP basically pointed this out in [this question](https://cstheory.stackexchange.com/questions/15012/how-hard-is-to-compute-delta-v).

## 3-Regular Planar Graphs

For the moment, I will ignore your requirement that the graph $G$ is bipartite.

Suppose that $G$ is a 3-regular planar graph. Your problem can be expressed as the bipartite planar Holant problem

$$\text{Pl-Holant}([1,0,-1]|[0,1,1,1]).$$

Let me explain how. For more detail than I provide below, see [this paper](http://arxiv.org/abs/1204.6445).

The Holant is a sum over (Boolean) assignments to edges. On the vertices are constraints who's inputs are the assignments to their incident edges. For each assignment to the edges, we take the product of all the vertex constraints.

Your requirement that there be no isolated vertices is the constraint that is not satisfied at a particular vertex if none of its incident edges is selected and is satisfied if at least one edge is a selected. This [symmetric](http://en.wikipedia.org/wiki/Symmetric_function) constraint is denoted by [0,1,1,1], which outputs 0 (i.e. unsatisfied) when the number of input 1's is 0 (i.e. no incident edges in the subgraph) and outputs 1 (i.e. satisfied) when the number of input 1's is 1, 2, or 3 (i.e. 1, 2, or 3 incident edges in the subgraph).

Your other requirement is to compute the number of subgraphs with an even number of edges minus the subgraphs with an odd number of edges. For our graph $G$, we replace each edge by a path of length 2 (which is also called the 2-stretch of $G$). This gives a (2,3)-regular bipartite graph. To all of the original vertices, we assign the constraint [0,1,1,1] from above. To all of the new vertices, we assign the constraint [1,0,-1]. Since the middle entry of this constraint is 0, this forces the incident edges of these degree 2 vertices to either both be assigned 0 (i.e. not in the subgraph) or both be assigned 1 (i.e. in the subgraph). Now for a particular assignment to the edges, if the number $n$ of "original" edges is even, then the contribution from all the degree 2 vertices is $(-1)^n = 1$. Otherwise, $n$ is odd and the contribution is $(-1)^n = -1$. This is exactly what you want.

This bipartite Holant problem is #P-hard by Theorem 6.1 in [this paper](http://arxiv.org/abs/1008.0683). However, that theorem is not the easiest to apply. Instead, consider the following.

We do a holographic transformation by $T = \begin{bmatrix} -1 & 1 \\ 0 & 1 \end{bmatrix},$ which does not change the value of the Holant. Thus, the above problem is exactly the same as

$$
\begin{align\*}
\text{Pl-Holant}([1,0,-1]|[0,1,1,1])
&= \text{Pl-Holant}([1,0,-1] T^{\otimes 2}|(T^{-1})^{\otimes 3}[0,1,1,1])\\
&= \text{Pl-Holant}([1,-1,0]|[1,0,0,1]).
\end{align\*}
$$

Then it is easy to see that this problem is #P-hard by Theorem 1.1 in [this paper](http://arxiv.org/abs/1001.0464).

## Restricting to Bipartite Graphs

Just like [your previous question](https://cstheory.stackexchange.com/questions/12441/number-of-subgraphs-with-a-given-number-of-nodes), the same problem restricted to bipartite graphs is much harder to handle and I believe it is still an open problem. We have a conjecture as to the tractable cases (and I will check to see if your problem is one of them), but I think your problem is still #P-hard even when restricted to bipartite graphs.

> **Comments:**
> **username_0**: Thanks for dedicating your time to this question and for having furnished such a detailed answer. Being not familiar with the Holant framework, I will need some time to parse it and to fully metabolize your reasoning (of course I've no doubt on its correctness, it is just that I want to understand every step, not only the conclusion). For what concerns the bipartiteness restriction, yes it would be really nice if you could check whether your tractable cases conjecture encompasses my problem.  

---

