Computer Science & Information TechnologyTheory of Computation

Regular Expressions

One day of describing regular language of via the notation of regular expressions. This notation involves
a combination of strings of symbols from some alphabet ∑, parentheses, and the operators +, ⋅, and *.

Formal definition: Let ∑ be a given alphabet. Then

  1. φ, λ and a ∈ ∑ are all regular expressions these are called primitive regular expressions.
  2. If r1 and r2 are regular expressions, so are r1 + r2, r1 ⋅ r2, r1* and (r1).
  3. A string is a regular expression if and only if it can be derived from the primitive regular expressions by a finite number of applications of the reuse in 92).

Operators of Regular Expressions:

  • R* is kleene closure of regular expression R. (* is a unary operator)
  • R+ is positive closure of regular expression R. (+ is a unary operator)
  • ⋅ is concatenation operator. (⋅ is a binary operator)
  • + is or operator. (+ is a binary operator)

Dear Aspirants,
Your preparation for GATE, ESE, PSUs, and AE/JE is now smarter than ever — thanks to the MADE EASY YouTube channel.
This is not just a channel, but a complete strategy for success, where you get toppers strategies, PYQ–GTQ discussions, current affairs updates, and important job-related information, all delivered by the country’s best teachers and industry experts.
If you also want to stay one step ahead in the race to success, subscribe to MADE EASY on YouTube and stay connected with us on social media.
MADE EASY — where preparation happens with confidence.

MADE EASY

MADE EASY is a well-organized institute, complete in all aspects, and provides quality guidance for both written and personality tests. MADE EASY has produced top-ranked students in ESE, GATE, and various public sector exams. The publishing team regularly writes exam-related blogs based on conversations with the faculty, helping students prepare effectively for their exams.

Leave a Reply

Your email address will not be published. Required fields are marked *