In capacitive deionization (CDI), salt water is passed through two polarized electrodes, whereby the salt is adsorbed onto the electrode…