Jump to content

A question regarding regular languages

Featured Replies

hi!

I can't seem to answer the following question and i'd be very glad if someone could help me out:

 

is it possible that a regular language would be defined by an infinite regular expression? or, in other words, if L is a regular language, must the regular expression describing L be a finite one?

 

thanks!

I'm a bit unclear on what you're asking (probably because my background is somewhat informal). It's certainly possible for finite regular expressions to define infinite languages, but I don't know if regular languages must inherently be defined by a finite regular expression.

 

Any regular expression which has an underlying pattern should be expressible through the Kleene star operators * and +. If the regular expression is infinite and has no pattern, I don't think it's possible to decide whether a given string exists within the language.

Archived

This topic is now archived and is closed to further replies.

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.