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

If $L$ is regular, then $\hat{L}$ is also regular

Let the alphabet be $\{a, b\}$. For a word $w ∈ \{a, b\}^∗$ we define $ŵ$ as being the word obtained from $w$ by replacing the $a$ by $b$ and the $b$ by $a$. Let $L ⊆ \{a, b\}^∗$. By extension of the definition of the previous question, we ask…
Alex
  • 376
1
vote
2 answers

regular expression

I would like to write the regular expression for the set of all binary strings where there are no three consecutive 0's. The following strings are part of the language: a) strings of the form $1,11,111,...$ b) strings…
user71067
  • 113
1
vote
1 answer

NFA to DFA: new initial state

Question 4 asks to convert this NFA to a DFA: The solution is as follows: Whereas I found this as a solution (excuse the messy layout): My DFA is identical to the solutions' except the initial state (underlined). The solutions omitted the 0 state…
Kit oh
  • 41
  • 4
1
vote
0 answers

Eliminating Epsilon transitions

I'm currently working on some homework dealing with removing epsilon transitions and I wanted to quickly run 2 pieces of work by you guys to confirm if I have the right idea here. Above is the NFA that I am working with, I have created the…
AFC
  • 383
1
vote
0 answers

Give CFGs for the following languages

Alphabet is $\{0,1\}$. a) $\{w \ \vert \ w \text{ contains at least three 1s} \}$ b) $\{w \ \vert \ w \text{ stars and ends with the same symbol} \}$ c) $\{w \ \vert \ w \text{ has odd length} \}$ d) $\{w \ \vert \ w \text{ has odd length and middle…
Ettore
  • 527
1
vote
1 answer

pushdown automaton, two languages ​are possible (OR condition)

In homework we got to build a pushdown automaton for 2 languages, but in my opinion these are two exercises for which the automaton is the same for both. As I understand it, we can build a non-deterministic pushdown automaton, and each time we read…
StevenU
  • 75
  • 6
1
vote
0 answers

How to convert DFA to NFA with fewer states and build TG from DFA with two states?

Consider the following NFA: (i) Build a DFA with as few states as possible that accepts exactly the same language as the NFA above. (ii) Build a TG (transition graph) with 2 states that accepts exactly the same language as the NFA above. Correct…
1
vote
1 answer

How to build a Finite Automata by combining two regular expressions?

Good day, I was given the below question that relates to Kleene's Theorem (RE to FA): Question Consider the following FA's with the corresponding regular expressions $r_1$ and $r_2$ $r_1$: $r_2$: Build an FA for the regular expression $r_1r_2$…
1
vote
1 answer

Constructing an NFA

For a string $x$, we use the notation $|x|$ to denote the length of (number of characters in) string $x$. Give an NFA (both the state diagram and the formal description) that recognizes the following language $A$ over alphabet $\Sigma = \{0,…
1
vote
1 answer

Proving that $\{a^n b^2 a^n \mid n\ge 0\}$ is a regular language

From what I understood, a L is regular if you can draw a FSA or a Regex. For the L={$a^n b^2 a^n | n≥0$}, I've written out a Finite State Automata and a Regex. I'm not sure if this is correct, so can someone verify this for me? $ stands for…
ano
  • 37
1
vote
1 answer

Proving Language accepted by DFA

I am stuck with a problem, as my proving skills aren't good(trying to improve). Prob: Given a State Table of DFA, decribe what language is accepted, and prove by induction it accepts that language, use induction on length of string. |…
1
vote
1 answer

Is this NFA correct? First time doing this!

I have recently learned how to make DFA and NFA. For an assignment, I had the following question: Draw the state diagram for an automaton accepting language L1 over alphabet A = {a, b} from the previous homework. L1 is the set of all words w ∈…
ano
  • 37
1
vote
2 answers

Given a (Deterministic Finite Automata) DFA that recognizes a language $L$, show how to construct another DFA that recognizes the language $\max(L)$.

If $L$ is any language, then $$\max(L)= \{w \mid \text{$w$ is in $L$ and there is no non-empty string $x$ such that $wx$ is in $L$} \}.$$ I am really confused about what this problem is asking and I would greatly appreciate some light.
psabtc
  • 11
1
vote
1 answer

$\{w \in \{ a,b,c,d \}^{*}: |w|\geq 2, w \text{ begins and ends with the same symbol} \}$

The question is to build a NFA that begins and ends with the same symbol. I came up with two solutions but I was wondering if there is a difference between them. Solution 1: Solution 2:
1
vote
1 answer

Can every regular language have a linear bounded automaton

As the question states: I am trying to understand automata. Can every regular language have a linear bounded automaton?
KingFish
  • 113
  • 2