Algeria coach Rabah Saadane said: "Serbia are a similar kind of team to Slovenia, who we will play against in the World Cup."
Algeria will also play England and the United States in the group phase of the competition while Serbia, who are in Group D, will face Germany, Ghana and Australia.
The international friendly has been organised for 3 March 2010 and will be contested at the Stade du 5 Juillet in Algiers. The feverishly anticipated 2010 FIFA World Cup will commense some three months later, with the opening game being played on 11 June 2010.