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
0 answers

Dfa accepting all strings with odd number of 0's and odd number of 1's

The alphabets are Σ={0,1} Want to design a DFA that accept all strings with odd number of 0's and odd number of 1's is it possible?
0
votes
0 answers

Why is this transition considered to be non deterministic?

These are transitions for a push down automata. ((p, a, ϵ),(q, γ)) is equivalent to, if in state p, reading input a, do nothing to the stack, transition to state q, push γ on to stack. 1. ((p, a, ϵ),(q, γ)) ((p, ϵ, A),(q′, γ′)) Both transitions…
pajkatt
  • 373
0
votes
1 answer

Explanation of first part of Cook's Theorem

From Introduction to Automata Theory, Languages, and Computation (2nd ed.): pp. 428 - 429 Theorem 10.9: (Cook's Theorem) SAT is NP-complete. Proof: The first part of the proof is showing that SAT is in NP. This part is easy: Use the…
0
votes
1 answer

Proving that an automata has $14$ states to recognize the language recognizing $w$, $|w|$ divisible by $2$ and $7$?

Let be the following language $L_k=\{w,|w| \mbox{ is divisible by } $k$\}$ I thought it would have been only one state, the state that recognize that the length is divisible by $2$ and that recognize that the length is divisible by $14$. I deduce…
0
votes
1 answer

Is it possible to OR with an empty set?

I am working with converting an NFA to a DFA and came across an odd set notation issue that I don't know how to answer. Say I have the following NFA and assume the starting state to be zero: So if I let q0 = A, q1 = B, q2 = C then B is my only…
Callat
  • 111
  • 5
0
votes
1 answer

what does $a^* \cup b^*$ mean?

I have to provide a DFA for the following language: $L=\{w|w$ is any string not in $a^* \cup b^*\}$ what does $a^* \cup b^*$ mean?
TheMathNoob
  • 2,011
0
votes
0 answers

Understanding DFA(Deterministic Finite Automaton)

I have to provide a DFA for the following langage: $L=\{w|w$ is any string not in $a^*b^*\}$ For this problem, I think I have to use the complement; however, I don't clearly understand what $a^*b^*$ stands for. I think it's just all the strings in…
TheMathNoob
  • 2,011
0
votes
1 answer

The closure of two languages

From Introduction to Automata Theory, Languages, and Computation (2nd Edition): "For a final example, the closure of the empty set = { epsilon } where epsilon is the empty string. Empty set is one of only two languages whose closure is not…
0
votes
1 answer

Proof related to a finite state machine

I have this confusion related to a finite state machine M such that if the number of states n>=2, then there exits i $ \overset{i}\equiv{}= {\overset{i+1}\equiv{}}$ I mean the $i^{th}$ equivalence class = ${i+1}^{th}$ equivalence class How can I…
user34790
  • 4,192
0
votes
1 answer

Problem constructing a DFA

I have just started learning about DFAs and regular languages, and have had some success with constructing simple ones such as ensuring an even number of 1's and 0's but have got a bit confused trying to design a DFA which will accept two (or more)…
CF666
  • 11
0
votes
1 answer

Non-Deterministic Push Down Automata

Can we make a NPDA for the following language? $$L=\big\{w\in\{a,b\}^*:|w|_a\ne 3|w|_b\big\}$$ I was asked this question in exam today and I was unable to do so. Can anyone guide me?
user123
  • 33
0
votes
0 answers

Length of xy in binary?

I'm taking a course in Automata and I have homework (I'll solve it myself, I just need to know the exact meaning of the statement) asking me to answer what the length of $x$ and $y$ is, where both $x$ and $y$ are binary numbers. I don't quite…
Lobs002
  • 91
0
votes
1 answer

Given two NFAs, is there a way to figure out if there exists a language that works for both of them?

Given two non-deterministic finite automaton, is there a way to determine if there exists a single language that satisfies them both?
Takkun
  • 433
0
votes
1 answer

Consider the given regular grammar what are the Myhill-Nerode equivalence classes for the language generated by the grammar?

S → bS | aA | ϵ A → aS | bA A) {w ∊ (a + b)* | #a(w) is even) and {w ∊ (a + b)* | #a(w) is odd} B) {w ∊ (a + b)* | #a(w) is even) and {w ∊ (a + b)* | #b(w) is odd} C){w ∊ (a + b)* | #a(w) = #b(w) and {w ∊ (a + b)* | #a(w) ≠ #b(w)} D) {ϵ}, {wa |…
radhika
  • 361
0
votes
0 answers

How many states needed for this FSM, and how do I define them?

I want to define states for FSM that gives an output $1$ if and only if $X$ is dividable by $5$ with a residue of 3. where $X$ is the binary number that the machine got until now (Not Including current digit), for Example:
F1sargyan
  • 727