Why a Small State Description Can Have Many Configurations
A state made from several independent fields has a number of possible combinations given by the product of their possible values.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 4
- Reading time
- 1 min
In this article4 chapters
Trace three Boolean fields
Three independent bits have eight combinations. Adding one doubles the count to sixteen. See finite bit patterns.
Distinguish representable and reachable states
Some combinations may never arise from the initial state under the transitions. Searching reachable configurations can visit fewer than the full product. Reachability formalizes that smaller set.[1]
Count every independent choice in one configuration
A system has five on/off flags and one of three modes. If all combinations are allowed, its explicit state space has \(2^5\cdot3=96\) configurations. Some can still be unreachable from the starting state under the transition rules. See multiplication of choices.
Five bits → 32 bit patterns
Three modes per pattern → 96 possible combined states
Reachable-state count can be smaller
Use reachability to limit actual exploration
Representation size and explicit enumeration cost are different. Test constraints that exclude flag combinations and track visited states when searching for reachable ones.