Professional Documents
Culture Documents
CS-850: Advanced Theory of Computation: Adnan Rashid
CS-850: Advanced Theory of Computation: Adnan Rashid
CS-850: Advanced Theory of Computation: Adnan Rashid
Theory of Computation
(Spring 2020)
Lecture 2
Adnan Rashid
▪ Symmetric
▪ Transitive
▪ Directed/undirected edges
▪ Labeled/unlabeled nodes
▪ Subgraphs
Adnan Rashid Advanced Theory of Computation 7
Graphs
▪ Paths Cycles
▪ Connected
▪ Unconnected
▪ No cycles
▪ Root node
▪ String
• A finite sequence of symbols from the alphabet
• For example, w = bacaddcb
• Length of a string = |w| = |bacaddcb| = 8
• Empty String,
Adnan Rashid Advanced Theory of Computation 15
Strings
▪ Concatenation of the strings x and y is xy
• x = acb, y = bdda, xy = acbbdda
▪ Reverse of a string
= bca
▪ Empty language
• Regular expressions
• Context-free Grammars
▪ Demorgan’s Law
▪ Functions: g(f(y))
▪ Proof by construction
▪ Proof by contradiction
▪ Proof by induction