1 Problem of the Day: Describe using set descriptor notation the complements of (a) { , a, aa, aaa} over ∑ = {a} (b) { , a, aa, aaa} over ∑ = {a,b} (c)

Slides:



Advertisements
Similar presentations
Lecture 15. Graph Algorithms
Advertisements

Chapter 8 Topics in Graph Theory
Lecture 24 MAS 714 Hartmut Klauck
22C:19 Discrete Math Graphs Fall 2010 Sukumar Ghosh.
Introduction to Graph Theory Instructor: Dr. Chaudhary Department of Computer Science Millersville University Reading Assignment Chapter 1.
22C:19 Discrete Math Graphs Fall 2014 Sukumar Ghosh.
Graph-02.
CompSci 102 Discrete Math for Computer Science April 19, 2012 Prof. Rodger Lecture adapted from Bruce Maggs/Lecture developed at Carnegie Mellon, primarily.
Introduction This chapter explores graphs and their applications in computer science This chapter explores graphs and their applications in computer science.
Edited by Malak Abdullah Jordan University of Science and Technology Data Structures Using C++ 2E Chapter 12 Graphs.
 Graph Graph  Types of Graphs Types of Graphs  Data Structures to Store Graphs Data Structures to Store Graphs  Graph Definitions Graph Definitions.
C++ Programming: Program Design Including Data Structures, Third Edition Chapter 21: Graphs.
Introduction to Graphs
CS5371 Theory of Computation Lecture 1: Mathematics Review I (Basic Terminology)
Selected Topics in Data Networking Graph Representation.
Problem: Induced Planar Graphs Tim Hayes Mentor: Dr. Fiorini.
Discrete Mathematics Lecture 9 Alexander Bukharovich New York University.
22C:19 Discrete Math Graphs Spring 2014 Sukumar Ghosh.
GRAPH Learning Outcomes Students should be able to:
Graphs CS /02/05 Graphs Slide 2 Copyright 2005, by the authors of these slides, and Ateneo de Manila University. All rights reserved Definition.
Data Structures Using C++ 2E
Complexity 2-1 Problems and Languages Complexity Andrei Bulatov.
Graph Theoretic Concepts. What is a graph? A set of vertices (or nodes) linked by edges Mathematically, we often write G = (V,E)  V: set of vertices,
1 Proof of the Day: Let P= {(b, acbb), (aac, a), (b, ca)}. 1.Prove that P has a match. 2. Find Q which is P encoded in binary. 3.What match of Q corresponds.
1 Regular Expressions. 2 Regular expressions describe regular languages Example: describes the language.
Trees and Distance. 2.1 Basic properties Acyclic : a graph with no cycle Forest : acyclic graph Tree : connected acyclic graph Leaf : a vertex of degree.
© by Kenneth H. Rosen, Discrete Mathematics & its Applications, Sixth Edition, Mc Graw-Hill, 2007 Chapter 9 (Part 2): Graphs  Graph Terminology (9.2)
CSNB143 – Discrete Structure Topic 9 – Graph. Learning Outcomes Student should be able to identify graphs and its components. Students should know how.
1 CS104 : Discrete Structures Chapter V Graph Theory.
1 Exercise: Prove that the set S = { π : π is a permutation of {1, 2, 3, …, n} for some integer n ≥ 1 } is countable.
Spring 2007Graphs1 ORD DFW SFO LAX
Techniques for Proving NP-Completeness Show that a special case of the problem you are interested in is NP- complete. For example: The problem of finding.
Indian Institute of Technology Kharagpur PALLAB DASGUPTA Graph Theory: Introduction Pallab Dasgupta, Professor, Dept. of Computer Sc. and Engineering,
Graphs.  Definition A simple graph G= (V, E) consists of vertices, V, a nonempty set of vertices, and E, a set of unordered pairs of distinct elements.
1 String v is a prefix of w if w= v y for some string y. String v is a suffix of w if w= x v for some string x. String v is a substring of w if there are.
September1999 CMSC 203 / 0201 Fall 2002 Week #13 – 18/20/22 November 2002 Prof. Marie desJardins.
Mathematical Preliminaries
An Introduction to Graph Theory
Graph Theory and Applications
2 Office hours: MWR 4:20-5:30 inside or just outside Elliott 162- tell me in class that you would like to attend. For those of you who cannot stay: MWR:
 Quotient graph  Definition 13: Suppose G(V,E) is a graph and R is a equivalence relation on the set V. We construct the quotient graph G R in the follow.
