That's not a very good idea , since it would make fuel prices go up ALOT , becouse electricity is the most expensive form of energy.
After looking at some figures , it seems to me that you'd waste more energy producing hydrogen , then you'd get from burning it.So electrolysis definatly isn't...