The question is confused. The AI processes that are thought to be most promising with respect to eventually leading to intelligent machines are not algorithmic. That is, they are based on neural networks. And while it is possible to simulate those using algorithms (e.g., the RBM cascade pattern, with each node simulated as an RBM node), these "algorithms" are non-deterministic - they are simulations - we cannot know the outcomes, just as one cannot know the outcome of a human's thought process. But with regard to religion, that seems to be a human predisposition with a genetic basis, and since religion is based on absolute unquestioning faith in things that are seemingly preposterous - a cognitive dissonance if there ever was one - I don't think that we can expect intelligent machines - which are free of our cognitive impairments - to be susceptible to conversion to religion. Still, I suspect that artificial intelligences will have the same wonder and confusion about existence as we do - they just will not look to iron age shaman texts for their answers.