paper-BagRelationalPDBsAreHard/single_p.tex

65 lines
3.3 KiB
TeX
Raw Normal View History

2020-12-04 13:14:12 -05:00
%root: main.tex
%!TEX root=./main.tex
2020-12-04 13:14:12 -05:00
2020-12-18 13:06:13 -05:00
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2020-12-08 11:59:46 -05:00
\subsection{Single $\prob$ value}
2020-12-13 11:32:55 -05:00
\label{sec:single-p}
2020-12-04 13:14:12 -05:00
2020-12-14 00:28:04 -05:00
%In this discussion, let us fix $\kElem = 3$.
While \Cref{thm:mult-p-hard-result} shows that computing $\rpoly(\prob,\dots,\prob)$ in general is hard it does not rule out the possibility that one can compute this value exactly for a {\em fixed} value of $\prob$. Indeed, it is easy to check that one can compute $\rpoly(\prob,\dots,\prob)$ exactly in linear time for $\prob\in \inset{0,1}$. In this section, we show that these two are the only possibilities:
2020-12-18 13:06:13 -05:00
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{Theorem}\label{th:single-p-hard}
2021-04-10 14:11:35 -04:00
Fix $\prob\in (0,1)$. Then assuming \Cref{conj:graph} is true, any algorithm that computes $\rpoly_{G}^3(\prob,\dots,\prob)$ from $G$ exactly has to run in time $\Omega\inparen{m^{1+\eps_0}}$, where $\eps_0$ is as defined in \Cref{conj:graph}.
2020-12-14 00:28:04 -05:00
\end{Theorem}
2020-12-18 13:06:13 -05:00
%\begin{proof}[Proof of Corollary ~\ref{th:single-p-gen-k}]
%Consider $\poly^3_{G}$ and $\poly' = 1$ such that $\poly'' = \poly^3_{G} \cdot \poly'$. By \Cref{th:single-p}, query $\poly''$ with $\kElem = 4$ has $\Omega(\numvar^{\frac{4}{3}})$ complexity.
2020-12-14 00:28:04 -05:00
%\end{proof}
2021-04-10 14:11:35 -04:00
The above shows the hardness for a very specific query polynomial but it is easy to come up with an infinite family of hard query polynomials by `embedding' $\rpoly_{G}^3$ into an infinite family of trivial query polynomials.
Unlike \Cref{thm:mult-p-hard-result} the above result does not show that computing $\rpoly_{G}^3(\prob,\dots,\prob)$ for a fixed $\prob\in (0,1)$ is \sharpwonehard.
However, in \Cref{sec:algo} we show that if we are willing to compute an approximation that this problem (and indeed solving our problem for a much more general setting) is in linear time.
2020-12-14 00:28:04 -05:00
%\AH{@atri needs to put in the result for triangles of $\numvar^{\frac{4}{3}}$ runtime.}
We will prove the above result by the following reduction:
2020-12-18 13:06:13 -05:00
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{Theorem}\label{th:single-p}
Fix $\prob\in (0,1)$. Let $G$ be a graph on $\numedge$ edges.
2021-04-10 14:11:35 -04:00
If we can compute $\rpoly_{G}^3(\prob,\dots,\prob)$ exactly in $T(\numedge)$ time, then we can exactly compute $\numocc{G}{\tri}$ %count the number of triangles, 3-paths, and 3-matchings in $G$
2020-12-14 00:28:04 -05:00
in $O\inparen{T(\numedge) + \numedge}$ time.
2020-12-04 13:14:12 -05:00
\end{Theorem}
2020-12-18 13:06:13 -05:00
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2020-12-04 13:14:12 -05:00
2020-12-18 13:06:13 -05:00
2021-04-06 13:03:08 -04:00
%Before we move on to the proof itself, we state the results, lemmas, and defintions that will be useful in the proof.
2020-12-04 13:14:12 -05:00
2020-12-18 13:06:13 -05:00
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2020-12-17 16:40:48 -05:00
2020-12-14 00:28:04 -05:00
2021-04-09 00:02:33 -04:00
The following result immediately implies \Cref{th:single-p}:
2020-12-18 13:06:13 -05:00
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2020-12-04 13:14:12 -05:00
\begin{Lemma}\label{lem:lin-sys}
Fix $\prob\in (0,1)$. Given $\rpoly_{\graph{\ell}}^3(\prob,\dots,\prob)$ for $\ell\in [2]$, we can compute in $O(m)$ time a vector $\vct{b}\in\mathbb{R}^3$ such that
2020-12-14 00:28:04 -05:00
\[ \begin{pmatrix}
1 - 3p & -(3\prob^2 - \prob^3)\\
10(3\prob^2 - \prob^3) & 10(3\prob^2 - \prob^3)
2020-12-14 00:28:04 -05:00
\end{pmatrix}
2021-04-10 14:11:35 -04:00
\cdot
2020-12-14 00:28:04 -05:00
\begin{pmatrix}
\numocc{G}{\tri}]\\
\numocc{G}{\threedis}
\end{pmatrix}
=\vct{b},
\]
allowing us to compute $\numocc{G}{\tri}$ and $\numocc{G}{\threedis}$ in $O(1)$ time.
2020-12-04 13:14:12 -05:00
\end{Lemma}
2020-12-18 13:06:13 -05:00
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2020-12-19 01:15:50 -05:00
%
2020-12-18 13:06:13 -05:00
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2020-12-04 13:14:12 -05:00
2020-12-18 13:06:13 -05:00
%%% Local Variables:
%%% mode: latex
%%% TeX-master: "main"
%%% End: