2 ms·
Because a stateless program can execute in only one way for any given inputs. A stateful program can execute in 2^n different ways for each bit of state for an
by llm_trw 3y ago
Because a stateless program can execute in only one way for any given inputs.
A stateful program can execute in 2^n different ways for each bit of state for any given inputs.
- mrkeen 3y ago> 2^n If it only computes from an expression to an expression. I think the bound might be higher if you use imperative statements (/effects). You can fill the whole 2^n output space by calling random(). But in addition to that, the program might also delete an arbitrary file, or deadlock, etc.