1. Trang chủ
  2. » Giáo án - Bài giảng

Discrrete mathematics for computer science coloring

22 87 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 22
Dung lượng 498,21 KB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

Color vertices so that min # gates needed Color the vertices... Final ExamsCourses conflict if student takes both, so need different time slots.. How short an exam period?... But This Ma

Trang 1

Coloring

Trang 3

Airline Schedule

122 145 67 257 306 99 Flights

time

Trang 4

Conflicts Among 3 Flights

99

145

306 Needs gate at same time

Trang 5

Model all Conflicts with a

Graph

257

67 99

145

306

122

Trang 6

Color vertices so that

min # gates needed

Color the vertices

Trang 7

Coloring the Vertices

257, 67 122,145 99

306

4 colors

4 gates

assig n

gates :

257

67 99

145

306

122

Trang 8

306

122

Trang 9

Final Exams

Courses conflict if student

takes both, so need different time slots

How short an exam period?

Trang 10

Harvard’s SolutionDifferent

Trang 12

But This May be Suboptimal

• Suppose course A and course B meet

at different times

• If no student in course A is also in

course B, then their exams could be simultaneous

• Maybe exam period can be

compressed!

• (Assuming no simultaneous

enrollment)

Trang 14

Map Coloring

Trang 15

Planar Four Coloring

any planar map is 4-colorable.

1850’s: false proof published

(was correct for 5 colors).

1970’s: proof with computer

1990’s: much improved

Trang 17

Pick any vertex as “root.”

if (unique) path from root is

even length:

odd length:

Trees are colorable

2-root

Trang 18

Simple Cycles

χ (Ceven) = 2

χ (Codd) = 3

Trang 19

Bounded Degreeall degrees ≤ k , implies

very simple

algorithm…

χ(G) ≤ k+1

Trang 20

“Greedy” Coloring

…color vertices in any

order next vertex gets a color different from its

neighbors.

≤ k neighbors, so

k+1 colors always

work

Trang 21

coloring arbitrary graphs

Trang 22

Finis

Ngày đăng: 22/03/2019, 11:07