Algae is, at best, around 10% efficient at converting light into energy. You can use solar power to produce hydrogen at better efficiency than that, but even that's pretty poor. The best is to just use that electricity as it is, and second best is to put it in a battery.