Let w be any string of length \(n\) in \(\{0, 1\}^*\). Let \(L\) be the set of…

GATE · 2010 · CS · Computer Science & IT

Let w be any string of length \(n\) in \(\{0, 1\}^*\). Let \(L\) be the set of all substrings of \(w\). What is the minimum number of states in a non-deterministic finite automaton that accepts \(L\)?

  1. A.

    \(n - 1\)

  2. B.

    \(n\)

  3. C.

    \(n + 1 \)

  4. D.

    \(2^{n -1 }\)

Attempted by 359 students.

Show answer

Correct answer: C

The worked solution is available to enrolled students.

Video solution available to enrolled students.

Explore the full course: Iocl Engineers Officers Grade A Paper 2

Loading lesson…