115 lines
4 KiB
TeX
115 lines
4 KiB
TeX
|
\documentclass[unicode,11pt,a4paper,oneside,numbers=endperiod,openany]{scrartcl}
|
||
|
\usepackage{graphicx}
|
||
|
\usepackage{subcaption}
|
||
|
\usepackage{amsmath}
|
||
|
\input{assignment.sty}
|
||
|
\usepackage{pgfplots}
|
||
|
\pgfplotsset{compat=newest}
|
||
|
\usetikzlibrary{plotmarks}
|
||
|
\usetikzlibrary{arrows.meta}
|
||
|
\usepgfplotslibrary{patchplots}
|
||
|
\usepackage{grffile}
|
||
|
\usepackage{amsmath}
|
||
|
\usepackage{subcaption}
|
||
|
|
||
|
\hyphenation{PageRank}
|
||
|
\hyphenation{PageRanks}
|
||
|
|
||
|
\begin{document}
|
||
|
|
||
|
|
||
|
\setassignment
|
||
|
\setduedate{Wednesday, 4 November 2020, 11:55 PM}
|
||
|
|
||
|
\serieheader{Numerical Computing}{2020}{Student: Claudio Maggioni}{Discussed with: --}{Solution for Project 3}{}
|
||
|
\newline
|
||
|
|
||
|
\assignmentpolicy
|
||
|
|
||
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||
|
\section{Install METIS 5.0.2, and the corresponding Matlab mex interface}
|
||
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||
|
|
||
|
\section{Implement various graph partitioning algorithms \punkte{60}}
|
||
|
I summarize the various benchmark results in table \ref{table:bisection}. Please note that this table
|
||
|
can be generated at will with the script \texttt{ex2\_bisection\_table.m}.
|
||
|
|
||
|
\section{Visualize the Fiedler eigenvector\punkte{10}}
|
||
|
|
||
|
In figure \ref{fig:run1} there are graph outputs respectively from \textit{Grid9}, \textit{Small}, and \textit{Eppstein}.
|
||
|
|
||
|
\begin{figure}[h]
|
||
|
\begin{subfigure}{0.5\textwidth}
|
||
|
\centering
|
||
|
\includegraphics[trim=50 200 50 200,clip,width=\textwidth]{ex3_grid9.pdf}
|
||
|
\caption{Plot for \textit{Grid9}}
|
||
|
\end{subfigure}
|
||
|
\begin{subfigure}{0.5\textwidth}
|
||
|
\centering
|
||
|
\includegraphics[trim=50 200 50 200,clip,width=\textwidth]{ex3_small.pdf}
|
||
|
\caption{Plot for \textit{Small}}
|
||
|
\end{subfigure}
|
||
|
\begin{subfigure}{0.5\textwidth}
|
||
|
\includegraphics[trim=50 200 50 200,clip,width=\textwidth]{ex3_eppstein.pdf}
|
||
|
\caption{Plot for \textit{Eppstein}}
|
||
|
\end{subfigure}
|
||
|
\caption{Graph outputs for the 3 adjacency matrices.}
|
||
|
\label{fig:run1}
|
||
|
\end{figure}
|
||
|
|
||
|
\section{Recursively bisecting meshes \punkte{20}}
|
||
|
|
||
|
Summarize your results in table \ref{table:Rec_bisection}.
|
||
|
|
||
|
\section{Compare recursive bisection to direct $k$-way partitioning\punkte{10}}
|
||
|
|
||
|
Summarize your results in table \ref{table:Compare_Metis}.
|
||
|
|
||
|
\begin{table}[h]
|
||
|
\caption{Bisection results}
|
||
|
\centering
|
||
|
\begin{tabular}{|l|r|r|r|r|} \hline\hline
|
||
|
Mesh & Coordinate & Metis 5.0.2 & Spectral & Inertial \\ \hline
|
||
|
grid5rect(10,100)& 10 & 10 & 10 & 10 \\
|
||
|
grid5rect(100,10)& 10 & 10 & 10 & 10 \\
|
||
|
grid5recRotate(100,10,-45)& 18 & 10 & 10 & 10 \\
|
||
|
gridt(40) & 58 & 58 & 58 & 58 \\
|
||
|
grid9(30) & 88 & 92 & 104 & 88 \\
|
||
|
Smallmesh & 25 & 13 & 12 & 30 \\
|
||
|
Tapir & 55 & 34 & 18 & 49 \\
|
||
|
Eppstein & 42 & 48 & 45 & 45 \\ \hline \hline
|
||
|
\end{tabular}
|
||
|
\label{table:bisection}
|
||
|
\end{table}
|
||
|
|
||
|
|
||
|
\begin{table}[h]
|
||
|
\caption{Edge-cut results for recursive bi-partitioning.}
|
||
|
\centering
|
||
|
\begin{tabular}{|l|r|r|r|r|r|} \hline\hline
|
||
|
Case & Spectral & Metis 5.0.2 & Coordinate & Inertial \\ \hline
|
||
|
mesh3e1 & & & & \\
|
||
|
airfoil1 & & & & \\
|
||
|
3elt & & & & \\
|
||
|
barth4 & & & & \\
|
||
|
crack & & & & \\ \hline \hline
|
||
|
\end{tabular}
|
||
|
\label{table:Rec_bisection}
|
||
|
\end{table}
|
||
|
|
||
|
|
||
|
\begin{table}[h]
|
||
|
\caption{Comparing the number of cut edges for recursive bisection and direct multiway partitioning in Metis 5.0.2.}
|
||
|
\centering
|
||
|
\begin{tabular}{|l|r|r|r|r|} \hline\hline
|
||
|
Partitions & crack & airfoil1 \\ \hline
|
||
|
16 & & \\
|
||
|
32 & & \\ \hline \hline
|
||
|
\end{tabular}
|
||
|
\label{table:Compare_Metis}
|
||
|
\end{table}
|
||
|
|
||
|
|
||
|
|
||
|
\end{document}
|