From 485c1479ec2fb0f57f7f54e29d407b9de6279692 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Wed, 19 May 2021 22:57:48 +0300 Subject: [PATCH] explanations --- mj-msc.tex | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/mj-msc.tex b/mj-msc.tex index dd51f31..0fd18e8 100644 --- a/mj-msc.tex +++ b/mj-msc.tex @@ -418,14 +418,14 @@ following the rules of the article. \centering \begin{subfigure}[b]{.4\textwidth} \includegraphics[width=\textwidth]{fig6-selfcrossing-before} - \caption{Bend's baseline is crossing another bend} + \caption{Bend's baseline (dotted) is crossing a neighboring bend} \end{subfigure} \hfill \begin{subfigure}[b]{.4\textwidth} \includegraphics[width=\textwidth]{fig6-selfcrossing-after} - \caption{Self-crossing removed} + \caption{Self-crossing removed following the algorithm} \end{subfigure} - \caption{Originally Figure 6: self-line crossing} + \caption{Originally Figure 6: simple case of self-line crossing} \label{fig:fig6-selfcrossing} \end{figure} @@ -438,18 +438,20 @@ figure~\onpage{fig:selfcrossing-1-non-neighbor}. \centering \begin{subfigure}[b]{.4\textwidth} \includegraphics[width=\textwidth]{selfcrossing-1-before} - \caption{Bend's baseline is crossing a non-neighboring bend} + \caption{Bend's baseline (dotted) is crossing a non-neighboring bend} \end{subfigure} \hfill \begin{subfigure}[b]{.4\textwidth} \includegraphics[width=\textwidth]{selfcrossing-1-after} - \caption{Self-crossing removed} + \caption{Self-crossing removed following the algorithm} \end{subfigure} \caption{Self-crossing with non-neighboring bend} \label{fig:selfcrossing-1-non-neighbor} \end{figure} -Naively implemented, checking every bend with every bend is costs $O(n^2)$. +Naively implemented, checking every bend with every bend is costs $O(n^2)$. In +other words, the time it takes to run the algorithm grows quadratically with +the with the number of vertices. It is possible to optimize this step and skip checking some of the bends. Only bends whose sum of inner angles is $\pi$ can ever self-cross. If the value is