constant-time coding