title: Latex: Change the numbering style for algorithms
body: <p>My problem is that I do not know how to change the numbering style for algorithms. I have created an algoritm and its number is "Algorithm 1", but I want to have "Algorithm N.1", where N is the number of current chapter.</p>
  
  <p>Let assume I have something like below</p>
  
  <pre><code>\begin{algorithm}
      \begin{algorithmic}
          \FOR{$i = 1$ till end}
              \STATE do something
          \ENDFOR
       \end{algorithmic}
       \label{aForLoop}
       \caption{some caption}
   \end{algorithm}
  </code></pre>
  
  <p>Any help will appreciated.</p>