Questions tagged [automata]

Automata Theory, including abstract machines, grammars, parsing, grammatical inference, transducers, and finite-state techniques

Automata (plural of automaton) are abstract models of machines. These machines take an input such as a string of characters and give some output, often an "accept" or "decline" value.

These machines are closely related to . Many languages can be categorized based on the type of automata that can accept them. For instance,

  • regular languages can be recognized by some deterministic finite automata.
  • context-free languages can be recognized by some pushdown automata.
  • recursively enumerable languages can be recognized by some Turing machine.

There are many different types of automata, each with slightly different definitions. A few examples are

  • Deterministic Finite Automata (DFA)
  • Nondeterministic Finite Automata (NFA)
  • Pushdown Automata
  • Infinite Automata
  • Alternating Automata

For instance, a deterministic finite automata $A$ has five parts:

  • a finite set of states $Q$
  • a finite set of input symbols called the alphabet $\Sigma$
  • a transition function $\delta: (Q\times \Sigma)\rightarrow Q$
  • an initial state $q_0 \in Q$
  • a set of accept states $F\subseteq Q$

The automaton $A$ takes in a string $\sigma$ of characters of $\Sigma$. The automaton starts at state $q_0$ and then for each letter of $\sigma$ it moves to another state according to the transition function $\delta$. Once the automaton has used every letter of $\sigma$, if its final state is in $F$, then we say that $A$ accepts $\sigma$.

For questions also about

1841 questions
0
votes
1 answer

Is this diagram a deterministic finite automaton or non-deterministic?

From what I understand, an NFA cannot have backtracking. For an assignment I have to have strings that always end with ab's, and I have come up with this diagram. However, I still struggle with the difference between the two and because of the…
ano
  • 37
0
votes
0 answers

$\{w \in \{ 0,1 \}^{*}: w \text{ contains both 101 and 010 as substrings} \}$

The questions is to build a transition diagram for nondeterministic finite automata that accepts the language of all strings that contain both 101 and 010 as substrings. This is what I came up with but I am not sure if it is right: Secondly, what…
0
votes
2 answers

Creating a state diagram for a DFA

How would you draw a state diagram for a DFA over the alphabet $\{0,1\}$ that recognizes the following language: $$\{w=w_1w_2\ldots w_n\in\Sigma^*\mid(w_1-w_2+\ldots+(-1)^{k-1}w_k\bmod4=0\text{ for }k\geq0\text{ and }w_i\in\{0,1\}\}$$ I don't really…
Lilith X
  • 51
  • 2
0
votes
1 answer

the set of all strings of 0's and 1's that are not of the form ww^R

I have to create a PDA(pushdown automata) that accepts strings that not of the form $ww^R$. For example it accepts 0011, 1100, 11000 but not accepts 1001, 011110, 0110. How can I create this PDA? I know the answer of not accepting $ww$, but can't…
0
votes
2 answers

Why is ε included as a step in NFA construction?

Page 68 of Sipser's Intro to the Theory of Computation 3ed, shows the process to build an NFA. Why is ε included here? Can't you just go straight from a -> b?
J. Doe
  • 405
0
votes
1 answer

Langton's Ant is unbounded?

Suppose I have a grid of black/white squares (not necessarily all white). How can I prove that Langton's ant is unbounded when it runs on this initial condition? It seems as though the way to go about this is noting that if it were bounded, it's…
mtheorylord
  • 4,274
0
votes
1 answer

Automata: Proof

Here is the problem: Consider a NFA, M = (K, Σ, Δ, s, F) with (p, a, q) ∈ Δ. Prove that (pʹ, aw) ⊢∗ (qʹ, w) for any w ∈ Σ∗, q′ ∈ E(q) and p′ with p ∈ E(p′). Thanks in advance.
0
votes
0 answers

Two languages such that $L_1 \cup L_2 \leq_m\, L_1 \cap L_2$ and two (other?) such that $L_1 \cap L_2 ≤_m\, L_1 \cup L_2$?

Are there languages $L_1$, $L_2$ such that such that $$L_1 \cup L_2\leq_m\, L_1\cap L_2,$$ and two other languages such that $$L_1 \cap L_2 \leq_m\, L_1 \cup L_2?$$ And if so, what are they? How can i go about finding these?
0
votes
1 answer

Pumping Lemma Confusing

Note: $\lambda $ means empty in this case. If $v\neq\lambda$, then $|v|\ge1$. But then, the 2nd condition allows $uv^0w$ where $v^0=\lambda$ and $|v|=0$??? Shouldn't the 2nd condition only allow $i\ge1$ to maintain the 1st condition?
0
votes
1 answer

Proof using Pumping Lemma

For the example proof below, how could $|v|\ge1$ when we've already set it to $v^0$ (pump $0$ times)? Reference:
0
votes
1 answer

Why is this an NFA, but not an FA?

It doesn't have non-deterministic paths. Every transition is one-to-one. Accepted states are defined/guaranteed on specific inputs. Not sure why its not an FA Edit: 0.0.2
0
votes
1 answer

DFM accepting sum of ab* and ba*

I have a problem with task: Draw a diagram of the deterministic finite state machine accepting the sum of languages marked with regular expressions ab* and ba*. I resolve task: Draw a diagram of the deterministic state finite machine accepting the…
Mr. Pat
  • 13
  • 2
0
votes
0 answers

NFA to Regular expression

Above is a try of converting a NFA to a regular expression (can a moderator rotate it please). There must be somewhere along the process where I do something wrong because if you compare the end result (union between the last two transitions)…
0
votes
1 answer

Finding language accepted by a DFA

Our current DFA shown below, $M$, accepts binary strings with an even number of 0's and odd number of 1's. (since it only has accept state $q_1$). Suppose $q_1$ is no longer an accept state and $q_0$ is now added as an accept state. Then we can say…
Dmomo
  • 143
0
votes
1 answer

If $L$ is regular, then $L' = \{ x\#y \, |\, yx \in L \}$ is regular.

If $L$ is regular, then $L' = \{ x\#y \, |\, yx \in L \}$ is regular. Assume that no word in $L$ contains $\#$. I think this is true. But I want to prove this without construction. Here is what I have so far: $pref(L)$ which is the language of all…