chiark / gitweb /
strategy: new, wip
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 12 May 2012 10:15:42 +0000 (11:15 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 12 May 2012 10:15:42 +0000 (11:15 +0100)
article.tex
strategy.tex

index 052ed360f1fa9459a4234466ac2e550829c18085..18c75dfb1514c6ca0748097dde557140d89658aa 100644 (file)
@@ -93,6 +93,8 @@
 \newcommand{\depsreqof}[1]{\depsreq ( #1 ) }
 
 \newcommand{\allpatches}{\Upsilon}
+\newcommand{\assign}{\leftarrow}
+%\newcommand{\assign}{' =}
 
 \newcommand{\eqntag}[2]{ #2 \tag*{\mbox{#1}} }
 \newcommand{\eqn}[2]{ #2 \tag*{\mbox{\bf #1}} }
index c8a0bfe41846f830e22019a152b950ac53648286..6fb4b4f9d2b72837ccfc8b602c7696cb93c74fd6 100644 (file)
@@ -86,13 +86,13 @@ dependencies to use.  This allows the specification of any desired
 
 \section{Ranking phase}
 
-{\bf Ranking} is:
+We run the following algorithm:
 \begin{enumerate}
 \item Set $\allpatches = \{ \}$.
 \item Repeatedly:
 \begin{enumerate}
 \item Clear out the graph $\hasdirdep$ so it has neither nodes nor edges.
-\item Execute {\bf Rank-Recurse}($\pc_0$) .
+\item Execute {\bf Rank-Recurse}($\pc_0$)
 \item Until $\allpatches$ remains unchanged.
 \end{enumerate}
 \end{enumerate}
@@ -104,9 +104,14 @@ dependencies to use.  This allows the specification of any desired
      \cup 
         \bigcup_{\p \in \allpatches}
         \bigcup_{H \in h(\pn) \lor H \in h(\py)}
-         \{ \baseof{E} \; | \; E \in \pendsof{H}{\pcy} \} $.
+         \{ \baseof{E} \; | \; E \in \pendsof{H}{\pcy} \} $
 
-(We write $\set S = \set S_{\pcn}$ when it's not ambiguous.)
+and $W = w(h(\pcn))$
+
+We write $\set S = \set S_{\pcn}$ where unambiguous.
+\item While $\exists_{S \in \set S} S \ge W$:
+
+Update $W \assign S$ and $\set S \assign \set S \, \backslash \{ S \}$
 \end{enumerate}
 
 \section{Planning phase}