Answer:
they are the same process, just reversed
Step-by-step explanation:
Electrolysis is the process that converts electrical energy into chemical energy. The process involves the decomposition of an ionic compound by means of electric current passed through its solution.
A battery is an electrochemical cell in which chemical energy is converted to electrical energy. Here chemical reactions usually redox produces electric current.