Bones of algorithm