Graphs Basic properties.
Lecture 2 Overview Topics What I forgot from last lecture Proof techniques continued Alphabets, strings, languages Automata June 2, 2015 CSCE 355 Foundations.
Chapter 9: Graphs.
Introduction to Graph Theory By: Arun Kumar (Asst. Professor) (Asst. Professor)
Great Theoretical Ideas in Computer Science for Some.
Chapter 20: Graphs. Objectives In this chapter, you will: – Learn about graphs – Become familiar with the basic terminology of graph theory – Discover.
COMPSCI 102 Introduction to Discrete Mathematics.
1 GRAPH Learning Outcomes Students should be able to: Explain basic terminology of a graph Identify Euler and Hamiltonian cycle Represent graphs using.
1 Lecture 5 (part 2) Graphs II (a) Circuits; (b) Representation Reading: Epp Chp 11.2, 11.3
1 Let S = { π : π is a permutation of {1, 2, 3, …, n} for some integer n ≥ 1 }. (a) List the elements of S for n= 1, 2, and 3. (b) Prove that the set S.
English for Economic Informatics I Tomáš Foltýnek Theoretical Foundations of Informatics.
Leda Demos By: Kelley Louie Credits: definitions from Algorithms Lectures and Discrete Mathematics with Algorithms by Albertson and Hutchinson graphics.
Graphs ORD SFO LAX DFW Graphs 1 Graphs Graphs
Graphs.
Data Structures 13th Week
Chapter 9 (Part 2): Graphs
Lecture 19: CONNECTIVITY Sections
Copyright © Zeph Grunschlag,
Great Theoretical Ideas In Computer Science
Grade 11 AP Mathematics Graph Theory
Graph theory Definitions Trees, cycles, directed graphs.
Assume that p, q, and r are in
Discrete Mathematics Lecture 13_14: Graph Theory and Tree
Σ 2i = 2 k i=0 CSC 225: Proof of the Day
Graphs G = (V, E) V are the vertices; E are the edges.
Discrete Mathematics for Computer Science
Introduction to Graph Theory
GRAPHS.
Presentation transcript:

1 Problem of the Day: Describe using set descriptor notation the complements of (a) { , a, aa, aaa} over ∑ = {a} (b) { , a, aa, aaa} over ∑ = {a,b} (c) {0,1}* {0010} {0,1}* over ∑={0,1} (d) {001} {0,1}* over ∑={0,1} (e) {0,1}* {1101} over ∑={0,1}

2 Announcements Tutorial #2 has been added to connex (it was on the class web pages before). You can attend both sections if you need extra help. Assignment #1 is due at the beginning of class this Fri. Sept. 24. Hand it in on paper (not electronically). Make sure you sign the class attendance sheet each class. If you want more time for our proof of the day, the notes are usually posted some time the night before or come to class early.

3 Introduction to Graph Theory Introduction to graph theory (review of CSC 225). Many of the hard problems (problems for which we do not have a polynomial time algorithm) studied at the end of the class are questions about graphs.

4 An undirected graph G consists of a set V of vertices and a set E of edges where each edge in E is associated with an unordered pair of vertices from V. The degree of a vertex v is the number of edges incident to v. If (u, v) is in E then u and v are adjacent. A simple graph has no loops or multiple edges. Exercise: prove by induction that a simple graph G on n vertices has at most n(n-1)/2 edges.

5 Internet taken from: org/asmap.png

6 Travelling Salesman From: Ehsan Moeinzadeh Guildford, Surrey, United Kingdom

