User:Realazthat/Notes/Scrap: Difference between revisions

From Rosetta Code
Content added Content deleted
No edit summary
No edit summary
Line 5: Line 5:
\begin{array}{lcl}
\begin{array}{lcl}


b\left(E,u\in E,v\in E\right)
b\left(E,u,v\right)
\in \left\{0,1\right\}
\in \left\{0,1\right\}
& = &
& = &
Line 12: Line 12:
1 & \text{if }\left(u,v\right)\text{ is not an edge in }E\end{cases}\\
1 & \text{if }\left(u,v\right)\text{ is not an edge in }E\end{cases}\\


f\left(F,u \in F, v \in F\right)
f\left(E,F,u,v\right)
\in \left\{0,1\right\}
\in \left\{0,1\right\}
& = &
& = &
\begin{cases}
\begin{cases}
0 & \text{if }\left(u,v\right)\text{ is an edge in }F\\
0 & \text{if } b\left(E,u,v\right) \neq 1 \vee b\left(F,u,v\right) \neq 0\\
1 & \text{if }\left(u,v\right)\text{ is not an edge in }F\end{cases} \\
1 & \text{if } b\left(E,u,v\right) = 1 \wedge b\left(F,u,v\right) = 0\end{cases} \\


c\left(C,E,p \in C,q \in C,r \in C,s \in C\right)\in\left\{ 0,1,2,3\right\} & = & b\left(E,C_{p-1},C_{q+1}\right)+b\left(E,C_{q},C_{s}\right)+b\left(E,C_{p},C_{r}\right) \\
c\left(C,E,p \in C,q \in C,r \in C,s \in C\right)\in\left\{ 0,1,2,3\right\} & = & b\left(E,C_{p-1},C_{q+1}\right)+b\left(E,C_{q},C_{s}\right)+b\left(E,C_{p},C_{r}\right) \\

Revision as of 04:56, 30 December 2010

Du