Electrolysis of Water. Electrolysis is a technique used by scientists to separate a compound or molecule. into its component parts. By adding electricity to water and providing a path for. the different particles to follow, water can be separated into hydrogen and oxygen. In this experiment you will be taking a sample of salt water and adding a flow of. electricity to it (the electrolysis).