Skip to main content
Stack Overflow
  1. About
  2. For Teams
Filter by
Sorted by
Tagged with
1 vote
1 answer
112 views

such as .*ab For this regex, I can build an NFA using the Thompson algorithm like: When I try to use the subset construction algorithm to change it to a DFA, I find the result is weird. the DFA ...
caterpie's user avatar
-4 votes
1 answer
3k views

Also is regular expression possible for it? If yes, can someone show me both RE and NFA for this question? This is the NFA that I designed, but I am not really confident about my answer. NFA - ...
1 vote
1 answer
88 views

I've learned Coursera Algorithm course, and I want to convert NFA code in Java of this course to C++ by myself. Here's my code: DirectedGraph.h: #ifndef DIRECTEDGRAPH_H #define DIRECTEDGRAPH_H #pragma ...
Keke's user avatar
  • 19
0 votes
1 answer
54 views

I have been given this theorem and example that goes with it: Theorem 1.49 The class of regular languages is closed under the star operation. PROOF IDEA We have a regular language A1 and want to ...
0 votes
1 answer
112 views

I am working on theory of computer science problems but cannot get these to work: a. Give an NFA recognizing the language (01 ∪ 001 ∪ 010)* b. Convert this NFA to an equivalent DFA. Give only the ...
1 vote
1 answer
893 views

Let F be the language of all strings over {0,1} that do not contain a pair of 1s that are separated by an odd number of symbols. Give the state diagram of a DFA with five states that recognizes F . (...
Thien An's user avatar
0 votes
1 answer
1k views

I was practicing NFA (Non-Deterministic-Finite-Automata) designing and converting them to DFA. Then suddenly I got a doubt, as all the examples I have seen for conversion had NFA's initial state with ...
1 vote
1 answer
2k views

In automata theory, we can use Myhill–Nerode theorem to prove that a language is not regular. The theorem makes use of the concept of distinguishable and non-distinguishable strings. While it is ...
1 vote
1 answer
115 views

How do I create an NFA from BNF grammar? What I am specifically stuck on is the fact when we have two cases of recursion in the grammar such as in: < case > ::= < case > < int > 'b' |...
yes12345's user avatar
2 votes
0 answers
324 views

I was looking at this work page 31. It is talking about the Wu and Manber 1992 updated Bitap algorithm for Fuzzy search with Non-deterministic Automata. To be more precise this formula: Let's also ...
1 vote
1 answer
1k views

Problem is "Constructing a Dfa accepting set of all strings whose 10th symbol from the right end is 1 over {0,1}" The NFA is easy (0+1)*1(0+1)^9 , but DFA has to have minimum 2^10 states. ...
0 votes
1 answer
393 views

Left is the given solution, but it fails for 01110(shouldn't be true) and 010000 (should be true). If we do it like the right one like I did, then there might not be 1 in it so it fails because 000000 ...
0 votes
0 answers
28 views

I want to ask for help to solve this problem, I wonder if there is something wrong with my code or are there tools or extensions that I haven't installed enter image description here I've tried to ...
-2 votes
1 answer
48 views

NFA diagram the strings accepted are aaaaa which is pretty clear. The L = (111 + 1111)* is what I am getting but I need it in regular expression or grammar
coding12's user avatar
1 vote
1 answer
75 views

This is the question: Q: Given the following production rules, which is finite or otherwise the most constrained language in the Chomsky language hierarchy corresponding to the language described by ...

15 30 50 per page
1
2 3 4 5
...
21

AltStyle によって変換されたページ (->オリジナル) /