\documentclass{standalone} \usepackage[T1]{fontenc} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{parskip} \usepackage{marvosym} %Lightning symbol \usepackage[usenames,dvipsnames]{color} \usepackage[hidelinks]{hyperref} \renewcommand*{\familydefault}{\sfdefault} \usepackage{bbm} %For \mathbbm{1} %\usepackage{bbold} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw[gray] (0,0) -- (10,0); \draw[gray,dotted] (0,2) -- (10,2); \draw[gray] (0,2) arc (90:270:1); \draw[gray] (10,0) arc (-90:90:1); \foreach \x in {0,...,10} { \draw[fill] (\x,0) circle (0.04); } \draw[fill] (11,1) circle (0.04); \draw[fill] (-1,1) circle (0.04); \foreach \x in {1,2,4,7,9} { \draw[fill,red] (\x,0) circle (0.08); } \draw[<->] (1,-0.5) -- (9,-0.5); \draw (5,-0.9) node {$\mathcal{D}(C)$}; \draw[<->] (4.9,0.3) -- (6.1,0.3); \draw (5.5,0.7) node {$\mathrm{gap}(C)$}; \draw[fill,red] (1,-2) circle (0.08); \draw (2,-2) node {slots $C$}; \draw[fill] (5,-2) circle (0.04); \draw (6.5,-2) node {non-slots $[n]\setminus C$}; \end{tikzpicture} \end{document}