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

how to build a PDA for the language of the intesection of PDA and DFA

lets say we got PDA $M=$ ('+' marks the end of the stack) with $L_1 = L_f(M)$. and we got $A=$ with $L_2 = L(A)$. how can I build a PDA $M' =$ with…
daniel
  • 101
0
votes
4 answers

Determining if a binary string represents a prime integer

Let $\Sigma = \{0,1\}$ and $w$ be the string $0011101$ over $\Sigma$. If we work out what $w$ is, $w$ is the binary representation of $57$, which is not prime. It is remarked in Introduction to Automata Theory, Languages, and Computation, by…
roo
  • 5,598
0
votes
1 answer

what is the complement of the language L={ww : w ∈{a,b}* }

The given language is not CFL ,it is CSL and CFL is not closed under complement operation ,Now I am not getting how to find it's complement ,please tell the approach .
0
votes
2 answers

what is the complement of empty language?

If R- Regular language , C-Context Free language and L -Recursive language then what is the result of the expression ((R-C)-L)',Now first starting with R-C , It will give result as ∅, since every regular language is context free ,Now when I do ∅-L…
0
votes
1 answer

Acceptance by final state PDA and acceptance by empty stack .

Let $P$ be a non-deterministic push-down automaton (NPDA) with exactly one state, $q$, and exactly one symbol, $Z$, in its stack alphabet. State $q$ is both the starting as well as the accepting state of the PDA. The stack is initialized with one…
user123
  • 31
0
votes
1 answer

Trying to figure what language this PDA (pushdown automata) accepts

I have the following PDA and I can't figure our what words it accepts, would like to get some help with figuring this out. Of course it only accepts if that stack is empty in the accepting state.
user227343
0
votes
1 answer

finding a regular length

i am trying to find a regular language that: her minimum pumping length = number states of minimum Nondeterministic automata that receive the language = number of equivalence classes. (not 1) any ideas? Thanks in advance
anna
  • 1
0
votes
1 answer

which of the following languages are regular?

If w,x,y ∈ (a+b)^+ 1)L=wxwy 2)L=xwyw 3)L=wxyw According to me all of them should be non-regular since we can't actually check what will be the starting symbol of first occurrence of w since it will be present at the bottom of the stack so we can't…
radhika
  • 361
0
votes
0 answers

If M1 and M2 are 2 TM’s such that L(M1) = L(M2) , then which of the following conditions are true?

(a) On every input on which M1, doesn’t halt, M2 doesn’t halt. (b) On every i/p on which M1 halts, M2 halts too. (c) On every i/p which M1 accepts, M2 halts. How to approach this question ?
radhika
  • 361
0
votes
0 answers

If the strings of a language L can be effectively enumerated in lexicographic (i.e., alphabetic) order, which of the following statements is true?

(A) L is Regular (b) L is context free but not necessarily Regular (c) L is recursive but not necessarily Regular (d) L is recursively enumerable but not necessarily Recursive I could only conclude that L is recursively enumerable from above…
radhika
  • 361
0
votes
0 answers

Question on Regular Language

$L= \{a^{2^n} \mid n>1\} \cup \{a^m \mid m>1\}$ Is $L$ a regular? My approach is-- union of a non regular and regular language may be regular or may be not regular. The left side of union is not regular so the language L is not regular. Please…
Rahul
  • 73
0
votes
0 answers

what is the minimum no of DFA states required to recognise below language?

$L=\{a^nk , k>0 \text{ and } n \text{ is an integer constant} \}$ In this question which constant should be changed , n or k while considering the DFA since then it can be either $n+1$ or $k+1$ ?
radhika
  • 361
0
votes
2 answers

If every NFA is a DFA, the fact that I can make an NFA to a single accepting state proves that I can also do it for a DFA? is that enough?

The question is: Prove that every NFA can be converted into one with a single accept state. Is the same true for DFAs ? Prove your answer. I already did the first part of proving that NFA's can be converted into one with a single accept state by…
0
votes
2 answers

Can finite automata keep track of history or relevant history?

I am unable to understand that if I have a Finite automaton which say accepts all the strings that end with ab, now if input given is "aab" now it reads 'a', then it reads second 'a',this implies that it can keep track of all input that it has been…
radhika
  • 361
0
votes
1 answer

Why are Recursively enumerable languages closed under intersection?

when Recursively enumerable sets are not closed under complement ,then how come they are closed under intersection because the definition of intersection comes as L1 intersection L2= complement(L1' union L2') for languages L1 and L2 So When…