My problem is I would like to make a figure in LaTeX, which looks like the picture. It's important that the y-axis is scaled in a similar way as the picture.

BTW I'm using Windows, MikTeX and TeXmaker if it makes a difference.
Here is what i have tried so far:
\documentclass[12pt,a4paper]{report}
\usepackage[utf8]{inputenc}
\usepackage{tikz}
\usepackage{pgfplots}
\begin{document}
\begin{figure}
\begin{tikzpicture}[yscale=0.17]
\draw [help lines, <->] (2,0) -- (8,0);
\draw [help lines, ->] (2,35) -- (2,0);
\draw [blue,domain=2:4.9] plot (\x, {factorial(\x)}) node[right]{$n!$};
\draw [blue,domain=2:5] plot (\x, {pow(2,\x}) node[right]{$2^n$};
\draw [blue,domain=2:6] plot (\x, {pow(\x,2}) node[right]{$n^2$};
\draw [red, domain=2:8] plot (\x, {\x*log10(\x)}) node[right]{$nlog(n)$};
\draw [green,domain=2:8] plot (\x, {\x}) node[right]{$n$};
\draw [blue,domain=2:8] plot (\x, {log10(\x)}) node[right]{$log(n)$};
\draw [black,domain=2:8] plot (\x, {1}) node[right]{$1$};
\end{tikzpicture}
\end{figure}
\begin{figure}
\begin{tikzpicture}
\begin{axis}[title=Random Dataset,
ytick={1,2,4,8,16,32,64,128,256,512,1024,2024,4096}, % new bit
scaled ticks=true,
axis x line=bottom,
axis y line=left,
axis line style=-,
enlargelimits,
ylabel = Solving Time (ms),
xlabel = Service Class Size,
ymode=log,
]
% \draw [help lines, <->] (2,0) -- (8,0);
% \draw [help lines, ->] (2,35) -- (2,0);
\draw [blue,domain=1:4.9] plot (\x, {factorial(\x)}) node[right]{$n!$};
\draw [blue,domain=0:5] plot (\x, {pow(2,\x}) node[right]{$2^n$};
\draw [blue,domain=1:6] plot (\x, {pow(\x,2}) node[right]{$n^2$};
\draw [red, domain=1:8] plot (\x, {\x*log10(\x)}) node[right]{$nlog(n)$};
\draw [green,domain=0:8] plot (\x, {\x}) node[right]{$n$};
\draw [blue,domain=1:8] plot (\x, {log10(\x)}) node[right]{$log(n)$};
\draw [black,domain=0:8] plot (\x, {1}) node[right]{$1$};
\end{axis}
\end{tikzpicture}
\end{figure}
\end{document}

pstricks-based workflow for graphics or a PGF/TikZ-based one. – Paul Gessler Mar 17 '15 at 11:50{ }at the top of the editor box) to format the code in the grey box. – Paul Gessler Mar 17 '15 at 12:59