Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 98

Questions related to formal languages, grammars, and automata theory

3 votes

Interpreting a Language

First of all, note that your quest for "rules in place" is probably doomed. This looks pretty much like an exercise problem you would pose in class; there is not necessarily an intuitive rule or seman …
Raphael's user avatar
  • 72.9k
2 votes

Does the complement of sigma Kleene star exist?

Note that the complement of $A \subseteq \Sigma^*$ is defined as $\Sigma^* \setminus A$; so yes: the complement of $\Sigma^*$ itself is the empty set. To be completely accurate, you need to state wi …
Raphael's user avatar
  • 72.9k
5 votes

Arden's Lemma in case $X_{i}=AX_{i}$?

What we have with $\qquad X = AX + B$ is, quite literally, a recurrence of languages expressed in terms of the symbolic method. $B$ represents the base case of the recurrence. Arden's Lemma just tel …
Raphael's user avatar
  • 72.9k
3 votes

Can you give me an example word that is in the language $L = \{w | w ∈ \{a,b\}^∗ ∧ |w|_a = |...

Check your definitions: $*$ is the Kleene star. So, $\{a,b\}^*$ is the set of all finite strings over alphabet $\{a,b\}$.
Raphael's user avatar
  • 72.9k
3 votes

Is there a standard way to define a formal language transformer?

Without knowing what kind of transformation you compute, it's unlikely that there's a useful word. Assuming that any two inputs are processed independently of each other, you're looking at (computable …
Raphael's user avatar
  • 72.9k
19 votes

Determining capabilities of a min-heap (or other exotic) state machines

Here is what we (believe to) know: $\mathrm{HAL} \setminus \mathrm{CFL} \neq \emptyset$ (type-1, type-2) $\mathrm{CFL} \setminus \mathrm{HAL} \neq \emptyset$ (type-1) $\mathrm{CFL} \subseteq \mathrm …
Raphael's user avatar
  • 72.9k
14 votes
Accepted

Are there other ways to describe formal languages other than grammars?

There are plenty of possibilities. Others have already mentioned automata which offer a rich selection. Consider the following frameworks, too: Some languages can be defined directly by (co)inductiv …
Raphael's user avatar
  • 72.9k
2 votes

Computational power of nondeterministic type-1 min-heap automata with multiple heaps

Let $\mathrm{SDL}_k$ the shuffled Dyck language with $k$ types of parentheses, i.e. $\qquad \displaystyle \mathrm{SDL}_k = \mathrm{DL}([_1,]_1) \, ш\, \dots \, ш\, \mathrm{DL}([_k,]_k)$ with $ш$ the …
Raphael's user avatar
  • 72.9k
2 votes

How to interpret this formal language definition?

This is pretty standard notation for $\qquad \#_a(w) = |w|_a = $ number of occurrences of $a$ in $w$. Building a PDA for this language is straight-forward. Find a hint below.
Raphael's user avatar
  • 72.9k
1 vote

Is $L$ always context free?

Try to use closure properties instead. Closer hint:
Raphael's user avatar
  • 72.9k
4 votes

How can I define this syntax?

You are mixing two things here: syntax and semantics. First, syntax. What is the language of strings $L_P \subseteq \Sigma^*$ with $\Sigma = \{\mathtt{a}, \dots, \mathtt{z}, \mathtt{)}, \mathtt{(}, \ …
Raphael's user avatar
  • 72.9k
1 vote

Deciding if language is Context-Free

You reasoning is not correct, and not only because you reach the wrong answer. You argued for one representation of the language that it can't be faithfully checked by one (idea for) a push-down auto …
Raphael's user avatar
  • 72.9k
1 vote

Is there a name for the class of operations containing prefix, suffix, etc?

The prefix and suffix operations can be expressed in terms of right- resp. left-quotients: $\qquad \operatorname{pref(L)} = L / \Sigma^*$ and $\qquad \operatorname{suff(L)} = L \backslash \Sigma^*$. …
Raphael's user avatar
  • 72.9k
2 votes

How do I find if a programming language is infinite or finite?

An infinite number of potential identifiers results in an infinite language, but this is a "boring" feature with this consequence, because you can do without. We know that two variables are sufficient …
Raphael's user avatar
  • 72.9k
1 vote
Accepted

Prove that A* is the smallest reflexive and transitive set containing A

Hint: Try the usual approach to show set inclusion! That is, pick $w \in A^*$ and show that $w \in B$. Next hint: More elaborately:
Raphael's user avatar
  • 72.9k

1
2 3 4 5
10
15 30 50 per page