I am a new user of LaTeX. I am writing a document in Texmaker. I want to write algorithms with algorithm.
The problem is that gives me the error:
! LaTeX Error: File `algorithm.sty' not found.
! LaTeX Error: File `algorithmic.sty' not found.
A minimal example:
\documentclass[10pt]{article}
%\usepackage{algorithm}
\usepackage{algorithmic}
\begin{document}
\section{Algorithm in \LaTex}
\begin{algorithm}
\begin{algorithmic}
\STATE sort the input set $s_i$
\STATE search for $x_i$ in $s_i$
\end{algorithmic}
\end{algorithm}
\end{document}
Should I download algorithm package? If yes then how can I?
I am using Texmaker on Windows XP. I googled it but did not find solutions regarding this.