Welcome! Cinda Heeren Lecturer Department of CS UIUC The Beauty of Computer Science.

Slides:



Advertisements
Similar presentations
Great Theoretical Ideas in Computer Science
Advertisements

Analysis of Algorithms CS 477/677
22C:19 Discrete Math Graphs Fall 2010 Sukumar Ghosh.
22C:19 Discrete Math Graphs Fall 2014 Sukumar Ghosh.
Midwestern State University Department of Computer Science Dr. Ranette Halverson CMPS 2433 – CHAPTER 4 GRAPHS 1.
Reducibility Class of problems A can be reduced to the class of problems B Take any instance of problem A Show how you can construct an instance of problem.
CompSci 102 Discrete Math for Computer Science April 19, 2012 Prof. Rodger Lecture adapted from Bruce Maggs/Lecture developed at Carnegie Mellon, primarily.
CS 206 Introduction to Computer Science II 03 / 27 / 2009 Instructor: Michael Eckmann.
Graphs Chapter 20 Data Structures and Problem Solving with C++: Walls and Mirrors, Carrano and Henry, © 2013.
Midwestern State University Department of Computer Science Dr. Ranette Halverson CMPS 2433 CHAPTER 4 - PART 2 GRAPHS 1.
 Graph Graph  Types of Graphs Types of Graphs  Data Structures to Store Graphs Data Structures to Store Graphs  Graph Definitions Graph Definitions.
