Based on the book "Computational Complexity" by C. H. Papadimitrio

Edit and compile if you like:
% Author: Sebastian Sardina\documentclass[a4paper,10pt]{article}\usepackage{tikz}\usepackage[active,tightpage]{preview}\PreviewEnvironment{tikzpicture}\setlength\PreviewBorder{5pt}%\begin{document}\begin{tikzpicture}\pgftransformscale{.8}%%% HELP LINES - uncomment to design/extend% \draw[step=1cm,gray,very thin] (-10,0) grid (10,12);% \node at (0,0) {\textbf{(0,0)}};%% Horizontal bar\draw[very thick] (10,0) -- (-10,0);% LOG TIME\draw (-1,0) parabola bend (0,2) (1,0) ;\node at (0,1) {\begin{tabular}{c}LOG \\ Time\end{tabular}};% LOG SPACE\draw (-2,0) parabola bend (0,3.5) (2,0);\node at (0,2.5) {\begin{tabular}{c}LOG \\ Space\end{tabular}};% PTIME\draw (-3,0) parabola bend (0,4.5) (3,0);\node at (0,4) {PTIME};% NP\draw[dotted] (-4,0) parabola bend (2,6) (4.5,0);\node[rotate=-45] at (3,3.5) {NPTIME};
Click to download: complexity-classes.tex • complexity-classes.pdf
Open in Overleaf: complexity-classes.tex