When Ivory Coast and Algeria meet in their final group game of the Africa Cup of Nations they both already know their fate in the competition.