Regularity of a Language without the Letter S Repeated n Times

In summary: No, there's a difference between the two. The language $\{0^n10^n\mid n\ge0\}$ is equivalent to $\Sigma^*$, but the language $L=\Sigma^*$ is not equivalent to $\{0^n10^n\mid n\ge0\}$.No, there's a difference between the two. The language $\{0^n10^n\mid n\ge0\}$ is equivalent to $\Sigma^*$, but the language $L=\Sigma^*$ is not equivalent to $\{0^n10^n\mid n\ge0\}$.
  • #1
evinda
Gold Member
MHB
3,836
0
Hello! :)
Could you tell me if the language {[tex]as^{(n)}ms^{(n)}t:a,m,t \epsilon \Sigma ^{*} ,s \epsilon \Sigma[/tex],[tex]m[/tex] does not contain [tex]s[/tex] and [tex]n\geq 0[/tex]} is regular?
 
Technology news on Phys.org
  • #2
A finite automaton, like a preschooler, can count only up to 100, give or take. Therefore, counting the number of $s$ characters in the first substring and comparing it with the number of $s$ characters in the second substring is beyond it. When $n$ becomes large, the automaton starts forgetting exactly how many $s$ characters it read: "Was it 123? Or 223? Or 523? Darn, I forgot!". So this language is not regular.
 
Last edited:
  • #3
Evgeny.Makarov said:
A finite automaton, like a preschooler, can count only up to 100, give or take. Therefore, counting the number of $s$ characters in the first substring and comparing it with the number of $s$ characters in the second substring is beyond it. When $n$ becomes large, the automaton starts forgetting exactly how many $s$ characters it read: "Was is 123? Or 223? Or 523? Darn, I forgot!". So this language is not regular.

I understand...And could it also be shown with the Myhill-Nerode theorem?
 
  • #4
Yes, it's actually easier than using the pumping lemma.
 
  • #5
Evgeny.Makarov said:
Yes, it's actually easier than using the pumping lemma.

So,I have to find some of the infinite equivalence classes or do I have to do something else? :confused:
 
  • #6
Not infinite equivalence classes, but infinitely many equivalence classes. In other words, infinitely many words that are not equivalent. And this in turn means that for every pair $u,v$ of such words there exist a word $w$ such that $uw$ is in the language, but $vw$ isn't ($u$, $v$ and $w$ by themselves are not necessarily in the language).
 
  • #7
Evgeny.Makarov said:
Not infinite equivalence classes, but infinitely many equivalence classes. In other words, infinitely many words that are not equivalent. And this in turn means that for every pair $u,v$ of such words there exist a word $w$ such that $uw$ is in the language, but $vw$ isn't ($u$, $v$ and $w$ by themselves are not necessarily in the language).

Could you give me an example of a pair $u,v$ of such words,so that I can try to find some else?
 
  • #8
Actually, when I think about it again, it seems that this language coincides with $\Sigma^*$ and, therefore, is regular. Indeed, let $n=0$ and $m=t=\varepsilon$. Then $L\ni as^nms^nt=a$, and since $a$ is arbitrary, such words cover the whole $\Sigma^*$.

If the above reasoning is right, then this is either a trolling exercise intended to teach students to think twice or a poorly designed problem. Poor notation choice—$n$ ranges over natural numbers while $m$ ranges over strings—does not help, either.

To understand the idea behind using Myhill-Nerode theorem, consider the language $\{0^n10^n\mid n\ge0\}$. The words $0^n1$ for various $n$ are non-equivalent.
 
  • #9
Evgeny.Makarov said:
Actually, when I think about it again, it seems that this language coincides with $\Sigma^*$ and, therefore, is regular. Indeed, let $n=0$ and $m=t=\varepsilon$. Then $L\ni as^nms^nt=a$, and since $a$ is arbitrary, such words cover the whole $\Sigma^*$.

Could you explain me further how you concluded that the language is regular? I haven't got it :eek:
 
  • #10
Well, I gave a pretty detailed explanation why $L=\Sigma^*$. If you have questions about that, then say what is not clear. Or are you asking why $\Sigma^*$ is regular? Can you write an automaton that accepts $\Sigma^*$?
 
  • #11
Evgeny.Makarov said:
Well, I gave a pretty detailed explanation why $L=\Sigma^*$. If you have questions about that, then say what is not clear. Or are you asking why $\Sigma^*$ is regular? Can you write an automaton that accepts $\Sigma^*$?

Is it maybe like that?View attachment 1782
 

Attachments

  • 1387233655787.png
    1387233655787.png
    2.8 KB · Views: 68
  • #12
That's correct. In general, finite languages (including the empty one: no accepting states) are regular, and the class of regular languages is closed under complements. Thus, if a language has a finite number of words (including 0) or if a language is $\Sigma^*$ without a finite number of words (in particular, $\Sigma^*$ itself), then it is regular.
 
  • #13
Evgeny.Makarov said:
Actually, when I think about it again, it seems that this language coincides with $\Sigma^*$ and, therefore, is regular. Indeed, let $n=0$ and $m=t=\varepsilon$. Then $L\ni as^nms^nt=a$, and since $a$ is arbitrary, such words cover the whole $\Sigma^*$.

If the above reasoning is right, then this is either a trolling exercise intended to teach students to think twice or a poorly designed problem. Poor notation choice—$n$ ranges over natural numbers while $m$ ranges over strings—does not help, either.

To understand the idea behind using Myhill-Nerode theorem, consider the language $\{0^n10^n\mid n\ge0\}$. The words $0^n1$ for various $n$ are non-equivalent.

I haven't understood why the language coincides with \(\displaystyle \Sigma^{*}\) .Could you explain me why it happens?
 
  • #14
evinda said:
I haven't understood why the language coincides with \(\displaystyle \Sigma^{*}\) .Could you explain me why it happens?

Did you conclude that the language coincides with \(\displaystyle \Sigma^{*}\),because of the fact that all languages are equivalent?If so,does this mean that all languages are equivalent with the empty set?
 
  • #15
evinda said:
I haven't understood why the language coincides with \(\displaystyle \Sigma^{*}\) .Could you explain me why it happens?
I already have:
Evgeny.Makarov said:
Actually, when I think about it again, it seems that this language coincides with $\Sigma^*$ and, therefore, is regular. Indeed, let $n=0$ and $m=t=\varepsilon$. Then $L\ni as^nms^nt=a$, and since $a$ is arbitrary, such words cover the whole $\Sigma^*$
 
  • #16
Evgeny.Makarov said:
I already have:

Ok,thank you very much!
 

FAQ: Regularity of a Language without the Letter S Repeated n Times

Is language regular?

Language is not completely regular. While there are patterns and rules in language, there are also exceptions and irregularities.

What makes a language regular?

A language can be considered regular if it follows a set of consistent rules and structures. These rules may govern grammar, syntax, and word formation.

Can language change over time and still be considered regular?

Yes, language can evolve and change over time, but still maintain its regularity. As long as the changes follow consistent rules and structures, the language can still be considered regular.

Are all languages equally regular?

No, different languages can have varying levels of regularity. Some languages may have more complex rules and structures, while others may be more straightforward and regular.

How does regularity affect language learning?

Regular languages may be easier for learners to grasp because they follow predictable patterns and rules. However, irregular languages may provide a richer and more nuanced understanding of language.

Similar threads

Replies
2
Views
2K
Replies
8
Views
2K
Replies
1
Views
1K
Replies
9
Views
7K
Replies
24
Views
4K
Replies
1
Views
891
Replies
1
Views
1K
Replies
4
Views
2K
Back
Top