Algorithms from various competitve programming websites and contests.