Algerian president accepts resignation of government