Quickly Counting and Sorting Word Use

This is just a quick entry showing how to count the number of times each word is used in a file, sort them by that usage, and print them out in ascending popularity. We use the C++11 standard here for a quick lambda function.

read more

---

Comparing Linked Lists and Vectors

In this article I’m just going to show a very brief comparison of the performance of C++ vectors and linked lists.

read more

Algorithms

---

Virtual functions and abstract classes in C++

When humans write code we also create bugs. The only solution to this problem is to write less code. If we want to accomplish anything meaningful this means finding techniques that accomplishes more with less code. Code reuse is one of these techniques, and inheritence and abstract classes are one of the ways to reuse code in C++ (beyond simply using classes).

read more

Programming Languages

---

Summary of WINLAB waffles talk

I gave a short demonstration of the Waffles machine learning tool (waffles.sourceforge.net ) and I thought I’d summarize things here so that people can refer to it easily. I also made waffles, but I can’t put those online so you’ll just need to make your own.

read more

Winlab Programming Talks

---

Are Deadlocks Possible with Self-Driving Cars?

I can’t wait for the day when my car drives itself, but we probably have a long wait before that happens. When people talk about the difficulties of developing car-driving AIs they usually bring up children or pets running into the road or other conditions that require correct, split-second decisions. However, while driving to the train station the other day another kind of problem was presented to me in the form of a potential driving deadlock, pictured below.

read more

Programming Philosophy

---

« Older