Theorem 1. An undirected graph is a tree if and only if there is a unique simple path between any two of its vertices.

Similar documents
Applications of trees

Weighted Graphs. Weighted graphs may be either directed or undirected.

Graphs Depth First Search

Lecture 20: Minimum Spanning Trees (CLRS 23)

CMPS 2200 Fall Graphs. Carola Wenk. Slides courtesy of Charles Leiserson with changes and additions by Carola Wenk

(Minimum) Spanning Trees

Spanning Trees. BFS, DFS spanning tree Minimum spanning tree. March 28, 2018 Cinda Heeren / Geoffrey Tien 1

The University of Sydney MATH 2009

5/1/2018. Huffman Coding Trees. Huffman Coding Trees. Huffman Coding Trees. Huffman Coding Trees. Huffman Coding Trees. Huffman Coding Trees

Depth First Search. Yufei Tao. Department of Computer Science and Engineering Chinese University of Hong Kong

Planar convex hulls (I)

On Hamiltonian Tetrahedralizations Of Convex Polyhedra

Strongly connected components. Finding strongly-connected components

L.3922 M.C. L.3922 M.C. L.2996 M.C. L.3909 M.C. L.5632 M.C. L M.C. L.5632 M.C. L M.C. DRIVE STAR NORTH STAR NORTH NORTH DRIVE

Divided. diamonds. Mimic the look of facets in a bracelet that s deceptively deep RIGHT-ANGLE WEAVE. designed by Peggy Brinkman Matteliano

4.1 Interval Scheduling. Chapter 4. Greedy Algorithms. Interval Scheduling: Greedy Algorithms. Interval Scheduling. Interval scheduling.

Graphs Breadth First Search

CMSC 451: Lecture 4 Bridges and 2-Edge Connectivity Thursday, Sep 7, 2017

Graph Search (6A) Young Won Lim 5/18/18

Having a glimpse of some of the possibilities for solutions of linear systems, we move to methods of finding these solutions. The basic idea we shall

COMP 250. Lecture 29. graph traversal. Nov. 15/16, 2017

Closed Monochromatic Bishops Tours

In which direction do compass needles always align? Why?

Improving Union. Implementation. Union-by-size Code. Union-by-Size Find Analysis. Path Compression! Improving Find find(e)

Graph Search Algorithms

Computer Graphics. Viewing & Projections

2 Trees and Their Applications

learning objectives learn what graphs are in mathematical terms learn how to represent graphs in computers learn about typical graph algorithms

CS 103 BFS Alorithm. Mark Redekopp

Exam 2 Solutions. Jonathan Turner 4/2/2012. CS 542 Advanced Data Structures and Algorithms

Lecture II: Minimium Spanning Tree Algorithms

Face Detection and Recognition. Linear Algebra and Face Recognition. Face Recognition. Face Recognition. Dimension reduction

MAT3707. Tutorial letter 201/1/2017 DISCRETE MATHEMATICS: COMBINATORICS. Semester 1. Department of Mathematical Sciences MAT3707/201/1/2017

An action with positive kinetic energy term for general relativity. T. Mei

Grade 7/8 Math Circles March 4/5, Graph Theory I- Solutions

QUESTIONS BEGIN HERE!

Minimum Spanning Trees (CLRS 23)

Platform Controls. 1-1 Joystick Controllers. Boom Up/Down Controller Adjustments

Math 166 Week in Review 2 Sections 1.1b, 1.2, 1.3, & 1.4

Designing A Uniformly Loaded Arch Or Cable

SAMPLE CSc 340 EXAM QUESTIONS WITH SOLUTIONS: part 2

CHELOURANYAN CALENDAR FOR YEAR 3335 YEAR OF SAI RHAVË

Priority Search Trees - Part I

T H E S C I E N C E B E H I N D T H E A R T

PR D NT N n TR T F R 6 pr l 8 Th Pr d nt Th h t H h n t n, D D r r. Pr d nt: n J n r f th r d t r v th tr t d rn z t n pr r f th n t d t t. n

MATERIAL SEE BOM ANGLES = 2 > 2000 DATE MEDIUM FINISH

