Howdy,
It's more of an indirect effect: CO2 reduces algae since it boosts growth of higher aquatic plants. This boost in growth creates increased competition for nutrients, and while the plants win, algae lose. You basically starve them. At least that's the theory behind it. I have had bad algae problems in a tank with CO2 administration before. Obviously, there are many many factors that play into this.
Regarding the effects of UV on attached algae: I asked the same thing several months ago in the "Set-up Forum". Maybe you can find it when you search for UV and my user name. Bottom line: Some people have noticed a slight decline in attached algae, but that is certainly not the primary area of application for UVs.
HarleyK