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

Binary Comparison using automata

The question is: Construct a DFA, which accepts the following language, $\{\omega | \omega = a_1b_1a_2b_2...a_nb_n\}$ for some n, where $b_i, b_i\in \{0, 1\}$ and $a_1a_2...a_n > b_1b_2...b_n$ I was stuck at finding how many states should this DFA…
0
votes
1 answer

Give an example of a language $L \subset \{0,1\}^*$ such that rows of the matrix $T_L$ are distinct.

Given an example of a language $L \subset \{0,1\}^*$ such that rows of the matrix $T_L$ are distinct. We define the matrix as follows. Let $L \subset \Gamma^*$ where $\Gamma$ is alphabet. Then the rows and columns of the boolean matrix $T_L$ are…
eChung00
  • 2,963
  • 8
  • 29
  • 42
0
votes
2 answers

Can someone explain this automaton?

I have a question about constructing an automaton for given language: $$L = \{000, 010, 100, 110\}$$ Solution for this was given below. Can anyone explain why this automaton accepts the language? This is not from my class. I got this from the web to…
eChung00
  • 2,963
  • 8
  • 29
  • 42
0
votes
1 answer

Construct an automaton by using sliding window method

Given alphabet $\Gamma = \{0,1\}$, let $L = \{\omega : All\ words\ ending\ 010\}$ be a language. Find an automaton. I have to find an automaton using sliding window method.. First I need some explanation of the sliding window method. If I google it,…
eChung00
  • 2,963
  • 8
  • 29
  • 42
0
votes
1 answer

Dfa for a language {0,1} that has even length or it ends with a 0.

Accepted strings would be {"", 11, 100, 1010, 1111} And it would reject everything that is not even length or it ends with a 0. I constructed two dfa, one that accepts all possible even combinations, and one that ends with a 0, but I can't combine…
Sachihiro
  • 119
0
votes
2 answers

To design a Finite State machine

Design a FSM for a binary number in which the input is valid if no. of 0's divisible by 5 and no. of 1's divisible by 3
0
votes
0 answers

Is the language containing a single infinite length string regular?

I am trying to prove that every finite language is regular. I have come up with a proof that every language with a finite number of finite length strings is regular (shown at the bottom of this post), but now I am looking to prove the claim for…
LYB
  • 13
0
votes
0 answers

Proof of the property of Kleene star

I'm trying to prove some of the properties for the Kleene star operation. (Σε)* = Σ* L ⊆ L* L1 ⊆ L2 implies L1* ⊆ L2* How do I go about proving these?
0
votes
0 answers

iteration of two finite state automata is a finite state automaton

I got recently introduced to automata and couldn't find an answer to the following question: Let $A$ and $B$ two finite state automata (with a starting state) acting on the same formal language $\Omega$. Can we describe the map $A \circ B: \omega…
ctst
  • 1,424
0
votes
1 answer

What is the transition function of the given NFA?

I have a question regarding the following NFA: When I provide the formal definition, I am stuck at the alphabet $\Sigma$ and $\delta$ parts. Since the alphabet is not given, and no transitions are present, does this mean that there is no transition…
Lima21
  • 3
0
votes
2 answers

DFA or NFA that accepts all words over the alphabet (a,b) that begins with ab and do not end with aa

Design a (deterministic or nondeterministic) finite automaton A such that L(A) consists of all strings over the alphabet {a, b} that begin with ab and do not end with aa. I have this question that is puzzling me and I cannot come to a conclusion the…
0
votes
1 answer

What’s the difference between concatenation and cross product of any 2 languages in finite automata?

I have come across many examples of concatenation and cross product but I still face difficulty in figuring out when to use either of them. Since both are combining the properties of any 2 languages I don’t know what makes both of them individually…
0
votes
1 answer

How do you find the minimum pumping length from looking at a graph?

How do you determine the minimum pumping length for some machine in graph form? let's there are 7 states – $q_0$, $q_1$, $q_2$, $q_3$, $q_4$, $q_5$, $q_6$ in a deterministic machine. The arrows can flow in any direction. $q_6$ and $q_3$ are both…
0
votes
1 answer

Difference between a deterministic and a nondeterministic finite automaton

I am currently working on the automata theory and just passed through the definition of a nondeterministic and a deterministic finite automaton. The definition are quite similar and I don't understand well the difference between them. Can someone…
0
votes
1 answer

How to design Context Free Grammar for the language $L=\{0^{i}1^{j}0^{j}1^{i} | i,j\ge0\}$?

I have tried following. S -> AB A -> 0A1|01 B -> 0B1|01 Are there better way to do it? Thanks
user800764