d e c b a d c b a d e c b a a c a d c c e b


Sheet Title: Building Renderings M. AS SHOWN Status: A.R.H.P.B. SUBMITTAL August 9, :07 pm

DOCUMENT STATUS: RELEASE


BASIC CAGE DETAILS SHOWN 3D MODEL: PSM ASY INNER WALL TABS ARE COINED OVER BASE AND COVER FOR RIGIDITY SPRING FINGERS CLOSED TOP

n

CSE 332. Data Structures and Parallelism

CSE 332. Graphs 1: What is a Graph? DFS and BFS. Data Abstractions. CSE 332: Data Abstractions. A Graph is a Thingy... 2

Humanistic, and Particularly Classical, Studies as a Preparation for the Law

A ' / 1 6 " 5 ' / 4 " A4.2 48' - 0" 3 12' - 7" 13' - 11" 10' - 0" 9' - 0" 2' - 6" 1. 2: 12 INDICATES SHOW MELT TYP ABV ABV

n r t d n :4 T P bl D n, l d t z d th tr t. r pd l

176 5 t h Fl oo r. 337 P o ly me r Ma te ri al s

4 4 N v b r t, 20 xpr n f th ll f th p p l t n p pr d. H ndr d nd th nd f t v L th n n f th pr v n f V ln, r dn nd l r thr n nt pr n, h r th ff r d nd

CLKOUT CLKOUT VCC CLKOUT RESOUT OSCOUT ALE TEST AD0 66 AD2 INT0 INT0 AD INT1 AD INT2/INTA0 AD5 AD7 AD7 INT AD8 AD8 AD10

DOCUMENT STATUS: MINTP0 E-ST5080, BASE, NO DISPLAY VENDOR: 15.5 INCH MATERIAL SEE BOM FINISH REVISION HISTORY ITEM NO. PART NUMBER DESCRIPTION

SOCKET WELD OR THREADED BODY TYPE (3051SFP FLOWMETER SHOWN THROUGHOUT / 3051CFP, 2051CFP AVAILABLE)

828.^ 2 F r, Br n, nd t h. n, v n lth h th n l nd h d n r d t n v l l n th f v r x t p th l ft. n ll n n n f lt ll th t p n nt r f d pp nt nt nd, th t

BASIC CAGE DETAILS D C SHOWN CLOSED TOP SPRING FINGERS INNER WALL TABS ARE COINED OVER BASE AND COVER FOR RIGIDITY

N V R T F L F RN P BL T N B ll t n f th D p rt nt f l V l., N., pp NDR. L N, d t r T N P F F L T RTL FR R N. B. P. H. Th t t d n t r n h r d r

MATERIAL SEE BOM ANGLES = 2 FINISH N/A

,. *â â > V>V. â ND * 828.

46 D b r 4, 20 : p t n f r n b P l h tr p, pl t z r f r n. nd n th t n t d f t n th tr ht r t b f l n t, nd th ff r n b ttl t th r p rf l pp n nt n th

22 t b r 2, 20 h r, th xp t d bl n nd t fr th b rd r t t. f r r z r t l n l th h r t rl T l t n b rd n n l h d, nd n nh rd f pp t t f r n. H v v d n f

Colby College Catalogue

12/3/12. Outline. Part 10. Graphs. Circuits. Euler paths/circuits. Euler s bridge problem (Bridges of Konigsberg Problem)

Determination of slot leakage inductance for three-phase induction motor winding using an analytical method

5/9/13. Part 10. Graphs. Outline. Circuits. Introduction Terminology Implementing Graphs

DOCUMENT STATUS: CORE HEALTH & FITNESS, LLC IL-D2002-XXAAX IP,DUAL ADJUSTIBLE PULLEY MATERIAL SEE BOM FINISH N/A N/A SHEET SIZE: B SCALE: 1:33.

P a g e 5 1 of R e p o r t P B 4 / 0 9

0 t b r 6, 20 t l nf r nt f th l t th t v t f th th lv, ntr t n t th l l l nd d p rt nt th t f ttr t n th p nt t th r f l nd d tr b t n. R v n n th r

