The Beauty of Computer Science

Slides:



Advertisements
Similar presentations
22C:19 Discrete Math Graphs Fall 2010 Sukumar Ghosh.
Advertisements

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.
Midwestern State University Department of Computer Science Dr. Ranette Halverson CMPS 2433 CHAPTER 4 - PART 2 GRAPHS 1.
Structured Graphs and Applications
CS 206 Introduction to Computer Science II 11 / 11 / Veterans Day Instructor: Michael Eckmann.
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.
CS 206 Introduction to Computer Science II 11 / 03 / 2008 Instructor: Michael Eckmann.
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.
Coloring Graphs This handout: Coloring maps and graphs
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.
Can you connect the dots as shown without taking your pen off the page or drawing the same line twice.
Connected Components Fun with graphs, searching, and queues.
Fundamental Data Structures and Algorithms (Spring ’05) Recitation Notes: Graphs Slides prepared by Uri Dekel, Based on recitation.
Most of contents are provided by the website Graph Essentials TJTSD66: Advanced Topics in Social Media.
1.5 Graph Theory. Graph Theory The Branch of mathematics in which graphs and networks are used to solve problems.
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.
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.
CSE 421 Algorithms Richard Anderson Autumn 2015 Lecture 5.
Welcome! Cinda Heeren Lecturer Department of CS UIUC The Beauty of Computer Science.
Graph Coloring: Background and Assignment Networked Life NETS 112 Fall 2014 Prof. Michael Kearns.
Hamiltonian Graphs Graphs Hubert Chan (Chapter 9.5)
Hamilton Paths and Hamilton Circuits
Homework 8 Graph G is given by the figure below.
Graph Coloring.
CS 201: Design and Analysis of Algorithms
Introduction to Graphs
Redraw these graphs so that none of the line intersect except at the vertices B C D E F G H.
Bipartite Matching Lecture 8: Oct 7.
Task Tables Draw a graph for the following task table.
CS 367 – Introduction to Data Structures
Agenda Lecture Content: Introduction to Graph Path and Cycle
Hamiltonian Graphs Graphs Hubert Chan (Chapter 9.5)
Introduction to Graphs
Great Theoretical Ideas in Computer Science
Introduction (with applications) ADT & terminology
UNIT 1: EULER CIRCUITS GRAPH THEORY.
Section 14.3 Hamilton Paths, and Hamilton Circuits
Discrete Mathematics for Computer Science
Can you draw this picture without lifting up your pen/pencil?
Graph Theory.
Quiz Review.
Lecture 15: Graph Theory II
Graphs Chapter 13.
Chapter 10.8 Graph Coloring
Coloring Graphs This handout: Coloring maps and graphs
Discrete Math II Howon Kim
Walks, Paths, and Circuits
Chapter 10.8 Graph Coloring
Decision Maths Graphs.
Discrete Mathematics Lecture 13_14: Graph Theory and Tree
Discrete Mathematics for Computer Science
Graph Vocabulary.
Graphs: Definitions How would you represent the following?
Introduction to Graphs
For Friday Read chapter 9, sections 2-3 No homework
Introduction to Graphs
Lecture 22 Complexity and Reductions
Presentation transcript:

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

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

This is a very useful problem to know about… but I introduced it to you here because we can play this fun game… and it gets you accustomed to seeing graphs… Graph Coloring

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. No one sitting in the same “column” 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 at the same table can have the same talkitivity rating. We are looking for photos of these women. Also, I think we’ll probably replace the first person with Mary Pacold, who is doing computational biology in graduate school, or something like that. Can you seat your friends?

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. No one sitting at the same table can have the same talkitivity rating. We are looking for photos of these women. Also, I think we’ll probably replace the first person with Mary Pacold, who is doing computational biology in graduate school, or something like that. 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. Can you seat your friends?

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. We are looking for photos of these women. Also, I think we’ll probably replace the first person with Mary Pacold, who is doing computational biology in graduate school, or something like that. Can you solve the puzzle?

1 2 2 4 3 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 4. 2 BRING IN THE GRAPH COLORER!!!!!! 2 4 3 Can you solve the puzzle?

Sudoku? 1 2 Draw the graph on the boxes… 2 4 3

Sudoku? 1 I can use my Graph Colorer to solve my Sudoku puzzles! 2 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… Draw the graph on the boxes… 2 4 3

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

Why are these two problems on the same slide? 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? Why are these two problems on the same slide? 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?

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

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, email cinda w conflicts. Exam review: 5/9, 5-6:30p, location TBA Section this week is review.