CS 206 Introduction to Computer Science II 11 / 11 / Veterans Day Instructor: Michael Eckmann.
Great Theoretical Ideas in Computer Science.
Last time: terminology reminder w Simple graph Vertex = node Edge Degree Weight Neighbours Complete Dual Bipartite Planar Cycle Tree Path Circuit Components.
1 Representing Graphs. 2 Adjacency Matrix Suppose we have a graph G with n nodes. The adjacency matrix is the n x n matrix A=[a ij ] with: a ij = 1 if.
Graph & BFS.
Graphs Intro G.Kamberova, Algorithms Graphs Introduction Gerda Kamberova Department of Computer Science Hofstra University.
CS 206 Introduction to Computer Science II 11 / 03 / 2008 Instructor: Michael Eckmann.
Graph Colouring Lecture 20: Nov 25.
CS 206 Introduction to Computer Science II 11 / 05 / 2008 Instructor: Michael Eckmann.
CS 206 Introduction to Computer Science II 03 / 25 / 2009 Instructor: Michael Eckmann.
K-Coloring k-coloring: A k-coloring of a graph G is a labeling f: V(G)  S, where |S|=k. The labels are colors; the vertices of one color form a color.
K-Coloring k-coloring: A k-coloring of a graph G is a labeling f: V(G)  S, where |S|=k. The labels are colors; the vertices of one color form a color.
22C:19 Discrete Math Graphs Spring 2014 Sukumar Ghosh.
1 Shortest Path Calculations in Graphs Prof. S. M. Lee Department of Computer Science.
CS 2813 Discrete Structures
Coloring 3/16/121. Flight Gates flights need gates, but times overlap. how many gates needed? 3/16/122.
9.8 Graph Coloring. Coloring Goal: Pick as few colors as possible so that two adjacent regions never have the same color. See handout.
9.2 Graph Terminology and Special Types Graphs
Can you connect the dots as shown without taking your pen off the page or drawing the same line twice.
7.1 and 7.2: Spanning Trees. A network is a graph that is connected –The network must be a sub-graph of the original graph (its edges must come from the.
1 CS104 : Discrete Structures Chapter V Graph Theory.
CS 200 Algorithms and Data Structures
Connected Components Fun with graphs, searching, and queues.
Graphs, Puzzles, & Map Coloring
Fundamental Data Structures and Algorithms (Spring ’05) Recitation Notes: Graphs Slides prepared by Uri Dekel, Based on recitation.
Graph Colouring L09: Oct 10. This Lecture Graph coloring is another important problem in graph theory. It also has many applications, including the famous.
Fall 2015 COMP 2300 Discrete Structures for Computation Donghyun (David) Kim Department of Mathematics and Physics North Carolina Central University 1.
Computer Science: A Structured Programming Approach Using C Graphs A graph is a collection of nodes, called vertices, and a collection of segments,
Most of contents are provided by the website Graph Essentials TJTSD66: Advanced Topics in Social Media.
ساختمانهای گسسته دانشگاه صنعتی شاهرود – فروردین 1392.
1.5 Graph Theory. Graph Theory The Branch of mathematics in which graphs and networks are used to solve problems.
Graph Colouring Lecture 20: Nov 25. This Lecture Graph coloring is another important problem in graph theory. It also has many applications, including.
Graph Theory. A branch of math in which graphs are used to solve a problem. It is unlike a Cartesian graph that we used throughout our younger years of.
Graph theory and networks. Basic definitions  A graph consists of points called vertices (or nodes) and lines called edges (or arcs). Each edge joins.
Basic properties Continuation
CSE 421 Algorithms Richard Anderson Winter 2009 Lecture 5.
Graphs. Contents Terminology Graphs as ADTs Applications of Graphs.
Great Theoretical Ideas in Computer Science for Some.
Lecture 19 Minimal Spanning Trees CSCI – 1900 Mathematics for Computer Science Fall 2014 Bill Pine.
Graphs Definition: a graph is an abstract representation of a set of objects where some pairs of the objects are connected by links. The interconnected.
COMPSCI 102 Introduction to Discrete Mathematics.
CSE 421 Algorithms Richard Anderson Autumn 2015 Lecture 5.
Graph Coloring: Background and Assignment Networked Life NETS 112 Fall 2014 Prof. Michael Kearns.
Homework 8 Graph G is given by the figure below.
Graph Coloring.
The Beauty of Computer Science
Redraw these graphs so that none of the line intersect except at the vertices B C D E F G H.
Agenda Lecture Content: Introduction to Graph Path and Cycle
Introduction (with applications) ADT & terminology
Can you draw this picture without lifting up your pen/pencil?
Graphs Chapter 13.
Discrete Math II Howon Kim
Walks, Paths, and Circuits
Richard Anderson Autumn 2016 Lecture 5
Discrete Mathematics for Computer Science
Graph Vocabulary.
Richard Anderson Winter 2019 Lecture 5
Introduction to Graphs
For Friday Read chapter 9, sections 2-3 No homework
Presentation transcript:

Welcome! Cinda Heeren Lecturer Department of CS UIUC The Beauty of Computer Science

Let’s play! 1. People on adjacent vertices must hold different poses. 2. Use the smallest # of poses possible. 3. I specify some poses.

Graph Coloring

Suppose you have 16 friends each of whose talkitivity rating is O, L, P, S, 4 friends per type. No one sitting at the same table can have the same talkitivity rating. No one sitting on the same side of a pair of tables can have the same talkitivity rating. No one sitting in the same “column” can have the same talkitivity rating. Lunchroom Politics Can you seat your friends?

Suppose you have 16 friends each of whose talkitivity rating is O, L, P, S, 4 friends per type. Lunchroom Politics Can you seat your friends? No one sitting at the same table can have the same talkitivity rating. No one sitting on the same side of a pair of tables can have the same talkitivity rating. No one sitting in the same “column” can have the same talkitivity rating.

Lunchroom Politics Can you solve the puzzle? Fill in the grid so that each row, column, and bold 2x2 square has exactly one of each of the digits 1 through 4.

Sudoku Can you solve the puzzle? Fill in the grid so that each row, column, and bold 2x2 square has exactly one of each of the digits 1 through

Sudoku?

I can use my Graph Colorer to solve my Sudoku puzzles! To do so, I just have to run out to the store and buy an adapter that changes my Sudoku puzzle into the right graph…

You can think of the “adapter” and the “graph colorer” as pieces of software. They are programs whose inputs and outputs are well defined. What does this have to do with computer science? Sudoku / Graph Color ADAPTER Beautiful Ultimate Graph Colorer Map Color / Graph Color ADAPTER Exam Scheduler / Graph Color ADAPTER

CS173 Graphs Suppose YOU are the person in charge of scheduling finals. Conflict exams are not allowed…that is, no student can have two exams scheduled for any one time. How many exam periods do you need? Suppose I give you a graph consisting of vertices and edges. Your task is to label the vertices with colors. Vertices which share an edge cannot be colored the same. How many colors do you need? Why are these two problems on the same slide?

CS173 Graphs Graphs are a very general way of representing data. We can use graphs to model things as diverse as: Scheduling problems Routes for travelling between cities Connections between atoms in a molecule Paths that messages can take in a network Dependence relations between events in a large project

CS173 Graphs

Definitions you should understand: Simple Vertex Edge Weights Degree Neighbors Connected Complete Bipartite Planar Cycle Tree Path Circuit

CS 173 Announcements Homework #13 available, due 5/7, 8a. Final exam 5/10, 7-10p, 1404 Siebel, cinda w conflicts. Exam review: 5/9, 5-6:30p, location TBA Section this week is review.