X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=topbloke-formulae.git;a=blobdiff_plain;f=strategy.tex;h=bf136f69c912d185b9531089fafc2dd2922913c6;hp=0f03ddb9883200fed514b821df14948994e78aca;hb=8ee16bd8a84437fc51257805eb234c4dee054889;hpb=e284656ebfa338be8bc3a02de60391063d9f8f3d diff --git a/strategy.tex b/strategy.tex index 0f03ddb..bf136f6 100644 --- a/strategy.tex +++ b/strategy.tex @@ -105,273 +105,3 @@ generated by the Traversal phase of the update algorithm. \end{basedescript} -\section{Ranking phase} - -We run the following algorithm: -\begin{enumerate} -\item Set $\allpatches = \{ \}$. -\item Repeatedly: -\begin{enumerate} -\item Clear out the graph $\hasdirdep$ so it has no edges. -\item Execute $\alg{Rank-Recurse}(\pc_0)$ -\item Until $\allpatches$ remains unchanged. -\end{enumerate} -\end{enumerate} - -$\alg{Rank-Recurse}(\pc)$ is: -\begin{enumerate} - -\item If we have already done $\alg{Rank-Recurse}(\pc)$ in this -ranking iteration, do nothing. Otherwise: - -\item Add $\pc$ to $\allpatches$ if it is not there already. - -\item Set -$$ - \set S \iassign h(\pcn) - \cup - \bigcup_{\p \in \allpatches} - \bigcup_{H \in h(\pn) \lor H \in h(\py)} - \{ \baseof{E} \; | \; E \in \pendsof{H}{\pcy} \} -$$ - -and $W \iassign w(h(\pcn))$ - -\item While $\exists_{S \in \set S} S \ge W$, -update $W \assign S$ and $\set S \assign \set S \, \backslash \{ S \}$ - -(This will often remove $W$ from $\set S$. Afterwards, $\set S$ -is a collection of heads to be merged into $W$.) - -\item Choose an ordering of $\set S$, $S_i$ for $i=1 \ldots n$. - -\item For each $S_i$ in turn, choose a corresponding $M_i$ -such that $$ - M_i \le S_i \land \left[ - M_i \le W \lor \bigexists_{j