Hey there! Sign in to join this conversationNew here? Join for free
x Turn on thread page Beta

regular expressions/kleene closure (very basic, just need clarification) watch

    • Thread Starter

    (Original post by pissingMonkey)

    on the attachment (lecture notes) it shows an example of kleene closure. it says that A = {a,b,c,d,1,2}

    words on A: abba, b, 1ab2, ccc ...

    so does this mean that the kleene closure of every set will have an infinite number of elements? for example if u can have ccc then u can also have ddd and a^infinity right?

    if i was asked in an exam to write the kleene closure of {a, b}, how would i answer it?

    {a, b}* = a, b, ab, ba, aa, bb, aabb, abab ...........

    i'm probably missing something here. can somebody please clarify this concept for me? any help is much appreciated
    thanks in advance!
    Yes, as written it has an infinite number of elements (countably many, if the alphabet is finite). So to write out the Kleene closure of your example, you can't write it as a list of elements as you've figured out; you'll have to write it in the way given in your lecture notes.
Submit reply
Turn on thread page Beta
Updated: April 8, 2013
Do you agree with the proposed ban on plastic straws and cotton buds?
Useful resources

Make your revision easier


Maths Forum posting guidelines

Not sure where to post? Read the updated guidelines here


How to use LaTex

Writing equations the easy way

Student revising

Study habits of A* students

Top tips from students who have already aced their exams

Study Planner

Create your own Study Planner

Never miss a deadline again

Polling station sign

Thinking about a maths degree?

Chat with other maths applicants

Can you help? Study help unanswered threads

Groups associated with this forum:

View associated groups

The Student Room, Get Revising and Marked by Teachers are trading names of The Student Room Group Ltd.

Register Number: 04666380 (England and Wales), VAT No. 806 8067 22 Registered Office: International House, Queens Road, Brighton, BN1 3XE

Write a reply...
Reputation gems: You get these gems as you gain rep from other members for making good contributions and giving helpful advice.