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

equivalence of finite state and regular expression

Consider the following theorem: Theorem: If L=L(A) for some DFA A, then there is a regular expression R such that L=L(R) Proof: Let A's states be: {1,2,3,....n} for some integer n. Let $ R^k_{ij}$ be the name of regular expression whose language…
bzal
  • 560
1
vote
1 answer

How to compare indices of a string with a Pushdown automata?

I am attempting to construct a PDA of a language that looks like $\ {x\#y\#z}\ $ $x,y,z $ $\epsilon$ $\{ 0,1\}^{+}$ The PDA is nondeterministic, there are some other requirements, but primarily there is one I don't even know how to approach. There…
1
vote
1 answer

Converting ɛ-NFA to RE

How do you do convert an ɛ-NFA to a regular expression? Take for example this ɛ-NFA in which there's an ɛ transition from the final state q2 to the initial state q0: I first combine eliminate q1 and get the regular expression…
Seno
  • 11
1
vote
1 answer

Is my DFA correct?

I have to construct a DFA with $\Sigma = \{A, C, D, X\}$ such that the DFA accepts the string $w = CA^{177}$ or $w = A^{177}C$ and sticks in the final state. $A^{177}$ means $177$ times $A$. So $CA_{1} \cdots A_{177}$ and $A_{1} \cdots A_{177}C$…
John
  • 13
1
vote
1 answer

Prove any DFA with $k<2^n$ states does not accept the strings with an odd number of some character.

Let the language $L_n$ have character set $\Sigma=\{a_1, ..., a_n\}$. $L_n$ has exactly those words which contain some character an odd number of times. That is to say, $\forall w\in L_n\exists a\in \Sigma$ such that $a$ occurs in $w$ an odd…
Addem
  • 5,656
1
vote
1 answer

How to construct an automata that contains an $a$ within the $k$ last chars?

Let be $k\ge1\in \mathbb{N}$. Is there a deterministic automata graph that recognizes the language $L_k=\{w|w \mbox{ contains an a within the k last chars}\}$ ? The alphabet is $\{a,b\}$. Reformulation : the question like is : How to construct…
1
vote
1 answer

Is the language $\{i|f(i)=1\}$ recursive, function $f$ is described further inside.

Possible Duplicate: Show $f$ is primitive recursive, where $f(n) = 1$ if the decimal expansion of $\pi$ contains $n$ consecutive $5$'s $$L = \{i\mid f(i)=1\}$$ $f(i)$ equals $1$ if there is a sequence of at least $i$ consecutive $5$s in the…
Takkun
  • 433
1
vote
0 answers

DFA (Deterministic Finite Automaton)

what would be regular expression to say : A deterministic automaton that is: $\Sigma = \{a, b\}$ that accepts strings of length at least $2$ consisting of either: all $a$’s or all $b$’s (but not containing both symbols). I am looking for answer in…
1
vote
1 answer

Random cellular automaton with three colors.

Does exist a Cellular Automata Rule that is RANDOM (like rule 30) and has 3 colors? I mean, as Wolfram says in his book, rule 30 shows a random behavior with some limits. But this happens using 2 colors (k=2). For my analysis I need of a random rule…
Daniele
  • 11
  • 1
1
vote
2 answers

Give a regular expression

Let Σ be {0, 1} Give a regular expression generating words over Σ containing an even number of 1’s or with a length which is multiple of 3. I came up with this solution: ε ( ((0*(10*10*)) + ((0+1) (0+1) (0+1)) ) and that's from this automata I drew…
Paul
  • 31
1
vote
2 answers

NFA without ε-transitions which recognizes the language generated by the regular expression

NFA without ε-transitions which recognises the language generated by the regular expression: 1(0 + 0(10)*0)0 here is what i've done so far..
Paul
  • 31
1
vote
0 answers

Automata homomorphism relation

We have the following automata $A$: My task is to find automata $B$ and $C$ such that both of them admit a homomorphism to $A$, but $B$ is not homomorphic to $C$ and vice versa. So far, we know that both $B$ and $C$ have to be automata accepting…
ABC
  • 11
1
vote
1 answer

NFA accepting binary strings mod 5

Could you tell my if my solution is correct? I need to create a NFA which accepts binary strings (reading from right to left) if they are divisible by 5. My automata is below (green vertex is accepting one). Vertices are reminders mod 5. 0 is a…
1
vote
1 answer

Even String of b's Regular Expression

I was able to find a regular expression over the language {a,b} for all strings containing an even number of b's: $$a^{*}(ba^{*}ba^{*})^{*}$$ However I have two questions pertaining to this regular expression. Shouldn't the group after the first…
1
vote
1 answer

Parser for reversed language

Language $L$ is specyfied by grammar : $(\{S,A,B\},\{c,d\},S,\{S \rightarrow SA, A \rightarrow Bc | \epsilon, B \rightarrow d\})$. My task is to construct LR(1) parsing table for language $L^R$ (with, as far as I understand, is a reverse of language…