COSC_3P95_Assignment_1/template_Report.markdown.in

17 lines
957 B
Markdown
Raw Normal View History

2023-10-12 20:46:17 -04:00
\item $MAX\_RAM\_USAGE$: The Max number of bytes a vector used in the test can consume, this is a rough estimate used to put an upper bound on the number of integers in the test. Each test invocation vector is independent and memory is cleared between cycles. This was not designed with buffer reuse or any amount of efficiency so keep that in mind when setting this value too high. The default of 1MiB is fine for this assignment (fails about 15\% of the time).
\end{itemize}
To make sure there are demonstrable bugs, the sorting code intentionally creates errors within the sorted array. To actually sort the values I used the C++ standard algorithm $std::sort$
\begin{lstlisting}[language=c++]
\end{lstlisting}
\subsubsection{Sample Output}
\begin{figure}[H]
\centering
\includegraphics[width=1.0\linewidth]{screenshot001}
\caption{Sample output of the random test generator.}
\label{fig:screenshot001}
\end{figure}
\subsection{B}
\end{document}