I am using the algorithmic and algorithm2e package to write the algorithm. I want to use the chapter number in algorithm number. for example for chapter number 3 the first algorithm should be 3.1 and so on.
This can be achieved in algorithm package as
\usepackage[chapter]{algorithm}
How to do this for algorithmic and algorithm2e package.