1. 固定图片、算法表格位置的办法是在\begin旁边打上中括号里面有H
\begin{table} [H]
2. 打时间复杂度的方法
可以参考这一篇。不要用\mathcal 那种方法
How to denote Big O notation in LaTeX like O(n log n)?
\documentclass{article}
\begin{document}
\[ O(n^2) \]
\[ O(n^c) \]
\[ O(g(x)) \]
\[ O(\max(g_1,g_2)) \]
\end{document}
如果是中括号就是换行, 小括号就是不断行
3. 算法加上行号的方法在begin旁边加上数字
\begin{algorithmic}[1]