Algebra & Graphs
19. Fractions
means divided by .
- top: numerator
- bottom: denominator
Example:
Read the entire numerator before dividing:
Add and , subtract , then divide the complete result by .
In code:
A_k = (N + D_k - k) / k20. Common algebra transformations
Add the same value to both sides
From:
derive:
Multiply both sides
From:
and :
When multiplying by a negative number, reverse the inequality:
becomes:
Substitution
If:
then in:
replace :
Authors often write:
Substituting , we obtain…
21. Graph-theory notation
| Notation | Meaning |
|---|---|
| Graph with vertices and edges | |
| Vertex set of graph | |
| Edge set of graph | |
| and are adjacent | |
| Directed edge from to | |
| Undirected edge between | |
| Degree of vertex | |
| Neighbourhood of | |
| Path from to | |
| Length of path | |
| Shortest-path distance | |
| Subgraph induced by vertices | |
| Graph after removing vertex | |
| Graph after removing edge |
Disjoint paths
means:
Paths and share only
startandend.
Equivalently: