If you use the algorithm package in your LaTeX document, as mentioned below:
you might get this error on compiling it
LaTeX Error: File `algorithm.sty’ not found.
For Ubuntu, this LaTeX package is bundled in the texlive-science package. To install this package.
Run this command in terminal:
sudo apt-get install texlive-science