Explain methods of decomposition?

Electrolysis, by passing a spark through water to form hydrogen and oxygen gas. Electrolysis, by passing a spark through water to form hydrogen and oxygen gas. and heating is also a method.