First, Abdel Malek Outas’s teachers taught him to write math equations in Arabic, and embrace Islam and the Arab world. Then they told him to write in Latin letters that are no longer branded unpatriotic, and open his mind to the West. Malek is 19, and he is confused. “When we were in middle school we studied only in Arabic,†he said. “When we went to high school, they changed the program, and a lot is in French. Sometimes, we don’t even understand what we are writing.â€... At a time of religious revival across the Muslim world, Algeria’s youth are in play. The focus of this contest is the schools, where for decades Islamists controlled what children learned, and how they learned, officials and education experts here said. Now the government is urgently trying to re-engineer Algerian identity, changing the curriculum to wrest momentum from the Islamists, provide its youth with more employable skills, and combat the terrorism it fears schools have inadvertently encouraged. It appears to be the most ambitious attempt in the region to change a school system to make its students less vulnerable to religious extremism. But many educators are resisting the changes, and many disenchanted young men are dropping out of schools. It is a tense time in Algiers, where city streets are crowded with police officers and security checkpoints and alive with fears that Algeria is facing a resurgence of Islamic terrorism. From 1991 to 2002, as many as 200,000 Algerians died in fighting between government forces and Islamic terrorists. Now one of the main terrorist groups, the Salafist Group for Preaching and Combat, or G.S.P.C., has affiliated with Al Qaeda, rebranding itself as Al Qaeda in the Islamic Maghreb.