A T.O. MECH. ROOF SCREEN T.O. MECH. ROOF SCREEN SHOWER / TUB RM KITCHEN / SERVERY LOUNGE / DINING SINGLE ROOM ACTIVITY AREA

23 Minimum Spanning Trees

Housing Market Monitor

Math 61 : Discrete Structures Final Exam Instructor: Ciprian Manolescu. You have 180 minutes.

4 8 N v btr 20, 20 th r l f ff nt f l t. r t pl n f r th n tr t n f h h v lr d b n r d t, rd n t h h th t b t f l rd n t f th rld ll b n tr t d n R th

Cycles and Simple Cycles. Paths and Simple Paths. Trees. Problem: There is No Completely Standard Terminology!

Minimum Spanning Trees (CLRS 23)


17 Basic Graph Properties

Differentiation of allergenic fungal spores by image analysis, with application to aerobiological counts

QUESTIONS BEGIN HERE!

DOCUMENT STATUS: LA-S5302-XXXXS LA, SSS, TRICEPS EXTENSION VERY

OpenMx Matrices and Operators

Colby College Catalogue

Colby College Catalogue

Exhibit 2-9/30/15 Invoice Filing Page 1841 of Page 3660 Docket No

CS61B Lecture #33. Administrivia: Autograder will run this evening. Today s Readings: Graph Structures: DSIJ, Chapter 12

18 Basic Graph Properties

t r ès s r â 2s ré t s r té s s s s r é é ér t s 2 ï s t 1 s à r

Outline. Circuits. Euler paths/circuits 4/25/12. Part 10. Graphs. Euler s bridge problem (Bridges of Konigsberg Problem)

I N A C O M P L E X W O R L D

Winnie flies again. Winnie s Song. hat. A big tall hat Ten long toes A black magic wand A long red nose. nose. She s Winnie Winnie the Witch.

Th n nt T p n n th V ll f x Th r h l l r r h nd xpl r t n rr d nt ff t b Pr f r ll N v n d r n th r 8 l t p t, n z n l n n th n rth t rn p rt n f th v

Transcription:

Cptr 11: Trs 11.1 - Introuton to Trs Dnton 1 (Tr). A tr s onnt unrt rp wt no sp ruts. Tor 1. An unrt rp s tr n ony tr s unqu sp pt twn ny two o ts vrts. Dnton 2. A root tr s tr n w on vrtx s n snt s t root n vry s rt wy ro t root. T onvnton s to rw root trs wt t root t t top, n tn ot t rton rrows on t s. Dnton 3. Lt T root tr. I v s vrtx n T otr tn t root, tn t prnt o v s t unqu vrtx u su tt tr s rt ro u to v. Wn u s prnt o v, v s o u. Vrts wt t s prnt r sns. T nstors o vrtx otr tn t root r t vrts n t pt ro t root to ts vrtx, xun t vrtx ts ut nun t root. T snnts o vrtx v r tos vrts tt v v s n nstor. A vrtx o root tr s t s no rn. Vrts tt v rn r ntrn vrts. T root s n ntrn vrtx unss t s t ony vrtx (n w s t s ). I s vrtx n tr, t sutr wt s ts root s t surp o t tr onsstn o, ts snnts, n s nnt to tos snnts. Exp 1. 1

Dnton 4. An orr tr s tr n w n orrn s ssn to t rn o vry ntrn vrtx. Wn rwn t tr, w orr t rn t to rt. Wn tr r t ost two rn o ny vn vrtx, w us t n rt to sr t (otrws w us rst, son, t.). Exp 2. Dnton 5 (-ry Tr). A root tr s n -ry tr vry ntrn vrtx s no or tn rn. An -ry tr s u vry ntrn vrtx s xty rn. An -ry tr wt = 2 s nry tr Tor 2. A tr wt n vrts s n 1 s. Tor 3. A u -ry tr wt () n vrts s = n 1 ntrn vrts n = n( 1) + 1 () ntrn vrts s n = + 1 vrts n = ( 1) + 1. () vs s n = 1 1 vrts n = 1 1 ntrn vrts. vs. (So, vn n u -ry tr n on o n,, or, w n n t otr two quntts.) 2

