lecture 17

15
Lecture 17 CSE 331 Oct 7, 2011

Upload: ora

Post on 07-Jan-2016

29 views

Category:

Documents


0 download

DESCRIPTION

Lecture 17. CSE 331 Oct 7, 2011. HW 4 due today. Q1, Q2 and Q3 in separate piles. I will not take any HW after 1:15pm. Mid term. Monday in class at 1pm. Unfortunately I won’t be there. Jiun-Jie with my PhD students Steve & Swapnoneel will proctor the exam. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Lecture 17

Lecture 17

CSE 331Oct 7, 2011

Page 2: Lecture 17

HW 4 due today

Q1, Q2 and Q3 in separate piles

I will not take any HW after 1:15pm

Page 3: Lecture 17

Mid term

Monday in class at 1pm

Unfortunately I won’t be there

Jiun-Jie with my PhD students Steve & Swapnoneel will proctor the exam

Page 4: Lecture 17

Graded HW 3 & solutions to HW4

Graded HW3 in office-hour-a-thon

Solutions to HW 4 at the end of the lecture

Page 5: Lecture 17

On Friday, Oct 7

hours-a-thon

Atri: 2:00-3:00 (Bell 123)

Jiun-Jie: 4:00-5:00 (Commons 9)Jesse: 5:00-6:00 (Bell 224)

UnclaimedHWs and solutions

UnclaimedHWs and solutions

Page 6: Lecture 17

To form a group

Can use comment section on the blog

(Do not use the anonymous comment link)

Page 7: Lecture 17

If there is interest

Can spend last 10 mins taking questions on the mid-term

Page 8: Lecture 17

Directed graphs

Model asymmetric relationships

Precedence relationships

u needs to be done before v means (u,v) edge

Page 9: Lecture 17

Directed graphsAdjacency

matrix is not symmetric

Adjacency matrix is not symmetric

Each vertex has two lists in Adj. list rep.

Each vertex has two lists in Adj. list rep.

Page 10: Lecture 17

Directed Acyclic Graph (DAG)

No directed cycles

Precedence relationships are

consistent

Precedence relationships are

consistent

Page 11: Lecture 17

Topological Sorting of a DAG

Order the vertices so that all edges go “forward”

Topological sorting DAG

Topological sorting DAG

Page 12: Lecture 17

HW 4 due today

Q1, Q2 and Q3 in separate piles

I will not take any HW after 1:15pm

Page 13: Lecture 17

Today’s agenda

DAG topological sorting

Page 14: Lecture 17

A notation announcement

I will (try to) not use u from now on

Page 15: Lecture 17

Run of TopOrd algorithm