Done with pass

This commit is contained in:
Atri Rudra 2020-06-23 10:57:17 -04:00
parent a1a8e7edfb
commit 29afac852e

View file

@ -109,22 +109,32 @@ The corollary follows immediately by \cref{prop:l1-rpoly-numTup}.\AR{It does not
We would like to argue that in the general case there is no computation of expectation in linear time.
To this end, consider the following graph $G(V, E)$, where $|E| = m$, $|V| = \numTup$, and $i, j \in [\numTup]$. Consider the query $q_E(\wElem_1,\ldots, \wElem_\numTup) = \sum\limits_{(i, j) \in E} \wElem_i \cdot \wElem_j$.
To this end, consider the following graph $G(V, E)$, where $|E| = m$, $|V| = \numTup$, and $i, j \in [\numTup]$. Consider the query $q_E(\wElem_1,\ldots, \wElem_\numTup) = \sum\limits_{(i, j) \in E} \wElem_i \cdot \wElem_j$.\AR{Again the query polynomial should have $X_i$ as variables.}
\AR{The two lemmas need to be re-written once notation for representing a query is finalized in Section 1.}
\begin{Lemma}\label{lem:gen-p}
If we can compute $\poly(\wElem_1,\ldots, \wElem_\numTup) = q_E(\wElem_1,\ldots, \wElem_\numTup)^3$ in T(m) time for fixed $\prob$, then we can count the number of triangles in $G$ in T(m) + O(m) time.
If we can compute $\poly(\wElem_1,\ldots, \wElem_\numTup) = q_E(\wElem_1,\ldots, \wElem_\numTup)^3$ in T(m) time for fixed $\prob$,\AR{The statement so far technically does not make sense since the definition of $\poly(\wElem_1,\ldots, \wElem_\numTup)$ does not have $p$ anywhere in it. See my comment above.} then we can count the number of triangles in $G$ in T(m) + O(m) time.
\AR{ANY math notation e.g. T(m) should always be in math mode, like so $T(m)$.}
\AR{Also your just it {\bf not} to just TeX up what is in the yhand-written notes-- you need to verify that the statement is correct and modify the statement as necessary. E.g. I think the final claim above should be for 3-matchings and not triangles.}
\end{Lemma}
\begin{Lemma}\label{lem:const-p}
If we can compute $\poly(\wElem_1,\ldots, \wElem_\numTup) = q_E(\wElem_1,\ldots, \wElem_\numTup)^3$ in T(m) time for O(1) distinct values of $\prob$ then we can count the number of triangles (and the number of 3-paths, the number of 3-matchings) in $G$ in O(T(m) + m) time.
\end{Lemma}
\AR{This warmup should not be in the actual paper since it is not quite relevant but it is fine to keep for now.}
First, let us do a warm-up by computing $\rpoly(\wElem_1,\dots, \wElem_\numTup)$ when $\poly = q_E(\wElem_1,\ldots, \wElem_\numTup)$. Before doing so, we introduce a notation. Let $\numocc{H}$ denote the number of occurrences that $H$ occurs in $G$. So, e.g., $\numocc{\ed}$ is the number of edges ($m$) in $G$.
\AR{Sorry I should have made this more explicit in the hand-written notes. The notation of $\twopath$ and $\twodis$ are {\bf not} standard notation and we should not be use them ilke in the handwritten notes. There are two options: we could have explicit notation (like $H_{\text{triang}}$) or if you want the figure notation then the edge actually needs to look like an edge-- i.e. the nodes should show up as well-- i.e. the figures for the sub-graphs should look {\bf exactly} like in the hand-written notes. I have seen this done in other papers but I personally do not know how to do this in latex-- you'll need to figure this out on your own if you use this option. I personally am fine with either option (check if Oliver has a preference though).}
\AR{Also we should discuss if $\numocc{H}$ is the best notation. E.g. one could use $\#\textsc{triang}(G)$ to denote the number of triangles in $G$ and so on. This might help with the above comment as well.}
\begin{Claim}
\begin{enumerate}
\item $\rpoly_2(\prob,\ldots, \prob) = \numocc{\ed} \cdot \prob^2 + 2\cdot \numocc{\twopath}\cdot \prob^3 + 2\cdot \numocc{\twodis}\cdot \prob^4$
\item We can compute $\rpoly_2$ in O(m) time.
\end{enumerate}
\end{Claim}
\AR{Note on latex use-- the begin\{claim\} and end\{claim\} should only be around the statement of the claim and not include the proof inside it as well.}
\AR{Also the claim statement should only include the 2nd part. The first part is only useful in proving the 2nd part so no need to explicitly state it in the claim statement iself.}
\begin{proof}
The proof basically follows by definition.
\begin{enumerate}
@ -147,7 +157,6 @@ First, let us do a warm-up by computing $\rpoly(\wElem_1,\dots, \wElem_\numTup)$
\end{enumerate}
Thus, since each of the summations can be computed in O(m) time, this implies that by \cref{eq:part-1} $\rpoly(\prob,\ldots, \prob)$ can be computed in O(m) time.\qed
\end{proof}
\end{Claim}
We are now ready to state the claim we need to prove \cref{lem:gen-p} and \cref{lem:const-p}.
@ -159,6 +168,8 @@ Let $\poly(\wVec) = q_E^3(\wVec)^3$.
\end{enumerate}
$\implies$ If one can compute $\rpoly_3(\prob,\ldots, \prob)$ in time T(m), then we can compute the following in O(T(m) + m):
\[\numocc{\tri} + \numocc{\threepath} \cdot \prob - \numocc{\threedis}\cdot(\prob^2 - \prob^3).\]
\end{Claim}
\AR{The claim statement should only include the implication in the 2nd part. The first part is only useful in proving the 2nd part so no need to explicitly state it in the claim statement iself. As a general note: the handwritten notes were written in haste-- you should not assume that notation/statements of claims are the final word. Think if they make sense and/or how you can improve them.}
\begin{proof}
By definition we have that
@ -176,13 +187,14 @@ It has already been shown previously that $\numocc{\ed}, \numocc{\twopath}, \num
$\numocc{\twopathdis} + \numocc{\threedis} = $ the number of occurrences of three distinct edges with five or six vertices. This can be counted in the following manner. For every edge $(u, v) \in E$, throw away all neighbors of $u$ and $v$ and pick two more distinct edges.
\[\numocc{\twopathdis} + \numocc{\threedis} = \sum_{(u, v) \in E} \binom{m - d_u - d_v - 1}{2}\] The implication in \cref{claim:four-two} follows by the above and \cref{claim:four-one}.\qed
\end{proof}
\end{Claim}
\begin{proof}
\underline{Lemma 2}
\AR{You should {\bf NEVER EVER} use hard-coded lemma numbers etc. Latex keeps track of numbering for you-- so {\bf ALWAYS} use the automatic numbering. {\bf Using hard coded numbering is very bad practice.}}
\AR{Also you can modify the text of \textsc{Proof} by using the following latex command \texttt{\\begin\{proof\}[Proof of Lemma 2]} and Latex will typeset this as \textsc{Proof of Lemma 2}, which is what you really want.}
\cref{claim:four-two} of Claim 4 implies that if we know $\rpoly_3(\prob,\ldots, \prob)$, then we can know in O(m) additional time
\[\numocc{\tri} + \numocc{\threepath} \cdot \prob - \numocc{\threedis}\cdot(\prob^2 - \prob^3).\] We can think of each term in the above equation as a variable, where one can solve a linear system given 3 distinct $\prob$ values, assuming independence of the three linear equation. In the worst case, without independence, 4 distince values of $\prob$ would suffice...because Atri said so, and I need to ask him for understanding why this is the case, of which I suspect that it has to do with basic result(s) in linear algebra.\qed
\[\numocc{\tri} + \numocc{\threepath} \cdot \prob - \numocc{\threedis}\cdot(\prob^2 - \prob^3).\] We can think of each term in the above equation as a variable, where one can solve a linear system given 3 distinct $\prob$ values, assuming independence of the three linear equation. In the worst case, without independence, 4 distince values of $\prob$ would suffice...because Atri said so, and I need to ask him for understanding why this is the case, of which I suspect that it has to do with basic result(s) in linear algebra.\AR{Follows from the fact that the corresponding coefficient matrix is the so called Vandermonde matrix, which has full rank.}\qed
\end{proof}
\begin{proof}
@ -196,7 +208,7 @@ The following is an option.
\item Build $G_2$ from $G_1$, where each edge in $G_1$ gets replaced by a 2 path.
\end{enumerate}
Then $\numocc{\tri}_2 = 0$, and if we can prove that
Then $\numocc{\tri}_2 = 0$, and if we can prove that\AR{Again you are not transcribing the handwritten notes. If the notes has a claim without proof, then you need to finish off the proof. Of course am happy to help if you get stuck but one of the primary goals of you latexing up the handwritten notes is for you to verify what is in the notes is correct and that cannot happen unless you write down complete proofs for all claims and convince yourself that the claims are correct-- e.g. they {\em could} be wrong and the hope is that your pass will catch bugs.}
\begin{itemize}
\item $\numocc{\threepath}_2 = 2 \cdot \numocc{\twopath}_1$
\item $\numocc{\threedis}_2 = 8 \cdot \numocc{\threedis}_1$