Category Archives: Computer Science

USACO Training Problem 76: Mixing Milk

Since milk packaging is such a low margin business, it is important to keep the price of the raw product (milk) as low as possible. Help Merry Milk Makers get the milk they need in the cheapest possible manner. The … Continue reading

Posted in Algorithms, C++, Code, Computer Science, Tutorial | Leave a comment

Tutorial: Single Threaded Event System

So this is going to be my attempt at trying to explain to you guys how I came up with my event system in C++. Anyways, to start off, why do we need event systems? Well, often times in code … Continue reading

Posted in C++, Code, Computer Science, Infinity, Tutorial | Leave a comment

Endianness and Why It Matters

If you’ve stuck around in the programming world, you’ve probably heard of a system being big endian or little endian at some point. In fact, here are some snippets of code that will produce two different results depending on the … Continue reading

Posted in Code, Computer Science, Random | Leave a comment

Why Virtual Function Table Hooks Work

Back in the day, Strife had a very nice base that a lot of people based their hooks off of. It goes like this:

Posted in C++, Code, Computer Science, Tutorial | Leave a comment

Algorithms: Hail O Mighty Dijkstra

Conceived in the year 1956 and published in 1959, Dijkstra’s algorithm is an universal method of finding a “shortest path” in a system of connected nodes, given that travelling between edges has some sort of cost in which a “least … Continue reading

Posted in Code, Computer Science, Tutorial | Leave a comment

Learn Some C++0x Part 1: auto Your Way To Victory

So the C++0x standard has been around for quite some time now, and a lot of people still haven’t really learned of its magical features. With this series, I will be going over some of the major new features and … Continue reading

Posted in C++, Code, Computer Science, Tutorial | Leave a comment