edited by
739 views
0 0 votes
Let $Σ = \{a, b\}$. Given words $u, v \in  Σ*$ , we say that $v$ extends $u$ if $v$ is of the form $xuy$ for some $x, y ∈ Σ^*$ . Given a fixed word $u$, we are interested in identifying whether a finite state automaton accepts some word that extends $u$.

Describe an algorithm that takes as input a finite state automaton (DFA or NFA) $\mathcal{A}$ over $Σ = \{a, b\}$ and a word $u ∈ Σ^*$  and reports “Yes” if some word in the language of $\mathcal{A}$ extends $u$ and “No” if no word in the language of $\mathcal{A}$ extends $u$.

1 Answer

Position:
Show:

Related questions

0 0 votes
2 2 answers
813
813 views
Tesla! asked Feb 5, 2018
813 views
Let $Σ = \{a, b, c\}$. Let Leven be the set of all even length strings in $Σ^*$$(a)$ Construct a deterministic finite state automaton for $L_{even}$.$(b$) We consider an ...
5 5 votes
2 answers 2 answers
2.6k
2.6k views
Tesla! asked Feb 5, 2018
2,648 views
Consider the following function that takes as input a sequence $A$ of integers with n elements,$A ,A , \dots ,A[n]$ and an integer $k$ and returns an integer value. The f...
1 1 vote
2 2 answers
1.1k
1.1k views
Tesla! asked Feb 5, 2018
1,140 views
We are given a sequence of pairs of integers $(a_1, b_1),(a_2, b_2), \dots ,(a_n, b_n)$. We would like to compute the largest $k$ such that there is a sequence of numbers...
1 1 vote
3 3 answers
2.5k
2.5k views
Tesla! asked Feb 5, 2018
2,472 views
An undirected graph is $\text{connected}$ if, for any two vertices $\{u, v\}$ of the graph, there is a path in the graph starting at $u$ and ending at $v$. A tree is a co...