space-time trade-offs