As above, I have a transition graph, but I'm not sure how to find the language of it, seems to me that there are a lot of possibilities, but I must be misunderstanding somehow. My understanding is that any word that leads from the initial to the final state is accepted. Surely there are a lot of different ways to achieve this. aab, ab, abb, abbaab. As I understand it, a language is a set of all the possible words, but if there are a vast amount of possible words, how can you find the language? Im a first year University student, this is part of my homework, but I'm not just trying to get you to do it for me, I want to understand it - if this doesn't make sense/ is in the wrong place I apologise in advance, thanks. Here's my graph
How to find the language of a NFA
2.2k Views Asked by NotTooSmart13 At
1
There are 1 best solutions below
Related Questions in FINITE-AUTOMATA
- i want dfa that accept string of{a,b,c} that starting with a and ending with c and have even no. of b
- Converting DFA to RE
- Designing a DFA (alphabet 'a' and 'b') : The number of 'a' in the string must be a multiple of 3, and the string does not contain 'aba'
- Does there exist a TM for all countable languages?
- How to find useless states in a finite state machine Prolog
- Can a RegEx with negative lookahead be represented as a finite automaton?
- Can final and non-final states having identical configurations be merged together in a minimal DFA?
- automata theorem: existance of a DFA
- Shortest regex for binary number with even number of 0s or odd number of 1s
- Coding a propositional logic parser by hand
- Modeling FSM with conditions?
- Finding DFA of r* when r and DFA of r were deifined
- How to Design an acceptor for integers in a programming language C
- Minimum number of states needed?
- What is the fastest way to compute an epsilon closure?
Related Questions in NFA
- how to handle Unicode dot in table driven FSM?
- i want dfa that accept string of{a,b,c} that starting with a and ending with c and have even no. of b
- Why can't the Kleene closure construction for an NFA be simplified?
- Design NFA with changing alphabet and language
- If pref(L) is regular, does that imply L is also regular?
- Regex Matching a string
- how to intuitively think while Designing an NFA
- I'm trying to solve DFA
- NFA pros and cons compared to DFA?
- Difference between Transducer and NFA
- RegEx that matches "variable" strings/sequences? + backtracking?
- RE: implemrnting match range {m,n} in NFA?
- Representing graphs in clojure
- How do we know that an NFA has a minimum amount of states?
- How to implement regular expression NFA with character ranges?
Related Questions in AUTOMATON
- Design NFA with changing alphabet and language
- A pushdown automaton that recognizes the negation of a language
- If pref(L) is regular, does that imply L is also regular?
- Scalability of aho corasick
- Deterministic automaton whose input length is divisible by 3 or 5?
- recognizing a date in the form: 03/02 for February 3 , For simplicity, we consider that each month is made up of 30 days
- Build a Turing Machine that counts a's and b's
- Design a nondeterministic finite automata in c++ (incorrect output)
- Why does my c++ program crashes at with a particular input?
- how would I build a generalized DFA for decimal Multiples of k?
- Moving from state to state in this automaton via HashMap
- How should I implement this HashMap's equals and hashCode methods to represent an automaton state?
- How can a Stack of Push Down Automata accept a string of Indefinitely Large?
- Stack around the variable 'userStr' was corrupted (C)
- Automaton DFA implementation not working using Java
Related Questions in FINITE-STATE-AUTOMATON
- Designing a DFA (alphabet 'a' and 'b') : The number of 'a' in the string must be a multiple of 3, and the string does not contain 'aba'
- Given a finite character vocabulary, what is the easiest way to represent arbitrarily long sequences of characters with uniform length?
- How to create a deterministic finite automata for the "regular" function where states lead to more than one state depending on the value of an int
- How do I set a pause between if statements?
- Detect cyclic feeding interactions without applying XFST replace rules to lexicon
- Understanding Lexicon FST in yesno example of Kaldi
- How does placing the output (word) labels on the initial transitions of the words in an FST lead to effective composition?
- How does forced alignment happen in Kaldi?
- On the use of subsequential symbol $ in Finite state transducers to pad out the context, for composition
- Finite state machine with timer resets
- how to construct a dfa that recognizes the set of bit string that begins with two D's?
- Automaton for prefix matching
- Why does my screen not update when I click my button the first time, but works perfectly fine afterwards?
- Generate output based on first character of a word
- Is this NFA correctly accepting inputs that end with a 00?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Some regular languages are finite - they contain a finite number of strings. When you have a finite number of things, that means you can count them all and get to the end eventually; you can write them all down if they're words in a language. Writing down all the words in a language is a way of giving an extensive definition of a language.
However - there are languages which are not finite. They do not contain any number of words you can count from beginning to end, or ever completely write down. If you think of all natural numbers (1, 2, …, 100, …) as strings in the language of decimal representations, clearly there are not finitely many of them. There are infinitely many. You cannot give extensive definitions of infinite languages (except, possibly, by suggestive use of the ellipsis, as I have done in my example). In these cases, you must describe the strings which are included and/or excluded and rely on the reader to deduce membership for any particular case.
Giving a finite automaton is one perfectly reasonable way of giving a criterion according to which membership in the language can be determined: run the string through the automaton and see if it is accepted. In this sense, asking what the language of a finite automaton is can be viewed as trivial: it accepts the language of strings that leave the finite automaton in an accepting state.
Another way of describing the language is to give a grammar or, for regular languages, a regular expression. These are not necessarily more or less helpful ways of describing a language than the finite automaton you already have is.
Typically, in coursework, when you are asked to describe the language of a finite automaton, you are probably being asked to give a plain, English-language definition - a simple one - of the strings, and possibly provide some set-builder notation. That's what we'll try to do here.
Your NFA loops in q0, accepting any number of
a, until it sees at least onea. If it sees abbefore ana, it crashes. After that, if it sees at least oneb, it can accept; it can see any number ofb, but after the initial run ofa, it can never again see twoain a row. The machine accepts only if it ends with ab.Taken together, this might be a description in plain English that is good for this language:
A regular expression for this language is
aa*(bb*a)*.