I'm wrtting in algorithm that has the length equal to one page under latex. the algorithm float to the next page , and a blank space is left after the paragraph that preceds that algorithm .
The used code is similar to the following :
\documentclass{article}
\usepackage{amsmath, amssymb}
\usepackage{pdflscape}
\usepackage[margin=0.5in]{geometry}
\usepackage{colortbl}
\usepackage[margin=1cm]{caption}
\usepackage{multirow}
\usepackage{booktabs}
\usepackage{float}
\usepackage{graphicx}
\graphicspath{{figures/}}
\usepackage{longtable}
\usepackage{algorithm}
\usepackage{algorithmic}
\usepackage{pdfpages}
\begin{document}
------Some paragraph --------
\begin{algorithm}
\caption{ algorithm_title}
\begin{algorithmic}
-----Some instructions ----
\end{algorithmic}
\end{algorithm}
\end{document}
Another view of document ( there is a picture before the paragraph ) :
I wish the question is clear. Thank you in advance for help !


algorithmenvironment is a "floating" environment; two other examples offloatingenvironments arefigureandtable. – Mico Jul 10 '20 at 20:05\smallfont? – pluton Jul 10 '20 at 21:41