Skip to main content

Questions tagged [regular-expressions]

Questions about regular expressions, a formalism to describe regular languages.

1 vote
2 answers
48 views

I am analyzing the regularity of the following two languages defined over the alphabet $\Sigma = \{a, b\}$:$$L_1 = \{ \alpha \beta \alpha \mid \alpha \in \{a, b\}^+ \text{ AND } \beta \in \{a, b\}^+ \}...
sad_truant's user avatar
0 votes
1 answer
45 views

In Sedgewick and et al.'s Algorithms 4th ed., I found the following definition for a regular express: A regular expression (RE) is either Empty A single character A regular expression enclosed in ...
Kt Student's user avatar
2 votes
0 answers
56 views

It's known that LTL formulae describe star-free languages, but is there a good method to translate star-free $\omega$-regular expressions (i.e. expressions of the form $X\cdot Y^\omega$ where $X$ and $...
bonguzoid's user avatar
-1 votes
1 answer
195 views

According to this post: Mathematicians have a habit of hijacking common nouns and adjectives for mathematical objects and properties, sometimes with good reasons such as geometric or other analogies ...
Arunabh's user avatar
1 vote
0 answers
73 views

Given two regular expressions $r_1, r_2$ such that $r_1 \neq r_2$ but $L(r1) = L(r_2)$, how can I characterize the syntactical difference between them? (Ignoring the order of union that might be ...
Yuvi's user avatar
  • 322
2 votes
1 answer
94 views

In Salomaa's Jewels of formal language theory, Ch. 2 Exercise 8 asks you to prove the completeness of a system which, after digging around for a bit, turns out to be a result of one of his papers (...
Knogger's user avatar
  • 2,068
3 votes
1 answer
93 views

I'm trying to understand the following definition from this paper: I understand that it means that for each starred sub-expression, a letter that can be the first letter in a word generated from this ...
Yuvi's user avatar
  • 322
6 votes
1 answer
428 views

Formally, regular expressions only contain the union, concatenation, and star operations. However, regular languages are also closed under intersection and complementation. This means that a ...
Choosechee's user avatar
2 votes
1 answer
163 views

I followed this helpful blog "Regular Expression Matching Can Be Simple And Fast (but is slow in Java, Perl, PHP, Python, Ruby, ...)" by Russ Cox. This link is got from Russ Cox, ...
An5Drama's user avatar
  • 233
0 votes
1 answer
128 views

I'm trying to convert the following NFA to a regular expression using the elimination method. To do this, I first eliminated $q_1$, getting the following automaton: Then, starting at $q_0$, I know ...
BigBuckBunny's user avatar
2 votes
1 answer
80 views

It's well-known that you can use NFAs to implement regular expression matching, and that NFAs are distinguished (among other things) by having epsilon transitions that are taken when encountered ...
Tim Bray's user avatar
  • 123
0 votes
1 answer
82 views

How do I know when to include the state vs when I've gone too far? Example 1: {Q0,b} -> {Q1,Q3,Q4}. Example 2: {Q3, b} -> {Q1,Q3,Q4} - not sure if this is correct to include Q3, please see the ...
ikodes's user avatar
  • 1
0 votes
1 answer
101 views

Does anyone know how the Unix find search -name queries with _? in leftmost column relate to Kleene Star as defined on Wikipedia?...
Nick's user avatar
  • 195
0 votes
2 answers
141 views

I made a CFG to prove that it's context-free, however, I wasn't able to convert it to left-linear or right-linear grammar. \begin{align*} S &\to \text{a}^iB \\ B &\to b^{11}Dc^{11\text{x}i}\\ ...
Invictus's user avatar
4 votes
3 answers
338 views

The let $L$ be a language. The following are equivalent: $L$ is given by a deterministic or non-deterministic finite accepter. $L$ is given by a regular grammar. $L$ is given by a regular expression. ...
Sam's user avatar
  • 207

15 30 50 per page
1
2 3 4 5
58