A space–time tradeoff for implementing a function with master equation dynamics