Regular and not regular Language

  • Context: MHB 
  • Thread starter Thread starter mathmari
  • Start date Start date
  • Tags Tags
    Language Regular
Click For Summary
SUMMARY

The discussion centers on the properties of languages generated by sets of natural numbers when represented in different bases, specifically base 2 and base 3. The set K = {2^i | i ∈ ℕ} results in L_2(K) being regular, as it can be expressed by the regular expression 10^+. Conversely, L_3(K) is not regular, which can be demonstrated using the pumping lemma. The conversation highlights the complexity of proving non-regularity in certain cases.

PREREQUISITES
  • Understanding of formal languages and automata theory
  • Familiarity with regular expressions and their properties
  • Knowledge of the pumping lemma for regular languages
  • Basic concepts of number representation in different bases
NEXT STEPS
  • Study the pumping lemma for regular languages in detail
  • Explore the properties of regular and non-regular languages
  • Investigate examples of languages that are regular in one base but not in another
  • Review the theory of computation and its applications in language classification
USEFUL FOR

Students and educators in computer science, particularly those focusing on formal languages, automata theory, and computational theory. This discussion is beneficial for anyone looking to deepen their understanding of language regularity in different numerical bases.

mathmari
Gold Member
MHB
Messages
4,984
Reaction score
7
Hey! :o

If $K$ is a set of natural numbers and $b$ is a natural number greater than $1$, let $$L_b(K)=\{w \mid w \text{ is the representation in base } b \text{ of some number in } K\}$$
Leading $0$s are not allowed in the representation of a number.
For example, $L_2(\{3, 5\})=\{11, 101\}$ and $L_3(\{3, 5\})=\{10, 12\}$.
Give an example of a set $K$ for which $L_2(K)$ is regular but $L_3(K)$ is not regular. Prove that your example works.

I am confused... How can $L_i$ be regular when $L_j$ is not regular? (Wondering)

Could you explain it to me? (Wondering)
 
Physics news on Phys.org
Congratulations on your 1000 posts!

There is a page on CS StackExchange about your question, but it requires some effort to grasp.
 
Evgeny.Makarov said:
Congratulations on your 1000 posts!

Thank you! (Happy)
For the set $K=\{2^i, i\in \mathbb{N}\}=\{2,4,8, \dots \}$ we have $L_2(K)=\{10,100,1000, \dots \}$ which is regular since it is accepted by the regular expression $10^+$, right?

So we have to show that for this set $L_3(K)$ is not regular. To do that do we have to apply the pumping lemma? Or is there also an other way?
 
mathmari said:
For the set $K=\{2^i, i\in \mathbb{N}\}=\{2,4,8, \dots \}$ we have $L_2(K)=\{10,100,1000, \dots \}$ which is regular since it is accepted by the regular expression $10^+$, right?
Yes.

mathmari said:
So we have to show that for this set $L_3(K)$ is not regular. To do that do we have to apply the pumping lemma? Or is there also an other way?
The StackExchange page contains a couple of proofs, but I have not studied them carefully. In my opinion, this problem goes somewhat beyond the necessary minimum a student is supposed to take from the theory of computation course. It is more like a challenge problem. Since what I am prepared to give is a "marginal legal advice" (a slogan from a popular American radio show about legal matters), I can't promise further help with this problem.
 

Similar threads

  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 24 ·
Replies
24
Views
4K
  • · Replies 11 ·
Replies
11
Views
1K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K