#really odd automata questions
213 messages · Page 1 of 1 (latest)
- Do not ping the Moderators, unless someone is breaking the rules.
- Do not ping the Helper Moderators, unless there is a conflict between helpers.
- Do not ping other members randomly for help.
- Ask your question and show the work you've done so far. If you've posted a screenshot of a question, specify which part you need help with.
- Wait patiently for a helper to come along.
- If the Helper has answered your question, remember to thank them with the Mathematics Ranks bot and close the thread with:
+close
Feel free to nominate the person for helper of the week in #helper-nominations
If you're happy with the help you got here, and the server overall, you can contribute financially as well:
the highlights were made by me btw
so you're talking about 4 and 5 ? @abstract lotus
4 5 and 6
cause i have no clue what any of them r referring to
yeah but the question bank is divided as per modules the first module is regarding sets and the 4th are concerning automatas , you reckon they mixed them up?
yes
and 4 and 5 is just: find the dfas for the following languages
(it would be the most sensible interpretation)
oh so a finite language could also be referred to as a dfa?
no
what I say is that a finite language is regular, so can be recognized by a dfa
(a language is not a dfa)
(maybe I'm nitpicking on vocabulary and you already understood)
hmph dont we need a condition to construct a dfa? i dont see one for 4
like it should end in ab or smth like that i'm quite foreign to the subject
no
like how do we construct a dfa for question 4 with the language alone , ive never done that before
it's usually paired with a condition like "string should end in 00"
do you have examples in your lecture notes ?
yep one moment
not at all
yes, L = {strings on {a,b} ending with ab} is one instance of a regular language
but it is just one example
for instance, do the following one: {strings on the alphabet {a,b} only containing a's}
(the question you need to ask yourself when constructing the automaton is: if I am given the letters from start to finish, how do I check the condition using finite memory ?)
well there would be two states q0, q1 if it's a move on to the next state terminate if it isnt stay on q0?
so I guess the 4th condition is asking us to interpret the language and figure it out by ourselves?
describe explicitly the automaton, what are the starting state, accepting state and transitions ?
hmph since it's not explicitly mentioning an alphabet do we just take the contents of L as alphabet?
I think the alphabet is implicitly {a,b}
q0 is the initial state q1 is the accepting state
DFA is the automaton
idk how to do the squiggly symbol on qwerty :/
{q0,a}=q1
{q0,b}=q0
hmph alright
that's wrong
ah
I was trying to answer this one
ok
is it incorrect?
yes, your current solution is incorrect
hmph
for instance, try to input aa, what happens ?
that's not good either, because then aa is not accepted
try to do it by hand
how would you check (by hand, or by writing a computer program) that all the letters are a ?
id look at all the values and if i come across a b id deny it
exactly
through a loop statement and a decision one
now try to express it as an automaton
so, say that q0 is the first state
mhm
yes
so what you do is to go to a ditch state q1
so you add the transition q0 -b-> q1
q1 will loop on itself, because whatever letter you read after, it doesn't matter : you read the letter b somewhere, so the word does not belong to the language
so you have the transitions q1-a->q1 and q1-b->q1
so you make two separate machines?
you make two separate states
q0 means "I have not yet read a b"
q1 means "I have read a b"
you start at q0, and you accept if in the end you remain in q0
ah
q1 plays that role
I think i kinda get it now
erm moving on to the 5th question do we just directly take the strings inside the Language and express them as states? like for the first one q0 --a--> q1 end something like that? if so how would it work for L=(a,b)?
(this is what you should get for my question)
Oh my that's so much better
yeah okay I guess my assumption was correct then
but I'm still a bit confused on what a language represents
a language is just a set of words
a common problem in computer science is deciding given some description of a language L and a word w whether w belongs in L
this is called the word problem
hm so a word such as abba wouldnt be accepted since L can only have A's something like that?
in your current lecture, you are studying languages for which the word problem can be decided using a deterministic finite automaton (dfa)
yes, so now try to input it in the automaton I gave you to understand how it is treated
we've also got ndas as well which I think take input to more than 2 states or smth like that
well a would go back into a then b would go to q1 where it would lie before it ends
this is the only example we have of ndas
OH WAIT
an nda can have two conditions whereas a dfa can only have one
is that correct?
no
ow
well that's how I see like for example if we take the example above it can accept both 00 and 11 I dont think you can do that with a dfa unless im wrong
dfa can do everything nfa can do
mhm
but I think that given your current level of understanding you should first stick to dfa's
otherwise it will only be more confusing
well I kinda got an exam tomorrow and I'm only struggling with NFAs
and the two questions above
perhaps you could give me a surface level explanation?
dfa: for each state q and letter a, there is exactly state q' such that q -a-> q'
nfas can have multiple transitions from a state labelled by the same letter
for dfas, you accept if the only sequence of transitions terminates in a terminal state
for nfas, you accept if at least one sequence of transitions terminate in a terminal state
so here 0 can either transition to the state its already in or q1 something like that?
yes
ah okay
00 is accepted because it labels the sequence of transitions q0 -> q1 -> q3
(where q3 is terminating)
it also labels q0->q0->q0 with q0 not terminating, but it doesn't matter
but it could also stay in q0 and still be accepted
yeah sweet
i think i get it now
it doesn't matter because you have at least one sequence of transitions labeled by 00 going to a terminal state
yep
howd you make this btw? like did you use a site?
I used ipe
it is a free vector drawing tool
which can also be used to do slides
I use the pc version, but there is also an online one https://ipe-web.otfried.org/index.html
The Ipe extensible drawing editor
oh thanks
hm could you explain the 5th one to me I dont think i quite understand it
do the same
how do you check that some word w = w1…wn is equal to some fixed word u1…uk ?
uhm for the first one check if it's a if so stay otherwise if its b (assuming) go to q1 and let it stay there?
like this
and the second one is just one state with a,b looping on it
yes, so for each i, you have state qi which says "the first i letters are good"
you then add a sink state q' "there is too much letters, or one of the first letters is wrong"
from this, find the transitions
(take your time)
what I'm confused with is why theyd even ask a question like this when theyve never even attempted to teach something as complicated as this ik it really isnt complicated but when you have incompetent professors who just ask you to copy off a pdf blindly what are you supposed to do
im currently doing the other questions ill send you a ss once im done
isn't this the exercise sheet of your first lecture ?
nah mate they send us pdfs to study for the exam , they dont even give us books!
and they ask questions out of them
how long did you have this pdf ?
the questions? for like a week id say
the professor hasnt even bothered to respond to my questions
so i gave up
and you already have an exam ???
after a week ?
yeah , thankfully its not difficult though , I feel like such a moron honestly , I shouldnt have joined this college , its filled with morons who still fail after receiving the question paper
and professors whod rather let their students play videogames than actually teach anything
it's so unserious
doesn't matter, maybe find some group of students you can study with, it would be more motivating
definitely I'm exhausted by how literally my entire class shares the same sentiment , like they arent ill-natured or anything they're just demotivated and have no incentive to study I wish i went abroad instead , and i couldve but my parents are paranoid , im sorry if im going on a tangent
yeah, I can only give you generic advice here
which i really appreciate
I'm just really anxious
ik you're waiting on me to finish the 2 questions but its getting a bit late here you mind if i send them tomorrow? im trying to finish the last module
yes, no problem
cheers
don't worry too much, it is probably some quick test
well its for a 100 marks it's definitely not quick it's an end sem none of the teachers have taught as anything
funnily enough they slack off more than the students which is impressive
also im sorry if im asking for a lot here , but could you give me the answers to two questions?
would you mind me asking? i hope there isnt a hand holding policy here
wtf is your college ?
I gave you the indication here
somewhere I dont belong 😄
oh no its a diff one
im gonna do those two linked in this post tmrw
its the NDAs im not really sure whether ive done them correctly
and i have no example to base them off of
i did the dfas flawlessly though
well 4,6 are the same
just switched the letters for numbers
so if you could do either one of them then i could check if im correct
dfas are particular cases of nfas, so you're good
for 4, isn't that just words with at least one letter ?
wym
it's input which ends in either 1 or 0 so something like 01 10 100 101
or thats how im interpreting it
I do too, but any nonempty word on the alphabet {0,1} ends with either 0 or 1…
which doesnt make sense and here I thought I was missing something
the questions r so unnecessarily vague
ok, you can try to answer this question instead
to train
construct a nondeterministic finite automaton accepting all strings over {0,1} that end with a nonempty sequence of 0's followed by a nonempty sequence of 1's
what do you mean by a nonempty sequence?
well technically, the empty word ε is an empty sequence of 1
what I want is binary words of the form w 0…0 1…1 with 0…0 containing at least one 0, and 1…1 containing at least one 1
@abstract lotus
alright I'll try it out and ill come back to you thank you for being patient with me im really dense
@lucid matrix my exam went quite well! I got every question correct as per the study guide , the transition diagram question appeared and I drew like 6 different machines hopefully the examiner is lenient since the question was really vague
ok, good for you
@abstract lotus
Hello v3spertine, this is a friendly reminder that your help request has been inactive for more than 24 hours. If you no longer need assistance, please consider closing the thread using the +close command. This thread will be automatically closed in 3 days if it remains inactive.
Please thank the helpers who assisted you by clicking the buttons below. You can thank each helper only once. Once you're done, click "Close Post" to close this thread.
Thank you for your feedback! pétaire has been awarded 1
. They now have 829
. They have 2
daily left for today.