The document discusses theory of automata and formal languages including different types of automata like finite automata, pushdown automata, and Turing machines. It covers topics like regular expressions, context-free grammars, recursively enumerable languages, and proofs by induction and contradiction. The document provides references for further reading and outlines the syllabus covering these foundational concepts in theory of computation.
Python main function. Main function is the entry point of any program. But python interpreter executes the source file code sequentially and doesn't call any method if it's not part of the code. But if it's directly part of the code then it will be executed when the file is imported as a module.
Python main function. Main function is the entry point of any program. But python interpreter executes the source file code sequentially and doesn't call any method if it's not part of the code. But if it's directly part of the code then it will be executed when the file is imported as a module.
Notes for Mechanical and Computer science Students,
In the Notes Including the Basic to algo and transformation in Computer grafics Pixels, it is a important topic
Developing R Graphical User Interfaces, presented at
1. Workshop on Development of R software for data analysis, Hasselt University, Belgium, March 13th, 2013.
2. Joint Seminar, Medical Epidemiology and Biostatistics Department, Karolinska Institutet, April 4th, 2013.
RABIN KARP algorithm with hash function and hash collision, analysis, algorithm and code for implementation. Besides it contains applications of RABIN KARP algorithm also
Multistage Interconnection Networks (MINs) are designed to provide effective communication in switching. MINs networks consist of stages that can route the switching through the path. In this types of network the major problem occur when the switch failed to route in the stage. If these situations occur the switching needs to be routed to an alternative path to avoid system failure. Shuffle-exchange networks have been widely considered as practical interconnection systems due to their size of it switching elements and uncomplicated configuration. It can help in fault tolerance and reduce the latency.
A macro processor is a system software. Macro is that the Section of code that the programmer writes (defines) once, and then can use or invokes many times.
NP completeness. Classes P and NP are two frequently studied classes of problems in computer science. Class P is the set of all problems that can be solved by a deterministic Turing machine in polynomial time.
Notes for Mechanical and Computer science Students,
In the Notes Including the Basic to algo and transformation in Computer grafics Pixels, it is a important topic
Developing R Graphical User Interfaces, presented at
1. Workshop on Development of R software for data analysis, Hasselt University, Belgium, March 13th, 2013.
2. Joint Seminar, Medical Epidemiology and Biostatistics Department, Karolinska Institutet, April 4th, 2013.
RABIN KARP algorithm with hash function and hash collision, analysis, algorithm and code for implementation. Besides it contains applications of RABIN KARP algorithm also
Multistage Interconnection Networks (MINs) are designed to provide effective communication in switching. MINs networks consist of stages that can route the switching through the path. In this types of network the major problem occur when the switch failed to route in the stage. If these situations occur the switching needs to be routed to an alternative path to avoid system failure. Shuffle-exchange networks have been widely considered as practical interconnection systems due to their size of it switching elements and uncomplicated configuration. It can help in fault tolerance and reduce the latency.
A macro processor is a system software. Macro is that the Section of code that the programmer writes (defines) once, and then can use or invokes many times.
NP completeness. Classes P and NP are two frequently studied classes of problems in computer science. Class P is the set of all problems that can be solved by a deterministic Turing machine in polynomial time.
This file contains the contents about dynamic programming, greedy approach, graph algorithm, spanning tree concepts, backtracking and branch and bound approach.
Computing the Square Roots of Unity to break RSA using Quantum AlgorithmsDharmalingam Ganesan
We study the problem of finding the square roots of unity in a finite group in order to factor composite numbers used in RSA. We implemented Peter Shor’s algorithm to find the square root of unity. Experimental results showed that finding the square roots of unity in a finite group multiplicative group is “hard”.
Accounting for uncertainty is a crucial component in decision making (e.g., classification) because of ambiguity in our measurements.
Probability theory is the proper mechanism for accounting for uncertainty.
https://telecombcn-dl.github.io/2017-dlsl/
Winter School on Deep Learning for Speech and Language. UPC BarcelonaTech ETSETB TelecomBCN.
The aim of this course is to train students in methods of deep learning for speech and language. Recurrent Neural Networks (RNN) will be presented and analyzed in detail to understand the potential of these state of the art tools for time series processing. Engineering tips and scalability issues will be addressed to solve tasks such as machine translation, speech recognition, speech synthesis or question answering. Hands-on sessions will provide development skills so that attendees can become competent in contemporary data anlytics tools.
[Harvard CS264] 09 - Machine Learning on Big Data: Lessons Learned from Googl...npinto
Abstract:
Machine learning researchers and practitioners develop computer
algorithms that "improve performance automatically through
experience". At Google, machine learning is applied to solve many
problems, such as prioritizing emails in Gmail, recommending tags for
YouTube videos, and identifying different aspects from online user
reviews. Machine learning on big data, however, is challenging. Some
"simple" machine learning algorithms with quadratic time complexity,
while running fine with hundreds of records, are almost impractical to
use on billions of records.
In this talk, I will describe lessons drawn from various Google
projects on developing large scale machine learning systems. These
systems build on top of Google's computing infrastructure such as GFS
and MapReduce, and attack the scalability problem through massively
parallel algorithms. I will present the design decisions made in
these systems, strategies of scaling and speeding up machine learning
systems on web scale data.
Speaker biography:
Max Lin is a software engineer with Google Research in New York City
office. He is the tech lead of the Google Prediction API, a machine
learning web service in the cloud. Prior to Google, he published
research work on video content analysis, sentiment analysis, machine
learning, and cross-lingual information retrieval. He had a PhD in
Computer Science from Carnegie Mellon University.
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualityInflectra
In this insightful webinar, Inflectra explores how artificial intelligence (AI) is transforming software development and testing. Discover how AI-powered tools are revolutionizing every stage of the software development lifecycle (SDLC), from design and prototyping to testing, deployment, and monitoring.
Learn about:
• The Future of Testing: How AI is shifting testing towards verification, analysis, and higher-level skills, while reducing repetitive tasks.
• Test Automation: How AI-powered test case generation, optimization, and self-healing tests are making testing more efficient and effective.
• Visual Testing: Explore the emerging capabilities of AI in visual testing and how it's set to revolutionize UI verification.
• Inflectra's AI Solutions: See demonstrations of Inflectra's cutting-edge AI tools like the ChatGPT plugin and Azure Open AI platform, designed to streamline your testing process.
Whether you're a developer, tester, or QA professional, this webinar will give you valuable insights into how AI is shaping the future of software delivery.
GraphRAG is All You need? LLM & Knowledge GraphGuy Korland
Guy Korland, CEO and Co-founder of FalkorDB, will review two articles on the integration of language models with knowledge graphs.
1. Unifying Large Language Models and Knowledge Graphs: A Roadmap.
https://arxiv.org/abs/2306.08302
2. Microsoft Research's GraphRAG paper and a review paper on various uses of knowledge graphs:
https://www.microsoft.com/en-us/research/blog/graphrag-unlocking-llm-discovery-on-narrative-private-data/
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Tobias Schneck
As AI technology is pushing into IT I was wondering myself, as an “infrastructure container kubernetes guy”, how get this fancy AI technology get managed from an infrastructure operational view? Is it possible to apply our lovely cloud native principals as well? What benefit’s both technologies could bring to each other?
Let me take this questions and provide you a short journey through existing deployment models and use cases for AI software. On practical examples, we discuss what cloud/on-premise strategy we may need for applying it to our own infrastructure to get it to work from an enterprise perspective. I want to give an overview about infrastructure requirements and technologies, what could be beneficial or limiting your AI use cases in an enterprise environment. An interactive Demo will give you some insides, what approaches I got already working for real.
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...UiPathCommunity
💥 Speed, accuracy, and scaling – discover the superpowers of GenAI in action with UiPath Document Understanding and Communications Mining™:
See how to accelerate model training and optimize model performance with active learning
Learn about the latest enhancements to out-of-the-box document processing – with little to no training required
Get an exclusive demo of the new family of UiPath LLMs – GenAI models specialized for processing different types of documents and messages
This is a hands-on session specifically designed for automation developers and AI enthusiasts seeking to enhance their knowledge in leveraging the latest intelligent document processing capabilities offered by UiPath.
Speakers:
👨🏫 Andras Palfi, Senior Product Manager, UiPath
👩🏫 Lenka Dulovicova, Product Program Manager, UiPath
DevOps and Testing slides at DASA ConnectKari Kakkonen
My and Rik Marselis slides at 30.5.2024 DASA Connect conference. We discuss about what is testing, then what is agile testing and finally what is Testing in DevOps. Finally we had lovely workshop with the participants trying to find out different ways to think about quality and testing in different parts of the DevOps infinity loop.
Generating a custom Ruby SDK for your web service or Rails API using Smithyg2nightmarescribd
Have you ever wanted a Ruby client API to communicate with your web service? Smithy is a protocol-agnostic language for defining services and SDKs. Smithy Ruby is an implementation of Smithy that generates a Ruby SDK using a Smithy model. In this talk, we will explore Smithy and Smithy Ruby to learn how to generate custom feature-rich SDKs that can communicate with any web service, such as a Rails JSON API.
Key Trends Shaping the Future of Infrastructure.pdfCheryl Hung
Keynote at DIGIT West Expo, Glasgow on 29 May 2024.
Cheryl Hung, ochery.com
Sr Director, Infrastructure Ecosystem, Arm.
The key trends across hardware, cloud and open-source; exploring how these areas are likely to mature and develop over the short and long-term, and then considering how organisations can position themselves to adapt and thrive.
JMeter webinar - integration with InfluxDB and GrafanaRTTS
Watch this recorded webinar about real-time monitoring of application performance. See how to integrate Apache JMeter, the open-source leader in performance testing, with InfluxDB, the open-source time-series database, and Grafana, the open-source analytics and visualization application.
In this webinar, we will review the benefits of leveraging InfluxDB and Grafana when executing load tests and demonstrate how these tools are used to visualize performance metrics.
Length: 30 minutes
Session Overview
-------------------------------------------
During this webinar, we will cover the following topics while demonstrating the integrations of JMeter, InfluxDB and Grafana:
- What out-of-the-box solutions are available for real-time monitoring JMeter tests?
- What are the benefits of integrating InfluxDB and Grafana into the load testing stack?
- Which features are provided by Grafana?
- Demonstration of InfluxDB and Grafana using a practice web application
To view the webinar recording, go to:
https://www.rttsweb.com/jmeter-integration-webinar
2. BOOKS
Theory of computer Science: K.L.P.Mishra &
N.Chandrasekharan
Intro to Automata theory, Formal languages and
computation: Ullman,Hopcroft
Motwani
Elements of theory of computation Lewis &
papadimitrou
2
3. Syllabus
Introduction
Deterministic and non deterministic Finite
Automata, Regular Expression,Two way
finite automata,Finite automata with
output,properties of regular sets,pumping
lemma, closure properties,Myhill nerode
theorem
3
4. Context free Grammar: Derivation
trees, Simplification forms
Pushdown automata: Def, Relationship
between PDA and context free
language,Properties, decision algorithms
Turing Machines: Turing machine
model,Modification of turing
machines,Church’s
thesis,Undecidability,Recursive and
recursively enumerable languages Post
correspondence problems recursive
functions
4
5. Chomsky Hierarchy: Regular
grammars, unrestricted grammar, context
sensitive language, relationship among
languages
5
10. Different Kinds of Automata
Automata are distinguished by the temporary memory
• Finite Automata: no temporary memory
• Pushdown Automata: stack
• Turing Machines: random access memory
10
11. Pushdown Automaton
Stack Push, Pop
input memory
Pushdown
Automaton
output memory
Programming Languages (medium computing power)
11
14. Power sets
A power set is a set of sets
S = { a, b, c }
Powerset of S = the set of all the subsets of S
2S = { , {a}, {b}, {c}, {a, b}, {a, c}, {b, c}, {a, b, c} }
Observation: | 2S | = 2|S| ( 8 = 23 )
14
15. Cartesian Product
A = { 2, 4 } B = { 2, 3, 5 }
A X B = { (2, 2), (2, 3), (2, 5), ( 4, 2), (4, 3), (4, 4) }
|A X B| = |A| |B|
Generalizes to more than two sets
AXBX…XZ
15
16. RELATIONS
R = {(x1, y1), (x2, y2), (x3, y3), …}
xi R yi
e. g. if R = „>‟: 2 > 1, 3 > 2, 3 > 1
In relations xi can be repeated
16
17. Equivalence Relations
• Reflexive: xRx
• Symmetric: xRy yRx
• Transitive: x R Y and y R z xRz
Example: R = „=„
•x=x
•x=y y=x
• x = y and y = z x=z
17
18. Equivalence Classes
For equivalence relation R
equivalence class of x = {y : x R y}
Example:
R = { (1, 1), (2, 2), (1, 2), (2, 1),
(3, 3), (4, 4), (3, 4), (4, 3) }
Equivalence class of 1 = {1, 2}
Equivalence class of 3 = {3, 4} 18
19. Example of Equivalence relation
Let Z = set of integers
R be defined on it as:
R= {(x,y)| x Z, y Z and
(x - y)is divisible by 5}
This relation is known as
” congruent modulo 5”
19
22. Induction
We have statements P1, P2, P3, …
If we know
• for some k that P1, P2, …, Pk are true
• for any n >= k that
P1, P2, …, Pn imply Pn+1
Then
Every Pi is true
22
23. Trees
root
parent
leaf
child
Trees have no cycles
23
24. Proof by Induction
• Inductive basis
Find P1, P2, …, Pk which are true
• Inductive hypothesis
Let‟s assume P1, P2, …, Pn are true,
for any n >= k
• Inductive step
Show that Pn+1 is true 24
29. We want to show: l(i) <= 2i
• Inductive basis
l(0) = 1 (the root node)
• Inductive hypothesis
Let‟s assume l(i) <= 2i for all i = 0, 1, …, n
• Induction step
we need to show that l(n + 1) <= 2n+1 29
31. Proof by Contradiction
We want to prove that a statement P is true
• we assume that P is false
• then we arrive at an incorrect conclusion
• therefore, statement P must be true
31
32. Example
Theorem: 2 is not rational
Proof:
Assume by contradiction that it is rational
2 = n/m
n and m have no common factors
We will show that this is impossible
32
33. 2 = n/m 2 m 2 = n2
n is even
Therefore, n2 is even
n=2k
m is even
2 m2 = 4k2 m2 = 2k2
m=2p
Thus, m and n have common factor 2
Contradiction! 33
35. • String: A sequence of letters
– Examples: “cat”, “dog”, “house”, …
– Defined over an alphabet:
a, b, c,, z
Language: It is a set of strings on some
alphabet
35
36. Alphabets and Strings
• We will use small alphabets: a, b
• Strings a
ab u ab
abba v bbbaaa
baba w abba
aaabbbaabab
36
37. String Operations
w a1a2 an abba
v b1b2 bm bbbaaa
Concatenation
wv a1a2 anb1b2 bm abbabbbaaa
37
38. w a1a2 an ababaaabbb
Reverse
R
w an a2 a1 bbbaaababa
38
39. String Length
w a1a2 an
w n
• Length:
abba 4
• Examples:
aa 2
a 1
39
40. Recursive Definition of Length
a 1
For any letter: wa wa w 1
abba abb 1
For any string :
ab 1 1
Example: a 1 1 1
1 1 1 1
4 40
41. Length of Concatenation
uv u v
u aab, u 3
v abaab, v 5
• Example:
uv aababaab 8
uv u v 3 5 8
41
42. Proof of Concatenation Length
uv u v
• Claim: v
• Proof: By induction on the length
v 1
– Induction basis:
– From definition of length:
uv u 1 u v 42
43. uv u v
– Inductive hypothesis: v 1,2,, n
• for
uv u v
– Inductive step: we will prove
–
– for
v n 1
43
44. Inductive Step
v wa w n, a 1
• Write , where uv uwa uw 1
• From definition of length: wa w 1
uw u w
• From inductive hypothesis:
uv
• Thus: u w 1 u wa u v
44
45. Empty String
• A string with no letters:
0
• Observations:
w w w
abba abba abba
45
46. Substring
• Substring of string:
– a subsequence of consecutive characters
abbab ab
• String Substring
abbab abba
abbab b
abbab bbab
46
47. Prefix and Suffix
• Prefixes Suffixes abbab w uv
abbab
a bbab prefix
suffix
ab bab
abb ab
abba b
47
abbab
48. Another Operation
wn ww w
n
2
abba abbaabba
• Example:
0
w
• Definition:
– 0
abba
48
49. The * Operation
• * : the set of all possible strings from
• alphabet
a, b
* , a, b, aa, ab, ba, bb, aaa, aab,
•
49
50. The + Operation
: the set of all possible strings from
alphabet except
a, b
* , a, b, aa, ab, ba, bb, aaa, aab,
*
a, b, aa, ab, ba, bb, aaa, aab,
50
51. Language *
• A language is any subset of
a, b
• Example: * , a, b, aa, ab, ba, bb, aaa,
a, aa, aab
• Languages:
{ , abba, baba, aa, ab, aaaaaa}
51
52. Another Examplen
n
L {a b : n 0}
• An infinite language
ab
L abb L
aabb
aaaaabbbbb
52
53. Operations on Languages
• The usual set operations
a, ab, aaaa bb, ab {a, ab, bb, aaaa}
a, ab, aaaa bb, ab {ab}
a, ab, aaaa bb, ab a, aaaa
• Complement: L * L
a, ba , b, aa, ab, bb, aaa, 53
54. Reverse
R R
L {w : w L}
• Definition:
R
ab, aab, baba ba, baa, abab
• Examples:
n n
L {a b : n 0}
R n n
L {b a : n 0} 54
55. Concatenation
L1L2 xy : x L1, y L2
• Definition:
a, ab, ba b, aa
• Example:
ab, aaa, abb, abaa, bab, baaa
55
56. Another Operation
Ln LL L
n
• Definition:
3
a, b a, b a, b a, b
aaa, aab, aba, abb, baa, bab, bba, bbb
L0
• Special case:
0
a , bba , aaa 56
57. More Examples
n n
L {a b : n 0}
•
2 n n m m
L {a b a b : n, m 0}
2
aabbaaabbb L
57
58. Star-Closure (Kleene *)
0 1 2
L* L L L
• Definition:
,
• Example:
a, bb,
a, bb *
aa, abb, bba, bbbb,
• aaa, aabb, abba, abbbb,
58
59. Positive Closure
1 2
L L L
L*
• Definition:
a, bb,
a, bb aa, abb, bba, bbbb,
aaa, aabb, abba, abbbb,
59
84. • Deterministic Finite Accepter (DFA)
M Q, , , q0 , F
Q : Finite set of states
: input alphabet
: transition function
:Q X Q
q0 : initial state is a member of Q
F : set of final states
84
85. Input Alphabet
a, b
a,b
q5
b a a,b
a b
q0 a q1 b q2 b q3 a q4
85
86. Set of States Q
Q q0 , q1, q2 , q3 , q4 , q5
a,b
q5
a a,b
b a b
q0 a q1 b q2 b q3 a q4
86
95. * q0 , ab q2
a,b
q5
b a a,b
a b
q0 a q1 b q2 b q3 a q4
95
96. * q0 , abba q4
a,b
q5
b a a,b
a b
q0 a q1 b q2 b q3 a q4
96
97. * q0 , abbbaa q5
a,b
q5
b a a,b
a b
q0 a q1 b q2 b q3 a q4
97
98. Observation: There is a walk from q0 to q1
with label abbbaa
* q0 , abbbaa q5
a,b
q5
b a a,b
a b
q0 a q1 b q2 b q3 a q4
98
99. Recursive Definition
* q, q
• * q, wa ( * (q, w), a )
a,b
q5
b a a,b
a b
q0 a q1 b q2 b q3 a q4
99
100. * q0 , ab
* (q0 , a ), b
* q0 , ,a ,b
q0 , a , b
q1 , b
q2 a,b
q5
b a a,b
a b
q0 a q1 b q2 b q3 a q4
100
101. Languages Accepted by DFAs
• Take DFA M
• Definition:
– The language L M contains
– all input strings accepted by M
LM
– = { strings that drive M to a final state}
101
102. Example
LM abba M
• a,b
q5
b a a,b
a b
q0 a q1 b q2 b q3 a q4
accept
102
103. Another Example
LM , ab, abba M
• a,b
q5
b a a a,b
b
q0 a q1 b q2 b q3 a q4
accept accept accept
103
104. Formally
• For a DFA Language accepted by M :
LM w * : * q0 , w F
M Q, , , q0 , F
alphabet transition initial final
function state states
104
122. Second Choice
a a
q1 a q2
a
q0
a
No transition:
q3
the automaton hangs
122
123. Second Choice
a a
Input cannot be consumed
q1 a q2
a
q0
a
q3 “reject”
123
124. An NFA accepts a string:
when there is a computation of the NFA
that accepts the string
•All the input is consumed and the automaton
is in a final state
124
125. An NFA rejects a string:
when there is no computation of the NFA
that accepts the string
• All the input is consumed and the
automaton is in a non final state
• The input cannot be consumed
125
126. Example
aa is accepted by the NFA:
“accept”
q1 a q2 q1 a q2
a a
q0 q0
a a
q3 q3 “reject”
because this computation
accepts aa 126
172. Remarks:
•The symbol never appears on the
input tape
•Extreme automata:
M1 M2
q0 q0
L(M1 ) = {} L(M 2 ) = {λ}
172
173. •NFAs are interesting because we can
express languages easier than DFAs
a,b
NFA M1 DFA M2
q2
q0 a q1 b
a,b
q0 a q1
L( M1 ) = {a} L( M 2 ) = {a} 173
174. Formal Definition of NFAs
M Q, ,
, q0 , F
Q : Set of states, i.e. q0 , q1, q2
: Input alphabet, i.e. a, b
: Transition function
q0 : Initial state
F : Final states 174
193. • Since L M1 L M2 10 *
• machines M1 and M 2are equivalent
0
NFA M1 q0 q1 0, 1 q2
1
0,1
0
DFA M2 q0 q1 1 q2
1
0 193
194. Equivalence of NFAs and DFAs
Question: NFAs = DFAs ?
Same power?
Accept the same languages?
194
195. Equivalence of NFAs and DFAs
Question: NFAs = DFAs ? YES!
Same power?
Accept the same languages?
195
196. We will prove:
Languages Languages
accepted accepted
by NFAs by DFAs
NFAs and DFAs have the same
computation power
196
197. Step 1
Languages Languages
accepted accepted
by NFAs by DFAs
Proof: Every DFA is trivially an NFA
A language accepted by a DFA
is also accepted by an NFA 197
198. Step 2
Languages Languages
accepted accepted
by NFAs by DFAs
Proof: Any NFA can be converted to an
equivalent DFA
A language accepted by an NFA
is also accepted by a DFA 198
210. Procedure NFA to DFA
• 2. For every DFA’s state {qi , q j ,..., qm}
• Compute in the NFA
* qi , a ,
* q j,a , {qi , q j ,..., qm}
•
...
{qi , q j ,..., qm}, a {qi , q j ,..., qm}
•
210
Add transition to DFA
211. NFA M a
q0 a q1 q2
• b
* (q0 , a ) {q1, q2 }
DFA M
q0 a
q1, q2
q0 , a q1, q2 211
212. Procedure NFA to DFA
• Repeat Step 2 for all letters in alphabet,
• until
• no more transitions can be added.
212
213. NFA M a
q0 a q1 q2
• b
b a
DFA M
q0 a
q1, q2
b
a, b
213
214. Procedure NFA to DFA
• 3. For any DFA state {qi , q j ,..., qm}
• If some q j is a final state in the NFA
• Then, {qi , q j ,..., qm }
•
214
is a final state in the DFA
215. NFA M a
q0 a q1 q2 q1 F
• b
a
DFA M b
q0 a
q1, q2
b q1, q2 F
a, b
215
216. Theorem
Take NFA M
•
Apply procedure to obtain DFA M
Then M and M are equivalent :
LM LM
216
217. Finally
We have proven
Languages Languages
accepted accepted
by NFAs by DFAs
217
219. We have proven
Languages Languages
accepted accepted
by NFAs by DFAs
Regular Languages Regular Languages
219
220. We have proven
Languages Languages
accepted accepted
by NFAs by DFAs
Regular Languages Regular Languages
Thus, NFAs accept the regular languages
220
237. Example
n
L1* {a b} *
• NFA for
n
L1 {a N>=}
b0
a
b
237
238. Procedure: NFA to DFA
1 Create a graph with vertex {q0}.Identify this vertex as
initial vertex of DFA.
2 Repeat the following steps until no more edges are
missing.Take any vertex {qi,qj,….qk} of G that has no
outgoing edge for some symbol a of the alphabet.
Compute *(qi, a), * (qj, a)…. *(qk, a)
Then form the union of all these yielding the set
*
{ql, qm, …qn}.
Create a vertex for G labeled {ql, qm,…qn} if it does not
already exist.
Add to G an edge from {qi, qj,…qk} to {ql,qm…qn} and
label it with a.
3 Every state of G whose label contains any qf of F is
identified as a final vertex of DFA.
4 If NFA accepts then vertex {q0} in G is also made a
238
final vertex.