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
1
vote
1 answer

Show a Turing Machine accepts all DFAs

You have a Turing Machine $T = \{ \{ A \} \mid A$ is a DFA and $L(A) = \Sigma^* \}$ i.e. the DFA that accepts all languages. Show it's decidable. Can you use the complement of this, the DFA that accepts the empty language which I believe is…
Aaron
  • 63
1
vote
1 answer

Converting the NFA produced from the language $a^nb^n : n\geq 0$ to a DFA to show its regular? Leading to question about pumping lemma.

I am reading about the pumping lemma, and having a hard time understanding it. I noticed that it is used to prove a language is not regular by contradiction. So you must first prove that a language in not regular by defying one of the rules that…
KDecker
  • 861
  • 2
  • 11
  • 23
1
vote
2 answers

Construct finite Automata

Im trying to construct finite automata in the form of diagrams accepting certain languages. One is in all parts the alphabet is $\{a, b\}$. Construct FA $\{w \mid w \text{ has neither $aa$ nor $bb$ as a subword}\}$ I understand that for any word…
1
vote
1 answer

Building PDA for a Language

I won't deny that this is not my homework question, but I've been thinking for a couple of hours and still have no understand $L = \{w | w ∈ \{0, 1\}^*\}$, w is a list of unary integers separated by 1’s that are not in ascending order. E.g.…
1
vote
1 answer

Difference between a*b and a*+b? Does the "+" denote Kleene plus or "or"?

Me and a friend are study for a quiz and are trying to determine the difference between the two NFA's produce by the regular exressions a*b and a*+b. To us they seem functionally equivalent. On the left is the nfa produced by a*b and on the right…
KDecker
  • 861
  • 2
  • 11
  • 23
1
vote
1 answer

Checking correctness of finite state automata designed

How to check correctness of finite state automata we have designed for a regular expression with the help of any computer program or prolog?
1
vote
1 answer

what is the effect of adding another stack to a PDA

does it increase the power of a push down automata? or does it have no effect on the power of the PDA ?
klijo
  • 121
1
vote
1 answer

context free grammar that describes even numbers

I am learning about context-free grammars and as a toy example I wanted to design one that describes binary digits ending with 0. My attempt : S -> 1S | 0S | e0 - where e is the empty string. Is this correct?
1
vote
2 answers

Is this DFA correct?

I am reviewing. I need to write a DFA that accepts a string w such that bab is not a substring. Is there any error. Also, any guideline or tips? Since it's a DFA I don't make more than 2 transition from any state and I make sure there is exactly 2…
george
  • 23
1
vote
1 answer

Extended transition function of a DFA - a proof

I would like to write a proof of the following statement $$ \delta^+(q,PQ) = \delta^+(\delta^+(q,P),Q) $$ $\delta^+$ - Extended transition function I have to do it by induction. However, I'm not sure what I should do. At first, check it for $P =…
deem
  • 247
1
vote
1 answer

Can someone explain me the proof?

I don't really understand the proof and I don't understand why it is M2 that "leads" to a reject state instead of M1.
george
  • 19
1
vote
1 answer

Can someone explain to me how this is a proof?

I honestly don't understand how this proves anything.
george
  • 19
1
vote
2 answers

Euclid's Proof that there are an infinite number of primes

I'm trying to clarify my understanding of decidability of a language. The following question is totally made up by me so I hope it makes sense. Let $L = \{A: A \text{ is an algorithm that can prove "There are an infinite number of primes"}\}$ In…
user137481
  • 2,605
1
vote
0 answers

Can the NFA constructs be minimized?

When converting a regular expression to a NFA you need to use certain constructs. My question is can these constructs be minimized? We have one with 4 states, I want to use the one with 2 states below it.
1
vote
2 answers

How do we prove that a particular DFA is minimal?

I guess we need to prove that there is no redundant state, so can we use state elimination and prove that the regular language is minimal? We could prove that the regular language is minimal by contradiction by assuming each part is unnecessary and…