Skip to main content

Questions tagged [formal-languages]

Formal languages are studied in computer science and linguistics. They are usually defined using various types of grammars (e.g. regular, context-free) and automata (e.g. deterministic and pushdown automata, Turing machines). There is a hierarchy of formal languages, which is based on the type of grammars and automata which can be used to generate them.

0 votes
0 answers
46 views

Contructions involving Godel-numbers allow a sufficiently expressive theory to talk about itself, i.e. there is a correspondence between sentences in the theory and sentences about the theory. There ...
Ryder Rude's user avatar
  • 1,679
0 votes
1 answer
68 views

Let L be a language of first order logic. The generalization rule for universal quantifier says that, for $\phi\in L$, $\Sigma \vdash_L \forall x\phi(x) $ iff $\Sigma\vdash_{L\cup c}\phi([c/x])$, with ...
MarcoM's user avatar
  • 1
1 vote
0 answers
67 views

I've got following statement (as a challenge, not as a hw or something), being told that it's kinda hard to prove it $ L = \lbrace a^m b^n \mid m \neq n^2 \rbrace $ isn't CFL Following statement (...
徳山宏樹's user avatar
1 vote
2 answers
110 views

I am studying Context-free Languages, and my professor gave as homework the following language $$ 0^a 1^b 0^c \quad where \quad a < b + c \quad and \quad a,b,c \ge 0 $$ My friend gave this answer: ...
stalris's user avatar
  • 97
0 votes
9 answers
84 views

Fix a finite alphabet $A$. The set of regular languages is the smallest set of languages on $A$ (i.e. subsets $L$ of the free monoid $A^*$) containing $\varnothing$ and the singletons $a$ for $a\in A$ ...
Olivier Bégassat's user avatar
1 vote
1 answer
90 views

I am studying for exams, and previous years had these two problems that I have conflated in the title. Problem 1) For every regular language $ L \subseteq \Sigma^*$ over $\Sigma$, $\mathcal{H}(L)$ is ...
Vicente's user avatar
  • 55
0 votes
1 answer
75 views

In this problem $\Gamma(L)$ is defined as $\Gamma(L) = \{v \in \Sigma^* \mid \exists w \in \Sigma^*.(|v|=|w| \land vw \in L\}$ which I understand as: The set of all strings $v$ such that there exists ...
Vicente's user avatar
  • 55
0 votes
0 answers
65 views

I'm a noob trying to learn Godel's proof, and it seems that a large part of it relies on constructing a bijective mapping between the natural numbers and the set of all possible mathematical ...
Alexandra's user avatar
  • 519
1 vote
2 answers
82 views

I understand what needs to be done in this problem and I had no problems with groups. I got that the variety consists of direct products of groups $\mathbb{Z}_{2}$, and the set of identities from the ...
mackenzie's user avatar
0 votes
0 answers
27 views

In Chapeter 3 of Speech & language processing, Jurafsky says "We need the end-symbol to make the bigram grammar a true probability distribution. Without an endsymbol,instead of the sentence ...
alpharing's user avatar
5 votes
2 answers
510 views

A alphabet system has three letters C, A, T, and two words are equivalent if the following subwords can be inserted and deleted for a finite number of times such that the two words become equal: CC, ...
VectObt's user avatar
  • 573
4 votes
1 answer
182 views

This question is meant as a follow up of the previous question Link. Suppose now the string consists of numbers 1,2,3,4. The insertions and deletions allowed for an equivalence class is 11,22,33,44,...
VectObt's user avatar
  • 573
3 votes
2 answers
176 views

Problem: A string of numbers consists of 1, 2, and 3 only, with no limits on length. Two strings are considered the same if one can be transformed to the other with finite insertions or deletions of ...
VectObt's user avatar
  • 573
1 vote
1 answer
74 views

I'm trying to figure out why the lemma works for the context-free language: $L = \{ w ∈ \{a,b,c\}^* | \#_a(w) - \#_b(w) - \#_c(w) = 0 \}$ Say we choose $s=a^{2n}b^nc^n$, we can show that all the ...
Wahalez's user avatar
  • 113
1 vote
0 answers
271 views

Im currently studying for an exam in theoretical computer science. Since I feel that it more belongs to mathematics than to practical computer science, I decided to ask here and not on stackoverflow. ...
JustMe's user avatar
  • 19

15 30 50 per page
1
2 3 4 5
135