Login
Register
@
Dark Mode
Profile
Edit my Profile
Messages
My favorites
Register
Activity
Q&A
Questions
Unanswered
Tags
Subjects
Users
Ask
Previous Years
Blogs
New Blog
Exams
Dark Mode
regular expression
sid1221
asked
in
Theory of Computation
May 19, 2017
1,198
views
0
votes
0
votes
write the regular expression for the given language
L= { W | NO OF a mod 2= 1} (odd no of a's )
theory-of-computation
regular-expression
sid1221
asked
in
Theory of Computation
May 19, 2017
by
sid1221
1.2k
views
answer
comment
Follow
share this
share
0 Comments
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
2
Answers
2
votes
2
votes
Best answer
{(b*ab*ab*)*+b*}ab*
or
b*a{(b*ab*ab*)*+b*}
and for even no. of a = (b*ab*ab*)*+b*
pawan kumarln
answered
May 19, 2017
selected
Jul 27, 2017
by
pawan kumarln
by
pawan kumarln
comment
Follow
share this
4 Comments
Show 5 previous comments
by
pawan kumarln
commented
May 22, 2017
reply
Follow
share this
@
LeenSharma
,@
Arihant
sorry u r correct
0
0
by
rohan mishra
commented
Jul 27, 2017
reply
Follow
share this
it is being accepted.
0
0
by
Udit Gupta 1
commented
Sep 16, 2017
reply
Follow
share this
This is the most appropriate method. i.e. create a RE from the DFA.
0
0
Please
log in
or
register
to add a comment.
1
vote
1
vote
assuming set of input symbols a,b ans is:b*a(b*ab*a)*b*
aik138463
answered
May 19, 2017
by
aik138463
comment
Follow
share this
4 Comments
Show 4 previous comments
by
sid1221
commented
May 19, 2017
reply
Follow
share this
only b should also be in language rt ..which will not be get from it .
–1
–1
by
pawan kumarln
commented
May 20, 2017
reply
Follow
share this
@sid1221
only b means 0 no.'s of a
but 0 no.'s of a is not odd no. of a
1
1
by
sid1221
commented
May 20, 2017
reply
Follow
share this
yes you are right .. my bad i did mistake ,
@aik you cant derive aaba from your expression right ...
here people dont want to correct mistakes just want how to downvote someone ...
anyway@aik i think you will get ur mistake :)
0
0
Please
log in
or
register
to add a comment.
← Previous
Next →
← Previous in category
Next in category →
Related questions
1
vote
1
vote
0
answers
1
krati_ag19
asked
in
Theory of Computation
Sep 22, 2023
330
views
Let P,Q and R be regular expressions such that the number of strings generated by P is p, Q is q and R is r. What is the number of strings generated by the regular expression (P+R)*Q+PQ?
krati_ag19
asked
in
Theory of Computation
Sep 22, 2023
by
krati_ag19
330
views
theory-of-computation
regular-expression
Subscribe to GATE CSE 2024 Test Series
Subscribe to GO Classes for GATE CSE 2024
Quick search syntax
tags
tag:apple
author
user:martin
title
title:apple
content
content:apple
exclude
-tag:apple
force match
+apple
views
views:100
score
score:10
answers
answers:2
is accepted
isaccepted:true
is closed
isclosed:true
Recent Posts
Post GATE 2024 Guidance [Counseling tips and resources]
GATE CSE 2024 Result Responses
[Project Contest] Pytorch backend support for MLCommons Cpp Inference implementation
Participating in MLCommons Inference v4.0 submission (deadline is February 23 12pm IST)
IIITH PGEE 2024 Test Series by GO Classes
Subjects
All categories
General Aptitude
(3.5k)
Engineering Mathematics
(10.4k)
Digital Logic
(3.6k)
Programming and DS
(6.2k)
Algorithms
(4.8k)
Theory of Computation
(6.9k)
Compiler Design
(2.5k)
Operating System
(5.2k)
Databases
(4.8k)
CO and Architecture
(4.0k)
Computer Networks
(4.9k)
Artificial Intelligence
(79)
Machine Learning
(48)
Data Mining and Warehousing
(25)
Non GATE
(1.4k)
Others
(2.7k)
Admissions
(684)
Exam Queries
(1.6k)
Tier 1 Placement Questions
(17)
Job Queries
(80)
Projects
(11)
Unknown Category
(870)
64.3k
questions
77.9k
answers
244k
comments
80.0k
users
Recent Blog Comments
category ?
Hi @Arjun sir, I have obtained a score of 591 in ...
download here
Can you please tell about IIT-H mtech CSE self...
Please add your admission queries here:...
Twitter
WhatsApp
Facebook
Reddit
LinkedIn
Email
Link Copied!
Copy