Exp 3. Suppos tt soon strts n. E prson wo rvs t s s to orwr t to our otr pop. So pop o ts, ut otrs o not sn ny s. How ny pop v sn t, nun t rst prson, no on rvs t or tn on n t n ns tr tr v n 100 pop wo r t ut not sn t out? How ny pop snt out t? Dnton 6. T v o vrtx s ts stn ro t root. T root s t v 0, ts rn r t v 1, t. T t o tr s t xu o t vs o ts vrts. A tr o t s s to n o ts vs r t t or 1. Exp 4. Tor 4. Tr r t ost vs n n -ry tr o t. Corory 5. I n -ry tr o t s vs, tn o. I t -ry tr s u n n, tn = o. 3

11.2 - Apptons o Trs Exp 5 (Bnry Sr Tr). Crt nry sr tr or ts st o ns: Crott, Ros, Arturo, Kr, Constn, Knnt, Tr, Jss, Fr, M. Exp 6 (Dson Tr). Crt son tr tt orrs t nts,,. Exp 7 (G Trs). Crt tr or N. 4

Exp 8 (Hun Con). W on t two trs (ou ust sn vrtx) wt st tot wt nto nw tr wt t rr wt on t t n t sr wt on t rt. On ts pross s opt w r o t o ro root to. Crtr Proty o Ourrn 0.12 0.02 0.08 o 0.14 p 0.03 r 0.11 s 0.20 t 0.30 11.3 - Tr Trvrs Aort 6 (Unvrs Arss Syst). 1. L t root wt t ntr 0. Tn ts rn (t v 1) ro t to rt wt 1, 2, 3,...,. 2. For vrtx v t v n wt A, ts v rn, s ty r rwn, ro t to rt, wt A.1, A.2, A.3,..., A. v. Exp 9. 5

Aort 7 (Prorr Trvrs). Lt T n orr tr wt root r. I T ontns ony r, t r s t prorr trvrs o T. Otrws, suppos tt T 1, T 2,..., T n r t sutrs t r ro t to rt n T. T prorr trvrs ns t r. It ontnus y trvrsn T 1 n prorr, tn T 2 n prorr, n so on, unt T n s trvrs n prorr. Not: Prorr trvrs vs t s orrn s unvrs rss syst. Exp 10. 6

Aort 8 (Inorr Trvrs). Lt T n orr tr wt root r. I T ontns ony r, t r s t norr trvrs o T. Otrws, suppos tt T 1, T 2,..., T n r t sutrs t r ro t to rt n T. T norr trvrs ns y trvrsn T 1 n norr, tn vstn r. It ontnus y trvrsn T 2 n norr, tn T 3 n norr, n so on, unt T n s trvrs n norr. Exp 11. 7

Aort 9 (Postorr Trvrs). Lt T n orr tr wt root r. I T ontns ony r, t r s t postorr trvrs o T. Otrws, suppos tt T 1, T 2,..., T n r t sutrs t r ro t to rt n T. T postorr trvrs ns y trvrsn T 1 n postorr, tn T 2 n postorr, n so on, unt T n s trvrs n postorr, n ns y vstn r. Exp 12. 8

An sr wy to n t trvrss. Drw urv roun t s o t tr, strtn t t root n ovn own t t rn, n nn t t root. To n t prorr trvrs, st vrtx t rst t ts urv psss t. To n t norr trvrs, st t rst t ts urv psss t n n ntrn vrtx t son t ts urv psss t. To n t postorr trvrs, st vrtx t st t ts urv psss t on t wy up to ts prnt. Exp 13. 9

11.4 n 11.5 - Mnu Spnnn Trs Dnton 7. Lt G sp rp. A spnnn tr o G s surp o G tt s tr ontnn vry vrtx o G. Tor 10. A sp rp s onnt n ony t s spnnn tr. Exp 14. Dnton 8. A nu spnnn tr n onnt wt rp s spnnn tr tt s t sst poss su o wts o ts s. 10