regular-language Questions
3
Solved
How would I find the language for the following regular expressions over the alphabet {a, b}?
aUb*
(ab*Uc)
ab*Ubc*
a*bc*Uac
EDIT: Before i get downvoted like crazy, i'd appreciate it if someone ...
Barbarity asked 3/10, 2011 at 2:53
1
Solved
I have a regular expression that was the output of a computer program. It has things like
(((2)|(9)))*
which a human would undoubtedly write as
[29]*
So I'd like a program that can make simpl...
Arrowworm asked 19/8, 2011 at 17:51
2
Solved
I'm trying to understand the concept of languages levels (regular, context free, context sensitive, etc.).
I can look this up easily, but all explanations I find are a load of symbols and talk abo...
Clipclop asked 16/7, 2011 at 15:4
2
Typically in our work we use regular expressions in capture or match operations.
However, regular expressions can be used - manually at least - to generate legal sentences that match the regular e...
Contredanse asked 17/11, 2010 at 20:13
2
Solved
Pumping Lemma is used to prove a language to be not regular. But How a language can be
proved to be regular ? In particular,
Let L be a language. Define half(L) to be
{ x | for some y such that ...
Discotheque asked 26/12, 2010 at 13:2
3
Solved
I've seen a few comments here that mention that modern regular expressions go beyond what can be represented in a regular language. How is this so?
What features of modern regular expressions are ...
Pugging asked 30/9, 2010 at 5:55
2
Solved
As the name suggests we may think that regular expressions can match regular languages only. But regular expressions we use in practice contain stuff that I am not sure it's possible to implement w...
Kolosick asked 23/9, 2010 at 13:47
3
Solved
After having read up on RE/NFA and DFA, it seems that finding a substring within a string might actually be asymptotically faster using an RE rather than a brute force O(mn) find. My reasoning is t...
Decapitate asked 21/7, 2010 at 20:5
3
Solved
Is it possible to detect if a given string is valid regular expression, using just regular expressions?
Say I have some strings, that may or may not be a valid regular expressions. I'd like to hav...
Commercial asked 25/5, 2010 at 17:19
1
Solved
I have tried, and burned my brain to understand the definition of Regular Languages in Discrete Mathematics and its Applications(Rosen) without reaching the goal of understanding why the definition...
Renitarenitent asked 21/5, 2010 at 22:11
3
Most UNIX regular expressions have, besides the usual **,+,?* operators a backslash operator where \1,\2,... match whatever's in the last parentheses, so for example *L=(a*)b\1* matches the (non re...
Waterage asked 13/4, 2010 at 2:29
2
Solved
What is the regular expression for the language 0m1n where m+n is even?
Doubleripper asked 9/3, 2010 at 15:19
5
Solved
This is more of a computer science question than a programming one, but I figure that this is the best place out of all the related sites to ask this.
When I discovered Regular Expressions and lo...
Sporogonium asked 9/1, 2010 at 1:50
4
Solved
I'm working on some homework for my compiler class and I have the following problem:
Write a regular expression for all strings of a's and b's that contain an odd number of a's or an odd number of...
Eleventh asked 16/9, 2009 at 19:28
© 2022 - 2024 — McMap. All rights reserved.