Definition. Subset construction [017T]

Let M be an NFA\varepsilon over an alphabet \Sigma ; we define an DFA \mathcal {P}{\mathopen {}\left (M\right )\mathclose {}} over \Sigma called the subset construction of M as follows:

  1. We define the set of states of \mathcal {P}{\mathopen {}\left (M\right )\mathclose {}} to be the powerset of the set of states of M. Q_{\mathcal {P}{\mathopen {}\left (M\right )\mathclose {}}} = \mathcal {P}{\mathopen {}\left (Q_{M}\right )\mathclose {}} = {\mathopen {}\left \{S\,\middle \vert \,S\subseteq Q_{M}\right \}\mathclose {}}
  2. The transition function \delta _{\mathcal {P}{\mathopen {}\left (M\right )\mathclose {}}}\colon \mathcal {P}{\mathopen {}\left (Q_{M}\right )\mathclose {}} \times \Sigma \to \mathcal {P}{\mathopen {}\left (Q_{M}\right )\mathclose {}} is so that a set of states S transitions along the symbol a\in \Sigma to the set of states reachable via a from some element of S: \delta _{\mathcal {P}{\mathopen {}\left (M\right )\mathclose {}}}{\mathopen {}\left (S,a\right )\mathclose {}} = {\mathopen {}\left \{ q':Q_{M} \,\middle \vert \, \exists q\in S\mathpunct {.} q\mathrel {\xRightarrow {a}} q' \text { in } M \right \}\mathclose {}} (Optional observation: this is a relational direct image.)
  3. The starting state of \mathcal {P}{\mathopen {}\left (M\right )\mathclose {}} is the set of states reachable by any number of \varepsilon -transitions from the starting state of M, i.e. the set of states reachable from s_{M} via the empty string: s_{\mathcal {P}{\mathopen {}\left (M\right )\mathclose {}}} = {\mathopen {}\left \{q: Q\,\middle \vert \,s_{M}\mathrel {\xRightarrow {\epsilon }}q\right \}\mathclose {}}
  4. An accepting set of states is one that contains an accepting state from M: F_{\mathcal {P}{\mathopen {}\left (M\right )\mathclose {}}} = {\mathopen {}\left \{S\subseteq Q_{M}\,\middle \vert \, \exists q\in S\mathpunct {.} q\in F_{M} \right \}\mathclose {}}