I highly recommend you "The Little Book That Still Beats the Market" by Joel Greenblatt.
This approach works - it's just a longer term algorithm. You will need patience, but over time, you will probably beat S&P 500 by a large margin.
Now, if you are looking for algorithms that trade 1000 times a day etc - forget it, or go find a job at an algorithmic trading shop.