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

Finding minimal DFA for language

Find minimal DKA for language of all words in alphabet $ \left\{ 0,1 \right\}^* $ in which every double zero $00$ comes before every double one $11$. Also find the regular expression for the language. $$$$ I tried constructing a NFA epsilon, but I…
user15269
  • 1,632
1
vote
2 answers

Which base to use for binary when constructing DFA

Noob here with simple question. I'm building a DFA for a homework problem. I have to make a DFA where the binary representation of a number is divisble by N. As a sample input of 5, I'm not sure if I need to use 101 or 00000101? Because that…
mdo123
  • 43
1
vote
1 answer

DFA for accepting strings starting and ending with same symbol.

In a previous exam in my college, I had a question to construct Regular Expression for DFA starting and ending with the same symbol. My question is, Should it accept \epsilon in its language?
1
vote
1 answer

DFA for odd a's and even a's?? When to accept empty string??

I am trying to understand these two machines separately, DFA1(Accepting only odd number of 0’s) and DFA2 (Accepting only even number of 1’s). DFA1 doesn't accept empty string but DFA2 accepts empty string as well...?? Shouldn't both DFA's be…
1
vote
1 answer

A language L over an alphabet Σ such that for all homomorphisms h : Σ* → Σ* there exists a string x ∈ L for which |h(x)| ≤ |x|?

Does there exist a language L over an alphabet Σ such that for all homomorphisms h : Σ* → Σ* there exists a string x ∈ L for which |h(x)| ≤ |x|?
1
vote
1 answer

What happens when apply reversal to the empty language?

Reversal changes start states to final states and final states to start states, and changes the direction of arrows. The empty language has no final states, so does this reversal creates something that does not exist, and if so, is the reversal of…
1
vote
0 answers

Automata|f(L) take the length of a regular language's prefix to the length of the rest

If $f$ is a function of integers, define $f(L)$ to be $$ \{w \mid \text{for some $x$, with $|x| = f(|w|)$, we have $wx$ in $L$}\}. $$ Show that if $L$ is a regular language, then so if $f(L)$, if $f$ is one of the following functions: $f(n)=n^2$…
gcc17
  • 61
1
vote
1 answer

FA that accepts odd 1's and ends with 101

I have been trying to come up with a FA that accepts odd 1's and ends with 101, also leading zeros are allowed. So far I have this. Problem is as you can see it fails with the string 000010000100010101 which has odd number of 1's and ends with…
afb
  • 33
1
vote
1 answer

DFM symbol a occurs twice

Let the L language over the alphabet {a, b, c} consist exactly of all words in which the symbol a occurs at least twice. Draw a diagram of the deteminist state-finite automaton accepting L and provide a regular expression denoting this…
Mr. Pat
  • 13
  • 2
1
vote
1 answer

Create NFA where the second symbol of the string is the same with the last symbol

I have tried: Let $L= \{a,b,c,d, \dots, z\}$. Create NFA where the second symbol of the string is the same with the last symbol. How do I solve this? Should I do repeatedly until $z$?
1
vote
1 answer

Are these languages regular?

$L_1 = \{0^k1^n \mid k \equiv n \bmod 3 \}$ This one I assume isn't since it's infinite $L_2 = \{0^k1^{3k+2} \mid k>0 \}$ This one I assume also isn't regular because it relates on $k$ on both $0$ and $1$, and we can't store the amount of $0$'s we…
1
vote
1 answer

Finding a set that isn't in the image

$A_{DFA}(n)=\{M |M $ is a DFA, and $ |Q|=n\}$ , Where Q is the number of states in M. Therefore $\bigcup_{n =0}^\infty A_{DFA}(n) \\$ is the set of all deterministic finite automatons. Let $f:\bigcup_{n =0}^\infty A_{DFA}(n)\rightarrow…
Eliads
  • 359
1
vote
1 answer

Büchi Pushdown System Accepting Run

From the following definitions: Definition (Büchi Pushdown System) A Buchi pushdown system (BPDS) is a tuple BP = (Q,S,→,Qf) with (Q,S,→) a PDS (where S is the stack content) and Qf ⊆ Q a set of final states. The semantics is defined in terms of…
1
vote
0 answers

Converting NFA to DFA. Loops and exits.

Task Convert the following NFA to a DFA. My process Our goal is to achieve the following L(M'') = L(M') = L(M) where M is our NFA and L(M) is the set of all strings that M accepts. Make sure that I don't have any state transitions that accept more…
1
vote
1 answer

Conversion of Epsilon NFA to DFA

on the following problem: Convert the following ε-NFA to DFA and prove if it is equivalent or not with the A2 in the picture i think that the epsilon closure of the {3,8} should be {1,2,4,7,8} and i don't know if i made it correct here