7 Graphs representing chemical molecules

8

9 A cycle of a graph is an alternating sequence of vertices and edges of the form v 0, (v 0, v 1 ), v 1, (v 1, v 2 ), v 2, (v 2, v 3 ), …,v k-1, (v k-1, v k ), v k where except for v 0 = v k the vertices are distinct. Exercise: define path, define connected. A tree is a connected graph with no cycles. A subgraph H of a graph G is a graph with V(H)  V(H) and E(H)  E(G). H is spanning if V(H) = V(G). Spanning tree- spanning subgraph which is a tree.

10 Strange Algorithms Input: a graph G Question: does G have a spanning tree? This can be answered by computing a determinant of a matrix and checking to see if it is zero or not. Don’t make assumptions about what my algorithms for Hamilton Path/Hamilton cycle are doing! Treat them as a black box.

11 Fullerenes Correspond to 3-regular planar graphs. All faces are size 5 or 6. Euler’s formula: exactly 12 pentagons.

Nobel Prize in Chemistry 1996 In 1996, the Nobel Prize in Chemistry was awarded jointly to Robert Curl, Harold Kroto and Richard Smalley for their discovery of fullerenes. Prof Sir Harold W. Kroto Prof Robert F. Curl Jr Prof Richard E. Smalley Photo: P. S. HowellPhoto: Prudence CummingsPhoto: P. S. Howell, Rice

13 Hamilton Cycles A cycle which includes all the vertices of a graph. Conjecture: Every fullerene has at least one Hamilton cycle.

14 Min Number of Hamilton Cycles

15 Conjecture For all fullerenes except isomer 38:2, every edge is in at least one Hamilton cycle Isomer 38:2

16 Conjecture For all isomers except 38:2 and 40:8, no edge is in every Hamilton cycle. e Isomer 40:8

17 Incorrect Conjecture Every fullerene has some Hamilton cycle with no 6-cycles like this: Isomer 74:5689

18 Regular Languages

19 Operations on Languages: 1. Complement of L defined over Σ = = { w  Σ * : w is not in L } 2. Concatenation of Languages L 1 ۰ L 2 = L 1 L 2 = {w= x ۰ y for some x  L 1 and y  L 2 } 3. Kleene star of L, L * = { w= w 1 w 2 w 3 … w k for some k ≥ 0 and w 1, w 2, w 3, …,w k are all in L} 4. L + = L ۰ L * (Concatenate together one or more strings from L.)

20 Σ * = set of all strings over alphabet Σ Language over Σ – any subset of Σ * Examples: Σ = {0, 1} L 1 = { w  Σ * : w has an even number of 0’s} L 2 = { w  Σ * : w is the binary representation of a prime number with no leading zeroes} L 3 = Σ * L 4 = { } = Φ L 5 = { ε }

21 L 2 = {w  {0,1}* : w is the binary representation of a prime with no leading zeroes} The complement is: {w  {0,1}* : w is the binary representation of a number which is not prime which has no leading 0’s or w starts with 0} Note: 1 is not prime or composite. The string 1 is in the complement since it is not in L.

= = Matrix multiplication: Concatenation: ab ۰ bb = abbb bb ۰ ab = bbab

23 Regular Languages over Alphabet Σ: [Basis] 1. Φ and {σ} for each σ  Σ are regular languages. [Inductive step] If L 1 and L 2 are regular languages, then so are: 2. L 1 ۰ L 2, 3. L 1 ⋃ L 2, and 4. L 1 *.

24 Regular expressions over Σ: [Basis] 1. Φ and σ for each σ  Σ are regular expressions. [Inductive step] If α and β are regular expressions, then so are: 2. ( αβ) 3. (α ⋃ β) and 4. α * Note: Regular expressions are strings over Σ ⋃ { (, ), Φ, ⋃, * } for some alphabet Σ.

25 Precedence of Operators Exponents Multiplication Addition Kleene star Concatenation Union highest ⇩ lowest