I was thinking about an approval-style voting system that could end with a large number of ties, and ran into the problem of how to break ties in a provably-fair way that doesn’t depend on candidates trusting each other and won’t make voters’ eyes glaze over.

I think I found a solution which is provably-fair, but it might still cross over into eye-glazing territory. I don’t know if this is practical (or novel), but I’m writing it up in case anyone else finds it interesting.

Complex diagram with three green boxes on left (Alice-0, Bob-1, Carol-2) with multiple arrows branching to two calculation diamonds in the center: a green diamond showing 0+1+0=1 and a yellow diamond showing 1+0+0=1; arrows continue to two yellow result boxes on right (Alice-0, Carol-1); a curved arrow labeled 'Winner (1)' extends from bottom left

Read more

Today, I found an interesting article about password timing attacks. The basic point is that if you check a password one character at a time, the amount of time it takes to receive a “bad password” response tells you how many characters you got right.

Read more

I’ve been subscribed to Interview Cake for years, and today they had a really interesting question: Given a list of n + 1 integers in the range 1...n, find one of the duplicates (there is guaranteed to be at least one) in O(n) time and O(1) additional space. The answer is really interesting, and I recommend trying it, but I don’t think it makes sense to care about additional space rather than total space, and I still think using a set to keep track of numbers (the most obvious solution) is the best solution in practice.

Read more

As incomes have risen, it’s important for Americans to find new ways to spend ever-increasing amounts of money. I propose that we spend some of it traveling to pick and eat fresh fruit that doesn’t travel well.

Content Warning: Knowing how delicious fresh fruit can be is an infohazard for your wallet.

Close-up of blackberries on a branch with a blue arrow pointing to one particularly ripe, dark berry

Read more