I'm thinking you have a jammed EGR valve.
http://autorepair.about.com/od/gener...l/bldef165.htm
1. it's not electrical. If it were a failing alternator, you wouldn't have to restart your car, it would actually just come back on randomly.
2. by stepping on the gas, the car won't die ... sometimes. That would make sense too.