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

Creating an equivalent DFA for this NFA

I have an NFA and I want to make an equivalent version of it as a DFA. What will the final DFA diagram look like? This is the NFA I want to find an equivalent DFA for. My attempt: I've constructed a transition table: +-------+----+----+----+ | State…
b0to
  • 1
0
votes
0 answers

DFA for strings not containing aaa as substring and must contain aa as sufix

Given language L={ w ∈ {a, b, c}* | w does not contain aaa as substring and w must contain aa as sufix}. I tested this words: aa correct aaa fail baa correct caa correct abaa correct acaa correct accccccaa correct aaacaa fail bbaaa fail abcaa…
jarwin
  • 101
0
votes
0 answers

Contruct a deterministic automata from a non-deterministic automata

Here is a non deterministic finite automata: Here is the deterministic finite automata I built from the above automata. It seems the construction of the second automata is wrong. For me, this is perfectly fine. Where am I wrong?
John
  • 21
0
votes
1 answer

alphabet $\{0, 1\}$, the set of non-empty words whose first letter occurs at least two other times

Build finite automata that accept the language: the alphabet $\{0, 1\}$, the set of non-empty words whose first letter occurs at least two other times. Automata can be non-deterministic if that makes it easier for you. However, you cannot use…
John
  • 21
0
votes
2 answers

NFA to DFA Conversion Help

Consider the language of all words over {a, b} that either begins and ends with aa or bb (but both are the same within each word). That is, {ccycc | c ∈ {a, b}, y ∈ Σ ∗} I have drawn the resulting NFA for the language described above, what would…
M. Petras
  • 11
  • 1
0
votes
1 answer

Minimum DFA's number of states accepting strings whose length is not a multiple of 9 based on an alphabeth composed by 4 symbols

How can I calculate the minimum DFA's number of states accepting strings whose length is not multiple of 9 based on an alphabet composed by 4 symbols? My attempt is: $L = \{w \in \{a,b,c,d\}^* : \text{9 does not divide |w|}\}$ that means there is…
0
votes
0 answers

Critique my PDA for this language

I have attempted to create a PDA for the language $L=\{a^ib^{2i}a^i\ | \ i\geq0\}$. I have included my sketch solution below: The basic idea is that I know there are 3 times as many characters following the first run of $a$'s (since $2i+i=3i$) so I…
Zachary
  • 379
  • 3
  • 12
0
votes
0 answers

Generate CFG using CFL Language

I have the following exercise (L={a^nb^ma^n|n,m>=1}) I solved similar questions, but I got stuck on that.
0
votes
1 answer

Is it possible for a DFA to have one state with an empty alphabet?

I am confused if this is a valid DFA or not.
0
votes
0 answers

Is this a valid answer for this NFA to DFA conversion

I have to convert this NFA to a DFA: I used this technique : https://www.youtube.com/watch?v=i-fk9o46oVY to get a DFA but i would like to validate with someone who has more experience if my result is good since my result doesn't look "pretty".…
codetime
  • 335
  • 2
  • 8
0
votes
0 answers

How to draw this finite automaton?

I have to draw this automaton ( can be deterministic or not) where L is the language on the alphabet {a,b} and where the words that starts with an a have an even length ( ex: aabbab) and the words that starts by a b have an odd length (ex:…
codetime
  • 335
  • 2
  • 8
0
votes
1 answer

Is it possible to design $\text{DFA}\{x,y\}$ that has at least $2$ $x$'s and at most $2$ $y$'s?

$L = \{w|$, $w$ has at least $2 x$'s and at most $2 y$'s} I tried making one but it does not accept aab nor aabb. If it's possible to draw one, how do you do it? plus is it possible to draw NFA? enter image description here
0
votes
2 answers

How to recognize the language of a DFA

Given the following Deterministic Finite Automata, I have to be able to tell what language the Automata accepts.image here] As I can see, it accepts the letters a, b and c. Furthermore, my guess would be that it accepts words such as abca; abc.…
0
votes
1 answer

How to convert Finite Automaton (FA) to Non-Deterministic FA (NFA) with fewer states?

I'm preparing for exam and I came across this question, stated below, in a past exam question paper. Question: Consider the following FA: Find an NFA (non-deterministic FA) with four states that accepts the same language. The question paper…
0
votes
1 answer

Design a DFA for the language L = {w | w contain 2 a’s at any position and greater than 3 b’s at any position, w ϵ {a.b}*}/

I do not understand this question,because for saving Number of a's and b's memory is required,which FA does not provide.could anybody please explain this?