hobbes algorithm