summaryrefslogtreecommitdiff
path: root/graph
diff options
context:
space:
mode:
authormzuenni <michi.zuendorf@gmail.com>2024-06-30 00:26:10 +0200
committermzuenni <michi.zuendorf@gmail.com>2024-06-30 00:26:10 +0200
commit545265f2f3992e15c45f1bbb99e04a27e1fc7856 (patch)
treed2dbe3fff1612af616090a79d373983d1ea3f02e /graph
parent9e8344e44eb06ac4a8618413ff2b2311c6348dad (diff)
improvements
Diffstat (limited to 'graph')
-rw-r--r--graph/LCA_sparse.cpp2
-rw-r--r--graph/cycleCounting.cpp2
-rw-r--r--graph/graph.tex4
-rw-r--r--graph/matching.cpp2
4 files changed, 5 insertions, 5 deletions
diff --git a/graph/LCA_sparse.cpp b/graph/LCA_sparse.cpp
index 2a864c0..649e697 100644
--- a/graph/LCA_sparse.cpp
+++ b/graph/LCA_sparse.cpp
@@ -2,7 +2,7 @@ struct LCA {
vector<ll> depth;
vector<int> visited, first;
int idx;
- SparseTable st; //sparse table von oben
+ SparseTable st; //sparse table @\sourceref{datastructures/sparseTable.cpp}@
void init(vector<vector<int>>& adj, int root) {
depth.assign(2 * sz(adj), 0);
diff --git a/graph/cycleCounting.cpp b/graph/cycleCounting.cpp
index 9772706..bd7a219 100644
--- a/graph/cycleCounting.cpp
+++ b/graph/cycleCounting.cpp
@@ -39,7 +39,7 @@ struct cylces {
//cycle must be constrcuted from base
bool isCycle(cycle cur) {
if (cur.none()) return false;
- init(sz(adj)); // union find
+ init(sz(adj)); // union find @\sourceref{datastructures/unionFind.cpp}@
for (int i = 0; i < sz(edges); i++) {
if (cur[i]) {
cur[i] = false;
diff --git a/graph/graph.tex b/graph/graph.tex
index 0f516ac..9232090 100644
--- a/graph/graph.tex
+++ b/graph/graph.tex
@@ -225,7 +225,7 @@ Sei $a_{ij}$ die Adjazenzmatrix von $G$ \textcolor{gray}{(mit $a_{ii} = 1$)}, da
\method{addEdge}{fügt eine \textbf{gerichtete} Kante ein}{1}
\end{methods}
\sourcecode{graph/dinicScaling.cpp}
-\vfill*
+\vfill\null
\columnbreak
\optional{
@@ -256,7 +256,7 @@ Sei $a_{ij}$ die Adjazenzmatrix von $G$ \textcolor{gray}{(mit $a_{ii} = 1$)}, da
\end{methods}
\sourcecode{graph/maxWeightBipartiteMatching.cpp}
\end{algorithm}
-\vfill*
+\vfill\null
\columnbreak
diff --git a/graph/matching.cpp b/graph/matching.cpp
index f059351..2513604 100644
--- a/graph/matching.cpp
+++ b/graph/matching.cpp
@@ -12,7 +12,7 @@ int max_matching() {
mat[v][u] = rand() % (MOD - 1) + 1;
mat[u][v] = MOD - mat[v][u];
}}}
- gauss(sz(adj), MOD); //LGS unten
+ gauss(sz(adj), MOD); //LGS @\sourceref{math/lgsFp.cpp}@
int rank = 0;
for (auto& row : mat) {
if (*min_element(all(row)) != 0) rank++;