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

CFG for language l

please solve this question.thanks Consider the language L expressed by (a+b)*a defined over Σ = {a, b}. Draw FA and construct the CFG corresponding to the language L.
nomia
  • 59
1
vote
1 answer

How to construct a grammar G such that L(G)={x^ny^mx^my^n/m,n>1}?

construct a grammar $G$ such that $L(G)=\{x^ny^mx^my^n/m,n>1\}$? I don't have much idea how to approach this one. Could some help me to understand how to approach these kinds of problem?
1
vote
1 answer

What is this operation between sets {a, b}{c, d} do?

Not sure what this operation does, which is why i'm on here. It's not the cartesian product and no idea what it's called. I need to know to prove: For any language L, (Null set)L = L(null set) = (null set) Thanks
oorosco
  • 105
1
vote
1 answer

One counter automata

A one-counter automaton $M = (Q, S, \Gamma, t, s, A)$ is a pushdown automaton where the stack alphabet $\Gamma$ contains just two symbols $\#$ and $g$. The symbol $\#$ is initially written on the bottom of the stack and is then not erased. Apart…
1
vote
1 answer

unrestricted grammar and Turing machines

Let $G$ be an unrestricted grammar. Then the problem of determining whether or not $L(G) = ∅$ is undecidable. Let $M_1$ and $M_2$ be two arbitrary Turing machines. Show that the problem $L(M_1) ⊆ L(M_2)$ This is a potential question for the exam…
user103082
1
vote
2 answers

New automaton that runs two others step by step?

If I have two automatons for two languages ($M_1, M_2, L_1,L_2$ respectively), what would be the procedure to mix them by defining a new automaton such that the new automaton would accept the words…
TheNotMe
  • 4,841
1
vote
2 answers

Construct a deterministic finite automation

The question asks to: construct a DFA which accepts exactly $\frac{n(n-1)(n-2)}{6} + \frac{n(n-1)}{2}+1$ many members of $\{0, 1\}^n$ for every n. I have no idea where to start to constructing the DFA, could you give some directions? By the way, how…
1
vote
1 answer

Construc a DFA for given language

The given language is this. $$L = \{a^nb : n \geq 0\}$$ Let $M = \left<\{q_0,q_1,q_2\},q_0,\Gamma=\{a,b\},\delta,\{q_2\}\right>$ be a DFA, where $q_0$ is the initial state, $q_2$ is the accept state. For this language is this DFA accept it?? The…
eChung00
  • 2,963
  • 8
  • 29
  • 42
1
vote
2 answers

If $v^6w^8 = w^{12}v^4$ then $(vw)^2 = v^2w^2$?

Given the words $v,w \in \sum^*$, is this correct? If $v^6w^8 = w^{12}v^4$ then $(vw)^2 = v^2w^2$ If $vw^2 = wv^2$ then $v=w$ For one, I tried $v=\epsilon, w=\epsilon$ and it worked, and I also tried $v=aa, w= aaaa$ and it also worked, but I…
TheNotMe
  • 4,841
1
vote
3 answers

Why is this the $L(M)$ of this DFA?

Why is this the $L(M)$ of this DFA? Can someone please explain it? I am new to this course. When I tried alone answering the question of "What is special about the words that get accepted by this DFA?" I answered that "any word that ends with a…
TheNotMe
  • 4,841
1
vote
1 answer

Alpern, B., Schneider, F.B. Recognizing safety and liveness. Distrib Comput 2, 117–126 (1987). Is there is a mistake in the proof?

I believe there is a mistake in the proof of Theorem 1 in the article Alpern, B., Schneider, F.B. Recognizing safety and liveness. We assume that $m$ specifies a safety property. We want to show $L(cl(m)) = L(m)$. When proving $L(cl(m))\subseteq…
Seeker
  • 327
1
vote
1 answer

Design a FA with at most 3 states that accepts all binary strings not ending in 10

Let $\Sigma = \{0,1\}$ My interpretation of the regular expression = $\Sigma^*01\cup \Sigma^*11\cup \Sigma^*00$ I've created this finite automata with 3 states which I believe fits the criteria. However Im still not sure if I have made this FA…
Dravid
  • 61
1
vote
1 answer

How can I generate the DFA with following condition

Give DFA's accepting the following languages over the alphabet$\{0,1\}$,The set of all strings such that each block of five consecutive symbols contains at least two 00s. This question is from Automata Theory,Languages, and Computation. I have tried…
woh
  • 13
1
vote
0 answers

The number of states in DFA that accepts strings with length that is divisible by $3$ or $5$.

I know that the answer is $15$ states, but I cannot get my mind to understand why is that? which property makes it impossible to do it in less states? I've tried to mess with it for a long time and still can't find the property that forces me to use…
Pwaol
  • 2,113
1
vote
2 answers

$L' = \{x\#y $ | $xy \in L, yx \notin L\} $ where $L$ is regular, Prove $L'$ is regular.

$L' = \{x\#y $ | $xy \in L, yx \notin L\} $ where $L$ is regular Hey I need some help with proving that $L'$ is regular by construction and/or regular closures. Just to make clear $\#$ is a specific char indicates $\#$. $x$ and $y$ are in…