chiark / gitweb /
strategy: notation: add \alg
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 27 May 2012 18:04:19 +0000 (19:04 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 27 May 2012 18:04:19 +0000 (19:04 +0100)
article.tex
strategy.tex

index 6ea245aca456a263a6454b654225a2b0d4eb4dfc..7a43732309281d9402dde333c37f398c8cb75a29 100644 (file)
 \newcommand{\iassign}{\leftarrow}
 %\newcommand{\assign}{' =}
 
+\newcommand{\alg}[1]{\text{\bf #1}}
+
 \newcommand{\eqntag}[2]{ #2 \tag*{\mbox{#1}} }
 \newcommand{\eqn}[2]{ #2 \tag*{\mbox{\bf #1}} }
 
index d6c06da777300d25afde45747f9c36a919cf9266..ad8db15e04f50571564950dd05bfb2fb0e75fde9 100644 (file)
@@ -108,15 +108,15 @@ We run the following algorithm:
 \item Repeatedly:
 \begin{enumerate}
 \item Clear out the graph $\hasdirdep$ so it has no edges.
-\item Execute {\bf Rank-Recurse}($\pc_0$)
+\item Execute $\alg{Rank-Recurse}(\pc_0)$
 \item Until $\allpatches$ remains unchanged.
 \end{enumerate}
 \end{enumerate}
 
-{\bf Rank-Recurse}($\pc$) is:
+$\alg{Rank-Recurse}(\pc)$ is:
 \begin{enumerate}
 
-\item If we have already done {\bf Rank-Recurse}($\pc$) in this
+\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.
@@ -155,7 +155,7 @@ if available.
 \item For each $i \ldots 1..n$, update our putative direct
 dependencies:
 $$
-\Gamma \assign \text{\bf set-merge}\left[\Gamma, 
+\Gamma \assign \alg{set-merge}\left[\Gamma,
  \left( \begin{cases} 
   M_i \in \pcn :     & \depsreqof{M_i} \\
   M_i \not\in \pcn : & \{ \}
@@ -164,7 +164,7 @@ $$
  \right]
 $$
 
-TODO define {\bf set-merge}
+TODO define $\alg{set-merge}$
 
 \item Finalise our putative direct dependencies
 $
@@ -179,7 +179,7 @@ as necessary).
 If this results in a cycle, abort entirely (as the function $g$ is
 inappropriate; a different $g$ could work).
 \end{enumerate}
-\item Run ${\text{\bf Rank-Recurse}}(\pd)$.
+\item Run $\alg{Rank-Recurse}(\pd)$.
 
 \end{enumerate}