MHB Regular and not regular Language

  • Thread starter Thread starter mathmari
  • Start date Start date
  • Tags Tags
    Language Regular
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.
 
Namaste & G'day Postulate: A strongly-knit team wins on average over a less knit one Fundamentals: - Two teams face off with 4 players each - A polo team consists of players that each have assigned to them a measure of their ability (called a "Handicap" - 10 is highest, -2 lowest) I attempted to measure close-knitness of a team in terms of standard deviation (SD) of handicaps of the players. Failure: It turns out that, more often than, a team with a higher SD wins. In my language, that...
Hi all, I've been a roulette player for more than 10 years (although I took time off here and there) and it's only now that I'm trying to understand the physics of the game. Basically my strategy in roulette is to divide the wheel roughly into two halves (let's call them A and B). My theory is that in roulette there will invariably be variance. In other words, if A comes up 5 times in a row, B will be due to come up soon. However I have been proven wrong many times, and I have seen some...

Similar threads

Replies
6
Views
2K
Replies
1
Views
1K
Replies
24
Views
4K
Replies
11
Views
930
Replies
1
Views
2K
Replies
1
Views
1K
Replies
4
Views
2K
Replies
2
Views
2K
Replies
2
Views
2K
Back
Top