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

Regularity check of languages

L1 will not be CFL also as it needs more than one stack to count. L1/L2 gives concatenation and the result will be $a^{n} b^{2n} c^{4n}$ which is again non regular. Am I right? I am little bit confused for L1/L2 case as for some y, xy belongs to…
ViX28
  • 647
-1
votes
1 answer

How to construct a DFA for truncate the rightmost symbol from a given string?

If I have a truncate operation defined which removes the rightmost symbol from a string ,for instance I have a string say aababb so it removes the rightmost symbol b and the output is aabab. so how to approach this question
-1
votes
1 answer

Automata accepting

Let $A = \{ a,b\} $ and $ L = \{ w \in A^* : |a| = 2k+1, |b| = 2l, k,l \ge 0 \}$ $|a| = 2k+1 $ means that amount of 'a' in word $w$ should be odd. I am asking for any advice. I tried do it a lot of hours.
user180834
  • 1,453
-2
votes
1 answer

How can I show that the set of decimal representations of the natural numbers divisible by4 is regular?

How can I show that the set of decimal representations of the natural numbers divisible by four is regular? I'm stack on this problem. I tried some solutions but I know It is incorrect. Please help me. If you use more details in your explanation,…
-2
votes
1 answer

DFA with 2 Alphabets

I have got a problem working on a deterministic finite automaton. I have got 2 alphabets $\Sigma_a = \{a_1,a_2,a_3...,a_n\}$ and $\Sigma_b = \{b_1,b_2,b_3...,b_n\}$ the automaton should match a alphabet: $\Sigma = \Sigma_a \cup \Sigma_b$ in…
-3
votes
1 answer

How do I construct a DFA over the alphabet {0,1,2} that only accepts strings that have an even number of 0, 1, 2?

Example: 00,0011,0022102120, etc. is fine 00112,0221100, etc. is wrong I have done similar thing with the alphabet {0,1} and strings that have equal number of 0 and 1. Here I run into a problem where it seems that my automata just keeps…
mIl3
  • 1
  • 1
1 2 3
17
18