On the Power of BFS to Determine a Graphs Diameter

Size: px
Start display at page:

Download "On the Power of BFS to Determine a Graphs Diameter"

Transcription

1 On the Power of BFS to Determine Grphs Dimeter (Etene Astrt) Derek G Corneil 1, Feoor F Drgn 2, n Ekkehr Köhler 3 1 Dept of Compter Siene, Uniersity of Toronto, Toronto, Ontrio, Cn, g@storontoe 2 Dept of Compter Siene, Kent Stte Uniersity, Kent, Ohio, USA, rgn@skente 3 Fhereih Mthemtik, Tehnishe Uniersität Berlin, Berlin, Germny, ekoehler@mthtu-berlinde Astrt Reently onsierle effort hs een spent on showing tht eiogrphi Breth First Serh (BFS) n e se to etermine tight on on the imeter of grphs from rios restrite lsses In this pper, we show tht in some ses, the fll power of BFS is not reqire n tht other ritions of Breth First Serh (BFS) sffie The restrite grph lsses tht re menle to this pproh ll he smll onstnt pper on on the mimm size yle tht my pper s n ine sgrph We show tht on grphs tht he no ine yle of size greter thn k, BFS fins n estimte of the imeter tht is no worse thn im(g) k/2 2 1 Introtion Reently onsierle ttention hs een gien to the prolem of eeloping fst n simple lgorithms for rios lssil grph prolems The motition for sh lgorithms stems from or nee to sole these prolems on ery lrge inpt grphs, ths the lgorithms mst e not only fst, t lso esily implementle Determining the imeter of grph is fnmentl n seemingly qite time onsming opertion For ritrry grphs (with n erties n m eges), the rrent fstest lgorithm rns in O(nm) time whih is too slow to e prtil for ery lrge grphs This nie lgorithm emines eh erte in trn n performs Breth First Serh (BFS) strting t the prtilr erte Sh sweep strting t erte immeitely etermines e(), the eentriity of erte Rell tht the eentriity of erte, e() =m y V (, y), where (, y) enotes the istne etween n y; theimeter of G eqls the mimm eentriity of ny erte in V It is ler tht this lgorithm tlly omptes the entire istne mtri; lerly knowing the istne mtri immeitely yiels the imeter of the grph For ense grphs, the est reslt known is y Seiel [12], who showe tht the ll pirs shortest pth prolem (n hene the imeter prolem) n e sole S Rjsm (E): ATIN 2002, NCS 2286, pp , 2002 Springer-Verlg Berlin Heielerg 2002

2 210 Derek G Corneil, Feoor F Drgn, n Ekkehr Köhler in O(M(n)logn) timewherem(n) enotes the time ompleity for fst mtri mltiplition inoling smll integers only The rrent est mtri mltiplition lgorithm is e to Coppersmith n Winogr [2] n hs O(n 2376 )time on Unfortntely, fst mtri mltiplition lgorithms re fr from eing prtil n sffer from lrge hien onstnts in the rnning time on Note tht no effiient lgorithm for the imeter prolem in generl grphs, oiing the ompttion of the whole istne mtri, hs een esigne Ths, the qestion whether for grph the imeter n e ompte esier thn the whole istne mtri remins still open Clerly, performing BFS strting t erte of mimm eentriity esily proes the grph s imeter Ths one wy to pproimte the imeter of grph is to fin erte of high eentriity; this is the pproh tken in this pper This is not, howeer, the only pproh For emple, Aingworth et l [1] otin rtio 2/3 pproimtion to the imeter in time O(m nlogn+n 2 logn) Note tht rtio of 1/2 n esily e hiee y hoosing n ritrry erte (the eentriity of ny erte is t lest one hlf the imeter of the grph) n performing BFS strting t this erte It follows lso from reslts in [1,6] (see lso pper [13] whih sreys reent reslts relte to the ompttion of et n pproimte istnes in grphs) tht the imeter prolem in nweighte, nirete grphs n e sole in Õ(min{n3/2 m 1/2,n 7/3 }) time with n itie error of t most 2 withot mtri mltiplition Here, Õ(f) mens O(f polylog(n)) The motition ehin the work of Aingworth et l is to fin fst, esily implementle lgorithm (they oi sing mtri mltiplition), motition tht we shre Or pproh is to emine the nie lgorithm of hoosing erte, performing some ersion of BFS from this erte n then showing nontriil on on the eentriity of the lst erte isite in this serh In ft, this lgorithm is one of the lssil lgorithms in grph theory; if one restrits one s ttention to trees, then this lgorithm proes erte of mimm eentriity (see eg [9]) This pproh hs lrey reeie onsierle ttention (In the following we let enote the erte tht ppers lst in prtilr serh; the efinition of the rios serhes n fmilies of grphs will e presente in the net setion) For emple, Drgn et l [8] he shown tht if BFS is se for horl grphs, then e() im(g) 1wheresforinterl grphs e() =im(g) It is ler from the work of Corneil et l [4], tht y sing BFS on AT-free grphs, one hs e() im(g) 1 Drgn [7], gin sing BFS, hs shown tht e() im(g) 2 for HH-free grphs, e() im(g) 1 for HHD-free grphs n e() =im(g) for grphs tht re oth HHD-free n AT-free It is interesting to note tht Corneil et l [4] he looke t ole sweep BFSs (ie strt n BFS from erte tht is lst in preios ritrrily hosen BFS) on horl n AT-free grphs They he proie forien sgrph strtre on grphs where e() =im(g) 1 They lso presente oth horl n AT-free grphs where for no, isthe-sweep BFS lgorithm grntee to fin erte of mimm eentriity Frthermore, they showe

3 On the Power of BFS to Determine Grphs Dimeter 211 tht for ny, there is grph G where e() im(g), where is the erte isite lst in 2-sweep BFS This grph G, howeer, hs lrge ine yle whose size epens on These reslts motite nmer of interesting qestions: Is it n inherent property of BFS to en in erte of high eentriity for the rios restrite grph fmilies mentione oe? Wht hppens if we se other rints of BFS? Why o AT-free n horl grphs, two fmilies with ery isprte strtre, ehiit sh similr ehior with respet to the effiy of BFS to fin erties of high eentriity? Althogh BFS fils to fin erties of high eentriity for grphs in generl, ll known emples tht ehiit sh filre he lrge ine yles If we on the size of the lrgest ine yle, n we get on on the eentriity of the erte tht ppers lst in n BFS? If the preios qestion is nswere in the ffirmtie, is the fll power of BFS neee? Wht hppens if we jst se BFS? This pper resses these qestions In the net setion, we present the rios forms of BFS n efine the grph theoreti terminology se throghot the pper In Setion 3 we emine the ehior of the ifferent ersions of BFS on rios restrite grph fmilies We estlish some new ons n show, y emple, tht ll stte ons on e() re tight In Setion 4, we emine fmilies of grphs where the size of the lrgest ine yle is one n show tht BFS oes see in getting erties of high, with respet to k, eentriity 2 Nottion n Definitions First we formlize the notion of BFS n then isss rios ritions of it We tion the reer tht there is some onfsion in the litertre etween BFS n wht we ll, efine elow In efining the rios ersions of BFS, we re only onerne with ientifying the lst erte isite y the serh; strightforwr moifitions proe the list of erties in the orer tht they re isite y the serh It shol e note tht none of the orerings re niqe; inste, eh serh ientifies one of the possile en-erties Algorithm BFS: Breth First Serh Inpt: grph G(V,E) nerte Otpt: erte, the lst erte isite y BFS strting t Initilize qee Q to e {} n mrk s isite while Q o et e the first erte of Q n remoe it from Q Eh nisite neighor of is e to the en of Q n mrke s isite

4 212 Derek G Corneil, Feoor F Drgn, n Ekkehr Köhler Note tht the oe lgorithm n esily e moifie to otin the lyers of V with respet to In prtilr, for eh 0 i e(), the i-th lyer of V with respet to, enote i (), = { :(, ) =i} This motites the net lgorithm, Algorithm : st yer Inpt: grph G(V,E) nerte Otpt: erte, erte in the lst lyer of Rn BFS to get the lyering of V with respet to Choose to e n ritrry erte in the lst lyer Clerly ny erte retrne y BFS n lso e retrne y ; the onerse is not tre s shown y the grph in Figre 1 e Fig 1 No BFS strting t n retrn erte Now we moify this lgorithm to otin erte in the lst lyer tht hs minimm egree with respet to the erties in the preios lyer Algorithm +: st yer, Minimm Degree Inpt: grph G(V,E) nerte Otpt: erte, erte in the lst lyer of, tht hs minimm egree with respet to the erties in the preios lyer Rn BFS to get the lyering of V with respet to Choose to e n ritrry erte in the lst lyer tht hs minimm egree with respet to the erties in the preios lyer Finlly we introe eiogrphi Breth First Serh (BFS) This serh prigm ws isoere y Rose et l [11] n ws shown to yiel simple liner time lgorithm for the reognition of horl grphs In light of the gret el

5 On the Power of BFS to Determine Grphs Dimeter 213 of work rrently eing one on BFS, it is somewht srprising tht interest in BFS ly ormnt for qite while fter [11] ppere Algorithm BFS: eiogrphi Breth First Serh Inpt: grph G(V,E) nerte Otpt: erte, the lst erte isite y n BFS strting t Assign lel to eh erte in V for i = n ownto 1 o Pik n nmrke erte with the lrgest (with respet to leiogrphi orer) lel Mrk isite For eh nmrke neighor y of, i to the lel of y If erte e is remoe from the grph in Figre 1, we he grph where erte, nmely, n e isite lst y BFS from t y no BFS from We now trn to the efinitions of the rios grph fmilies introe in the preios setion A grph is horl if it hs no ine yle of size greter thn 3 An interl grph is the intersetion grph of interls of line ekkerkerker n Boln [10] efine n steroil triple to e triple of erties sh tht etween ny two there is pth tht ois the neighorhoo of the thir n showe tht grph is n interl grph iff it is oth horl n steroil triple-free (AT-free) A lw is the omplete iprtite grph K 1,3,hole is n ine yle of length greter thn 4, hose is 4-yle with tringle e to one of the eges of the C 4 n omino is pir of C 4 s shring n ege A grph is HH-free if it ontins no ine hoses or holes n is HHD-free if it ontins no ine hoses, holes or ominos Finlly, in orer to ptre the notion of smll ine yles, we efine grphtoek-horl if it hs no ine yles of size greter thn k Note tht horl grphs re preisely the 3-horl grphs n AT-free grphs re 5-horl We efine the isk of ris r entere t to e the set of erties of istne t most r to, ie, D r () ={ V :(, ) r} = r i=0 i() 3 Restrite Fmilies of Grphs We now see how the for serh lgorithms mentione in the preios setion ehe on the following fmilies of grphs: horl, AT-free, {AT,lw}-free, interl, n hole-free The reslts re smmrize in the following tle In this tle the referenes refer to the pper where the lower on ws estlishe; [*] inites tht the reslt is new A figre referene refers to the pproprite figre where it is shown tht the lower on is tight In eh of the figres the erte pir, forms imetrl pir, ie (, ) =im(g) Below eh figre BFS, BFS,, or + orering is gien tht hiees the orresponing ons; erte is lwys the strt-erte n the en-erte of the pproprite serh; ifferent BFS-lyers re seprte y

6 214 Derek G Corneil, Feoor F Drgn, n Ekkehr Köhler GRAPH CASS + BFS BFS D 2 D 2 D 1 D 1 horl grphs [3] [3] [*] [8] Fig 4 Fig 5 Fig 2 Fig6 D 2 D 1 D 2 D 1 AT-free grphs [*] [*] [*] [4] Fig 3 Fig 7 Fig 3 Fig 7 D 1 = D D 1 = D {AT,lw}-free grphs [*] [*] [*] [*] Fig 2 Fig 2 D 1 = D D 1 = D interl grphs [*] [*] [*] [8] Fig 2 Fig 2 D 2 D 2 D 2 D 2 hole-free grphs [*] [*] [*] [*] Fig 8 Fig 8 Fig 8 Fig 8 f g e f e g h Fig 2 BFS: Fig 3 BFS: ge f Fig 4 : gh ef e g e i f f i k h g h Fig 5 ik fegh +: Fig 6 gh ef i BFS: To illstrte the types of tehniqes tht re se to estlish lower ons in the tle, we now show tht e() im(g) 1 for horl grphs when BFS is se This reslt ssmes the reslt shown in [8] tht this lower on hols when BFS is se The jornl ersion of the pper will ontin proofs for ll new reslts mentione in the tle

7 On the Power of BFS to Determine Grphs Dimeter 215 i e f h g Fig 7 BFS: Fig 8 BFS: ghi fe First we omment on the BFS lgorithm In prtilr, we my regr BFS s hing proe nmering from n to 1 in eresing orer of the erties in V where erte is nmere n As erte is ple on the qee, it is gien the net ille nmer The lst erte isite,, is gien the nmer 1 Ths BFS my e seen to generte roote tree T with erte s the root Aertey is the fther in T of etly those neighors in G whih re inserte into the qee when y is remoe An orering σ= [ 1, 2,, n ] of the erte set of grph G generte y BFS will e lle BFS orering of G etσ(y) e the nmer ssigne to ertey in this BFS orering σ Denotelsoyf(y) the fther of erte y with respet to σ The following properties of BFS orering will e se in wht follows Sine ll lyers of V onsiere here re with respet to, we will freqently se nottion i inste of i () (P1) If y q (q>0) then f(y) q 1 n f(y)istheertefromn(y) q 1 with the lrgest nmer in σ (P2) If i, y j n i<j,thenσ() >σ(y) (P3) If, y j n σ() >σ(y), then either σ(f()) >σ(f(y)) or f() =f(y) (P4) If, y, z j, σ() >σ(y) >σ(z)nf()z E,thenf() =f(y) =f(z) (in prtilr, f()y E) In wht follows, y P (, y) we will enote pth onneting erties n y Proof of the following lemm is omitte emm 1 If erties n of isk D r () of horl grph re onnete y pth P (, ) otsie of D r () (ie, P (, ) D r () ={, }), then n mst e jent et σ e BFS orering of horl grph G strte t erte et lso P (, ) =( = 1, 2,, k 1, k = ) e shortest pth of G onneting erties n WesythtP (, ) isrightmost shortest pth if the sm σ( 1 )+ σ( 2 )++ σ( k 1 )+ σ( k ) is the lrgest mong ll shortest pths onneting n

8 216 Derek G Corneil, Feoor F Drgn, n Ekkehr Köhler emm 2 et n y e two ritrry erties of horl grph G Eery rightmost shortest pth P (, y) etween n y n e eompose (see Figre 9) into three shortest spths P =( = 1, 2,, l ) (lle the ertil spth), P y =(y = y 1,y 2,,y k ) (lle the ertil y spth) n P ( l,y k ) (lle the horizontl spth) sh tht 1 P ( l,y k ) j for some j {0, 1,,e()}, n( l,y k ) 2 (ie, l n y k either oinie or re jent or he ommon neighor in G[ j ] P ( l,y k )); 2 l i j+i for 0 i l 1; 3 y k i j+i for 0 i k 1 y = y 1 y 2 y = y 1 y 2 = 1 y 2 y = y 1 = 1 2 y k-1 or = 1 2 l-1 y k-1 or 2 l-1 y k-1 j j-1 l-1 l y k j j-1 l y k y k = l j j Fig 9 The strtre of rightmost shortest pth in horl grphs Proof First we proe tht P (, y) i 3 for ny i =1, 2,,e(s) Assme tht the intersetion of P (, y) nlyer q, for some ine q, ontinstlest for erties et,,, e the first for erties of P (, y) q on the wy from to y We lim tht,, E If / E then, y emm 1, spth P (, ) of the pth P (, y) is ompletely ontine in isk D q (s) In prtilr, the neighor of on P (, ) elongs to D q 1 (s) Using the sme rgments, we onle tht E or spth P (, ) of the pth P (, y) is ontine in D q (s) If E then neighor of in q 1 mst e jent with (y emm 1) Sine σ() >σ(), we get ontrition to P (, y) is rightmost pth (we n reple erte of P (, y) with n get shortest pth etween n y with lrger sm) If / E then the neighor of on P (, ) is lso ontine in D q 1 (s) By emm 1, erties n mst e jent, t this is impossile sine P (, y) is shortest pth

9 On the Power of BFS to Determine Grphs Dimeter 217 Ths, erties n he to e jent If erties n re not jent, then the neighor of on P (, ) elongs to D q 1 (s) n, y emm 1, it mst e jent to ny neighor of in q 1 Sineσ() >σ() hols, gin ontrition to P (, y) is rightmost pth rises Conseqently, erties n re jent, too Completely in the sme wy one n show tht n he to e jent Note lso tht the jeny of with n with is proe withot sing the eistene of the erte We he now,, E n the ine pth (,,, ) is rightmost shortest pth (s spth of the rightmost shortest pth P (, y)) Consier neighors n in q 1 of n, respetiely Sine σ( )+ σ( ) > σ()+ σ() nthepth(,,, ) is rightmost n shortest, erties n n neither oinie nor e jent Bt then we get pth (,,,,, ) onneting two non-jent erties of D q 1 (s) otsie of the isk A ontrition to emm 1 otine shows tht P (, y) i 3holsforny i =1, 2,,e(s) Now let P (, y) q =3nlet,, e the erties of P (, y) q on the wy from to y It follows from the isssion oe tht, E n oth the neighor of on spth P (, ) ntheneighor of on spth P (, y) (if they eist) elong to the lyer q+1 If for emple q 1, then, y emm 1, mst e jent to ny neighor of in q 1 Agin, sine σ() >σ(), ontrition to P (, y) is rightmost pth rises Frthermore, if for some ine q, P (, y) q = {, }, n P (, y) = (,,,,,,,y), then oth n elong to the lyer q+1 Smmrizing ll these we onle tht, while moing from to y long the pth P (, y), we n he only one horizontl ege or only one pir of onsetie horizontl eges Here y horizontl ege we men n ege with oth en-erties from the sme lyer All other erties of the pth P (, y) elong to higher lyers Hing the strtre of rightmost shortest pth estlishe, we n now proe the min reslt for horl grphs In presenting rightmost shortest pth, we se / s to ifferentite the pproprite spths Theorem 1 et e the erte of horl grph G lst isite y BFS Then e() im(g) 1 Proof et, y e pir of erties sh tht (, y) =im(g), n onsier two rightmost shortest pths P (, ) =( = 1, 2,, l 1 / l,, h/ h 1,, 2, 1 = ) n P (y, ) =(y = y 1,y 2,,y k 1 /y k,, g / g 1,, 2, 1 = ) onneting erte with n y, respetiely (see Figre 10) By emm 2, eh of these pths onsists of two (perhps of length 0) ertil spths n one horizontl pth of length not greter thn 2 Assme, withot loss of generlity, tht h g n let l,, h qsine e() we lso he l h n k g

10 218 Derek G Corneil, Feoor F Drgn, n Ekkehr Köhler By emm 1, erties h, h in q either oinie or re jent Note tht, if ( l, h ) 1, then (, y) (, l)+1+( h,y) (, h )+1+( h,y)= (, y)+1 e() + 1 Tht is, e() (, y) 1=im(G) 1, n we re one Hene, we my ssme tht ( l, h ) 2 n, therefore, l h e() y q q-1 l l h " h " h+1 " g y k Fig 10 Rightmost shortest pths P (, ) np (y, ) We istingish etween two ses The first one is simple Only for the seon se we will nee to se the speil properties of BFS orering Cse g>h In this se there eists erte h+1 in the intersetion P (y, ) q 1 Consier lso neighor l of l in q 1 Sine erties l n h+1 re onnete y pth ( l, l,, h, h, h+1 ) otsie of the isk D q 1(), y emm 1, they re jent if they o not oinie Hene, ( l, h+1 ) 2 n, therefore, (, y) (, l )+2+( h+1,y) (, h )+2+( h+1,y)=(, y)+1 e()+1, ie, gin e() (, y) 1=im(G) 1 Cse g = h From the isssion oe (now, sine g = h we he symmetry), we my ssme tht (y k, h ) 2ny k h Consier neighors l n y k in q 1 of erties l n y k, respetiely (see Figre 11()) By emm 1, they re jent if o not oinie, ie, ( l,y k ) 3 Now, if t lest one of the eqlities ( l, h )=2,(y k, h ) = 2 hols, then we re one Inee, if for emple ( l, h ) = 2, then (, ) = (, l)+2+( h,) n, therefore, (, y) (, l )+( l,y k )+(y k,y) (, l )+3+( h,)=(, )+1 e()+1

11 On the Power of BFS to Determine Grphs Dimeter 219 e() y y l h " h y k q k-1 k k " k-1 " k y k l y k q-1 g f () () Fig 11 () Horizontl spths of P (, ) np (y, ) reinthesmelyer, () Pths P (, ) np (y, ) he similr shpe n the sme length 2k 1 So, we my ssme tht l h,y k h E Moreoer,sine(y k, h ) 2, erties h n h nnot oinie, ie, they re jent If l<hor k<h or ( l,y k ) < 3, gin we will get (, y) e() + 1 y ompring istnes (, y) =h + k 1, (, ) =h + l 1with(, y) l 1+( l,y k )+k 1 l+1+k Ths, we rrie t sittion when l = k = h, l h,y k h, h h E, n ( l,y k )=3,(, ) =(, y) =2k 1 (see Figre 11()) We my lso ssme tht (, y) =2k + 1, sine otherwise, (, y) 2k =(, y) +1 e() +1 n we re one We show tht this finl onfigrtion (with (, y) =2k +1) is impossile ese of the properties of BFS orerings Assme, withot loss of generlity, tht σ(y k ) >σ( k ) n onsier the fthers f = f(y k ), g = f( k )ofy k n k, respetiely Sine ( k,y k )=3,we he f g n f k,gy k / E By emm 1 n property (P3) of BFS orering, erties f n g re jent n σ(f) >σ(g) Chorl grphs nnot ontin n ine yle of length greter thn 3 Therefore, in the yle forme y g, k, k, k,y k,f,tlesthorsg k n f k mst e present Sine for the fther f( k )of k we he σ(f( k )) σ(f) >σ(g), ineqlity σ( k ) >σ( k) mst hol (here we se properties (P1) n (P3) of BFS orerings) We will nee the ineqlity σ( k ) >σ( k) lter to get or finl ontrition Now onsier erties k 1 n k 1 We lim tht σ( k 1 ) <σ( k 1) Assme tht this is not the se, n let j (j {1, 2,,k 2}) ethelrgest ine sh tht σ( j ) <σ( j) (rell tht σ( 1 )=σ() =1<σ() =σ( 1)) Then σ( j+1 ) >σ( j+1) hols, n sine j k 2 n (, ) =2k 1, we otin ( j, j ) 5 (ese of 2k 1=(, ) (, j )+( j, j)+( j,)=

12 220 Derek G Corneil, Feoor F Drgn, n Ekkehr Köhler 2(j 1)+( j, j) 2(k 3)+( j, j)=2k 6+( j, j)) Consier the fther t = f( j )of j From the istne reqirement n properties of BFS orerings we onle tht t j+1, t j+1 n σ(t) >σ( j+1 ) >σ( j+1) Moreoer, erte t hs to e jent to j+1 (y emm 1), t nnot e jent to j+2 (sine σ(t) >σ( j+1 )nthepthp(, ) is rightmost) Consier now the fther z = f(t) oftheertet Itisjentto j+2, y emm 1, n hs to e jent to j+1, to oi n ine yle (z,t, j+1, j+2,z)oflength 4 Applying property (P4) to σ(t) >σ( j+1 ) >σ( j+1) nz j+1 E, weget z j+1 E whih is impossile sine ( j, j ) 5 This ontrition shows tht, inee, the ineqlity σ( k 1 ) <σ( k 1) msthol So, we he σ( k 1 ) <σ( k 1) nσ( k ) >σ( k) We repet or rgments from the preios prgrph onsiering ine k 1 inste of j (Theonly ifferene is tht now we o not he the erte j+2 = k+1 on the pth P (, )) Agin, onsier the fther t = f( k 1 )of k 1 Clerly, t k Sine ( k,y k )=3,ertet is not jent to y k Frthermoret oes not oinie with k sine emm 1 wol reqire k k E Hene, t k n, y property (P3), σ(t) >σ( k ) >σ( k) Verte t mst e jent to k, y emm 1, t nnot e jent to k,sinethepthp(, ) isrightmostnσ(t) >σ( k) To oi n ine yle of length 4, erte t is not jent to k s well q+1 q q-1 t k-1 k z " k-1 k " y k k f Fig 12 Illstrtion to the proof of Theorem 1 Consier lso the fther z = f(t) oftheertet (see Figre 12) If zy k E then (, y) (y, y k )+1+(z, k 1 )+( k 1,) k k 2=2k, n ontrition to the ssmption (, y) =2k+1rises Therefore, z n y k re not jent n hene z f (rell tht f is the fther of y k n f k E, f k / E ) By emm 1, zf E Sineσ(t) >σ( k )nf k E, y properties (P3) n (P1), we get σ(z) σ(f( k )) σ(f), ie σ(z) >σ(f) Conseqently, σ(t) >σ(y k ) Now, erte z nnot e jent to k, sine this wol pply the jeny of z with y k,too(yσ(t) >σ(y k ) >σ( k ) n property (P4)) Bt then, in the yle (z,t, k, k, k,f,z) only hors z k, z k, f k, ft re possile, whih re not enogh to oi n ine yle of length greter thn 3 in G A ontrition with the horlity of G ompletes the proof of the theorem

13 4 k-horl Grphs On the Power of BFS to Determine Grphs Dimeter 221 As mentione in the introtion, the emples tht show tht BFS fils to fin erties of high eentriity ll he lrge ine yles Frthermore, oth horl n AT-free grphs he onstnt ons on the mimm size of ine yles Ths one wol hope tht for k-horl grphs where k is onstnt, some form of BFS wol see in fining erte whose eentriity is within some fntion of k of the imeter In ft, we show tht is sffiiently strong to ensre this First, lemm tht is se in the proof emm 3 If erties n of isk D r () of k-horl grph re onnete y pth P (, ) otsie of D r () (ie, P (, ) D r () ={, }), then(, ) k/2 Proof Assme (, ) > k/2, nletp e n ine spth of P (, ) onneting erties n Consier shortest pths P (, ) n P (, ) (onneting with n with, respetiely) Using erties of these pths we n onstrt n ine pth Q(, ) with the property tht ll its erties eept n re ontine in D r 1 () By or onstrtion, the yle C otine y the ontention of P n Q(, ) is ine Sine (, ) > k/2, oth pths P n Q(, ) mst e of length greter thn k/2 Therefore, the yle C hs the length t lest k/2 +1+ k/2 +1>k, tht is impossile Theorem 2 et G e k-horl grph Consier, strting in some erte of G n let e erte of the lst BFS lyer Then e() im(g) k/2 2 Proof et, y e pir of erties sh tht (, y) =im(g), n onsier two shortest pths P (, ) np (y, ) onneting erte with n y, respetiely et lso q e the minimm ine sh tht q (P (, ) P (y, )) Consier erte z q (P (, ) P (y, )), n ssme, withot loss of generlity, tht z elongs to P (y, ), ie, we he (, z)+(z,y)=(, y) Assme, for now, tht z Consier lso shortest pth Q(, ) etween n, erties q Q(, ), q 1 Q(, ), n neighor w of z in q 1 Sine erties n w elong to D q 1 () n n e onnete otsie of D q 1 (), y emm 3, (,w) k/2 mst hol We he lso (, ) (, z) ese e() Therefore, (, y) (, )+1+(,w)+1+ (z,y) (, z)+ k/2 +2+(z,y)=(, y)+ k/2 +2 e()+ k/2 +2, ie, e() im(g) k/2 2 Finlly, if z =, then similr rgment s oe estlishes tighter on on e() This reslt n e strengthene frther for 4-horl grphs n 5-horl grphs We n proe the following

14 222 Derek G Corneil, Feoor F Drgn, n Ekkehr Köhler Theorem 3 et G e 5-horl grph Consier, strting in some erte of G n let e erte of the lst BFS lyer Then e() im(g) 2 Agin this on on e() is tight Figre 8 represents 4-horl grph G for whih BFS eists sh tht the erte, lst isite y this BFS, hs eentriity eql to im(g) 2 Emples of k-horl grphs with lrger ifferene etween imeter n the eentriity of the erte lst isite in some rint of BFS re gien in the following two figres Figre 13 shows 6-horl grph For this grph G, there is n, strting in erte, tht ens in erte, where e() =im(g) 3 This shows tht the on of im(g) 2 whih hols for 4- n 5-horlgrphs (for n +) n not hol for 6-horl grphs s well In Figre 14 eh of the she eges stns for pth of length k Ths this grph G is 4k-horl The imeter of G is lso 4k, the eentriity of, the erte lst isite y some BFS strte in, is e() =2k + 1 Hene the ifferene etween the imeter n the eentriity e() is2k 1 This shows tht, t lest for the 4k-horl grphs, the on on e() (for)gienin Theorem 2 is lose to the est possile It is within 3 of the on tht ol e hiee y BFS l e n g m f i Fig 13 ik fh lengm k h : Fig 14 BFS: Aknowlegements: DGC n EK wish to thnk the Ntrl Siene n Engineering Reserh Conil of Cn for their finnil spport Referenes 1 D Aingworth, C Chekri, P Inyk n R Motwni, Fst estimtion of imeter n shortest pths (withot mtri mltiplition), SIAM J on Compting, 28 (1999),

15 On the Power of BFS to Determine Grphs Dimeter D Coppersmith n S Winogr, Mtri mltiplition i rithmeti progression, Proeeings of the 19th ACM Symposim on Theory of Compting, 1987, VD Chepoi n FF Drgn, iner-time lgorithm for fining entrl erte of horl grph, Algorithms - ESA 94 Seon Annl Eropen Symposim, Utreht, The Netherlns, Septemer 1994, Springer, NCS 855 (Jn n eewen, e), (1994), DG Corneil, FF Drgn, M Hi n C Pl, Dimeter etermintion on restrite grph fmilies, Disrete Appl Mth, 113 (2001), DG Corneil, S Olri n Stewrt, iner time lgorithms for ominting pirs in steroil triple free grphs, SIAM J on Compting, 28 (1999), D Dor, S Hlperin, n U Zwik, All pirs lmost shortest pths, Proeeings of the 37th Annl IEEE Symposim on Fontions of Compter Siene, 1996, FF Drgn, Almost imeter of hose-hole-free grph in liner time i ebfs, Disrete Appl Mth, 95 (1999), FF Drgn, F Nioli n A Brnstät, ebfs orerings n powers of grphs, Pro of the WG 96, NCS 1197, (1997), G Hnler, Minim lotion of fility in n nirete tree grph, Trnsporttion Sienes, 7 (1973), CG ekkerkerker n JC Boln, Representtion of finite grph y set of interls on the rel line, Fnment Mthemtie, 51 (1962), D Rose, RE Trjn n G eker, Algorithmi spets on erte elimintion on grphs, SIAM J on Compting, 5 (1976), R Seiel, On the ll-pir-shortest-pth prolem, Proeeings of the 24th ACM Symposim on Theory of Compting, 1992, Uri Zwik, Et n Approimte Distnes in Grphs - A srey, Algorithms - ESA 01 9th Annl Eropen Symposim, Arhs, Denmrk, Agst 2001, Springer, NCS 2161, (2001), 33 48

Connectivity in Graphs. CS311H: Discrete Mathematics. Graph Theory II. Example. Paths. Connectedness. Example

Connectivity in Graphs. CS311H: Discrete Mathematics. Graph Theory II. Example. Paths. Connectedness. Example Connetiit in Grphs CSH: Disrete Mthemtis Grph Theor II Instrtor: Işıl Dillig Tpil qestion: Is it possile to get from some noe to nother noe? Emple: Trin netork if there is pth from to, possile to tke trin

More information

Counting Paths Between Vertices. Isomorphism of Graphs. Isomorphism of Graphs. Isomorphism of Graphs. Isomorphism of Graphs. Isomorphism of Graphs

Counting Paths Between Vertices. Isomorphism of Graphs. Isomorphism of Graphs. Isomorphism of Graphs. Isomorphism of Graphs. Isomorphism of Graphs Isomorphism of Grphs Definition The simple grphs G 1 = (V 1, E 1 ) n G = (V, E ) re isomorphi if there is ijetion (n oneto-one n onto funtion) f from V 1 to V with the property tht n re jent in G 1 if

More information

Solutions for HW9. Bipartite: put the red vertices in V 1 and the black in V 2. Not bipartite!

Solutions for HW9. Bipartite: put the red vertices in V 1 and the black in V 2. Not bipartite! Solutions for HW9 Exerise 28. () Drw C 6, W 6 K 6, n K 5,3. C 6 : W 6 : K 6 : K 5,3 : () Whih of the following re iprtite? Justify your nswer. Biprtite: put the re verties in V 1 n the lk in V 2. Biprtite:

More information

CS 491G Combinatorial Optimization Lecture Notes

CS 491G Combinatorial Optimization Lecture Notes CS 491G Comintoril Optimiztion Leture Notes Dvi Owen July 30, August 1 1 Mthings Figure 1: two possile mthings in simple grph. Definition 1 Given grph G = V, E, mthing is olletion of eges M suh tht e i,

More information

A FRACTIONAL ANALOGUE OF BROOKS THEOREM

A FRACTIONAL ANALOGUE OF BROOKS THEOREM A FRACTIONAL ANALOGUE OF BROOKS THEOREM ANDREW D. KING, LINYUAN LU, AND XING PENG Astrt. Let (G) e the mimm egree of grph G. Brooks theorem sttes tht the onl onnete grphs ith hromti nmer χ(g) = (G) + 1

More information

arxiv: v1 [cs.dm] 6 Jun 2017

arxiv: v1 [cs.dm] 6 Jun 2017 An Upper Bon of 7 n for the Minimm Size 6 2EC on Ci 3-Ege Connete rphs Philippe Leglt rxi:1706.016091 [s.dm] 6 Jn 2017 Shool of Eletril Engineering n Compter Siene (EECS), Uniersity of Ottw Ottw, Ontrio

More information

Necessary and sucient conditions for some two. Abstract. Further we show that the necessary conditions for the existence of an OD(44 s 1 s 2 )

Necessary and sucient conditions for some two. Abstract. Further we show that the necessary conditions for the existence of an OD(44 s 1 s 2 ) Neessry n suient onitions for some two vrile orthogonl esigns in orer 44 C. Koukouvinos, M. Mitrouli y, n Jennifer Seerry z Deite to Professor Anne Penfol Street Astrt We give new lgorithm whih llows us

More information

I 3 2 = I I 4 = 2A

I 3 2 = I I 4 = 2A ECE 210 Eletril Ciruit Anlysis University of llinois t Chigo 2.13 We re ske to use KCL to fin urrents 1 4. The key point in pplying KCL in this prolem is to strt with noe where only one of the urrents

More information

Mid-Term Examination - Spring 2014 Mathematical Programming with Applications to Economics Total Score: 45; Time: 3 hours

Mid-Term Examination - Spring 2014 Mathematical Programming with Applications to Economics Total Score: 45; Time: 3 hours Mi-Term Exmintion - Spring 0 Mthemtil Progrmming with Applitions to Eonomis Totl Sore: 5; Time: hours. Let G = (N, E) e irete grph. Define the inegree of vertex i N s the numer of eges tht re oming into

More information

Global alignment. Genome Rearrangements Finding preserved genes. Lecture 18

Global alignment. Genome Rearrangements Finding preserved genes. Lecture 18 Computt onl Biology Leture 18 Genome Rerrngements Finding preserved genes We hve seen before how to rerrnge genome to obtin nother one bsed on: Reversls Knowledge of preserved bloks (or genes) Now we re

More information

Graph Theory. Simple Graph G = (V, E). V={a,b,c,d,e,f,g,h,k} E={(a,b),(a,g),( a,h),(a,k),(b,c),(b,k),...,(h,k)}

Graph Theory. Simple Graph G = (V, E). V={a,b,c,d,e,f,g,h,k} E={(a,b),(a,g),( a,h),(a,k),(b,c),(b,k),...,(h,k)} Grph Theory Simple Grph G = (V, E). V ={verties}, E={eges}. h k g f e V={,,,,e,f,g,h,k} E={(,),(,g),(,h),(,k),(,),(,k),...,(h,k)} E =16. 1 Grph or Multi-Grph We llow loops n multiple eges. G = (V, E.ψ)

More information

CS 2204 DIGITAL LOGIC & STATE MACHINE DESIGN SPRING 2014

CS 2204 DIGITAL LOGIC & STATE MACHINE DESIGN SPRING 2014 S 224 DIGITAL LOGI & STATE MAHINE DESIGN SPRING 214 DUE : Mrh 27, 214 HOMEWORK III READ : Relte portions of hpters VII n VIII ASSIGNMENT : There re three questions. Solve ll homework n exm prolems s shown

More information

Lecture 4: Graph Theory and the Four-Color Theorem

Lecture 4: Graph Theory and the Four-Color Theorem CCS Disrete II Professor: Pri Brtlett Leture 4: Grph Theory n the Four-Color Theorem Week 4 UCSB 2015 Through the rest of this lss, we re going to refer frequently to things lle grphs! If you hen t seen

More information

CIT 596 Theory of Computation 1. Graphs and Digraphs

CIT 596 Theory of Computation 1. Graphs and Digraphs CIT 596 Theory of Computtion 1 A grph G = (V (G), E(G)) onsists of two finite sets: V (G), the vertex set of the grph, often enote y just V, whih is nonempty set of elements lle verties, n E(G), the ege

More information

Deflection of Beams by Means of Static Green Functions

Deflection of Beams by Means of Static Green Functions Uniersl Jornl o ehnil Engineering : 9- DOI:.89/jme.. http://.hrp.org Deletion o ems y ens o Stti Green ntions. A-Hill Deprtment o ehnil Engineering Zrq Uniersity Jorn Copyright y thors ll rights resere.

More information

Lecture 6: Coding theory

Lecture 6: Coding theory Leture 6: Coing theory Biology 429 Crl Bergstrom Ferury 4, 2008 Soures: This leture loosely follows Cover n Thoms Chpter 5 n Yeung Chpter 3. As usul, some of the text n equtions re tken iretly from those

More information

PAIR OF LINEAR EQUATIONS IN TWO VARIABLES

PAIR OF LINEAR EQUATIONS IN TWO VARIABLES PAIR OF LINEAR EQUATIONS IN TWO VARIABLES. Two liner equtions in the sme two vriles re lled pir of liner equtions in two vriles. The most generl form of pir of liner equtions is x + y + 0 x + y + 0 where,,,,,,

More information

Numbers and indices. 1.1 Fractions. GCSE C Example 1. Handy hint. Key point

Numbers and indices. 1.1 Fractions. GCSE C Example 1. Handy hint. Key point GCSE C Emple 7 Work out 9 Give your nswer in its simplest form Numers n inies Reiprote mens invert or turn upsie own The reiprol of is 9 9 Mke sure you only invert the frtion you re iviing y 7 You multiply

More information

On Gallai s and Hajós Conjectures for graphs with treewidth at most 3

On Gallai s and Hajós Conjectures for graphs with treewidth at most 3 On Glli s nd Hjós Conjetres for grphs with treewidth t most 3 rxi:1706.043341 [mth.co] 14 Jn 2017 F. Botler 1 M. Sminelli 2 R. S. Coelho 3 O. Lee 2 1 Fltd de Cienis Físis Mtemtis Uniersidd de Chile 2 Institto

More information

On a Class of Planar Graphs with Straight-Line Grid Drawings on Linear Area

On a Class of Planar Graphs with Straight-Line Grid Drawings on Linear Area Journl of Grph Algorithms n Applitions http://jg.info/ vol. 13, no. 2, pp. 153 177 (2009) On Clss of Plnr Grphs with Stright-Line Gri Drwings on Liner Are M. Rezul Krim 1,2 M. Siur Rhmn 1 1 Deprtment of

More information

Exercise sheet 6: Solutions

Exercise sheet 6: Solutions Eerise sheet 6: Solutions Cvet emptor: These re merel etended hints, rther thn omplete solutions. 1. If grph G hs hromti numer k > 1, prove tht its verte set n e prtitioned into two nonempt sets V 1 nd

More information

A Lower Bound for the Length of a Partial Transversal in a Latin Square, Revised Version

A Lower Bound for the Length of a Partial Transversal in a Latin Square, Revised Version A Lower Bound for the Length of Prtil Trnsversl in Ltin Squre, Revised Version Pooy Htmi nd Peter W. Shor Deprtment of Mthemtil Sienes, Shrif University of Tehnology, P.O.Bo 11365-9415, Tehrn, Irn Deprtment

More information

22: Union Find. CS 473u - Algorithms - Spring April 14, We want to maintain a collection of sets, under the operations of:

22: Union Find. CS 473u - Algorithms - Spring April 14, We want to maintain a collection of sets, under the operations of: 22: Union Fin CS 473u - Algorithms - Spring 2005 April 14, 2005 1 Union-Fin We wnt to mintin olletion of sets, uner the opertions of: 1. MkeSet(x) - rete set tht ontins the single element x. 2. Fin(x)

More information

Monochromatic Plane Matchings in Bicolored Point Set

Monochromatic Plane Matchings in Bicolored Point Set CCCG 2017, Ottw, Ontrio, July 26 28, 2017 Monohromti Plne Mthings in Biolore Point Set A. Krim Au-Affsh Sujoy Bhore Pz Crmi Astrt Motivte y networks interply, we stuy the prolem of omputing monohromti

More information

EXTENSION OF THE GCD STAR OF DAVID THEOREM TO MORE THAN TWO GCDS CALVIN LONG AND EDWARD KORNTVED

EXTENSION OF THE GCD STAR OF DAVID THEOREM TO MORE THAN TWO GCDS CALVIN LONG AND EDWARD KORNTVED EXTENSION OF THE GCD STAR OF DAVID THEOREM TO MORE THAN TWO GCDS CALVIN LONG AND EDWARD KORNTVED Astrt. The GCD Str of Dvi Theorem n the numerous ppers relte to it hve lrgel een evote to shoing the equlit

More information

Pattern Recognition 2015 Neural Networks (2)

Pattern Recognition 2015 Neural Networks (2) Pttern Reognition 2015 Nerl Networks (2) Ad Feelders Universiteit Utreht Ad Feelders ( Universiteit Utreht ) Pttern Reognition 1 / 37 Error k-propgtion How to ompte the weights in nerl network? Evlte derivtives

More information

p-adic Egyptian Fractions

p-adic Egyptian Fractions p-adic Egyptin Frctions Contents 1 Introduction 1 2 Trditionl Egyptin Frctions nd Greedy Algorithm 2 3 Set-up 3 4 p-greedy Algorithm 5 5 p-egyptin Trditionl 10 6 Conclusion 1 Introduction An Egyptin frction

More information

arxiv: v2 [math.co] 31 Oct 2016

arxiv: v2 [math.co] 31 Oct 2016 On exlue minors of onnetivity 2 for the lss of frme mtrois rxiv:1502.06896v2 [mth.co] 31 Ot 2016 Mtt DeVos Dryl Funk Irene Pivotto Astrt We investigte the set of exlue minors of onnetivity 2 for the lss

More information

APPENDIX. Precalculus Review D.1. Real Numbers and the Real Number Line

APPENDIX. Precalculus Review D.1. Real Numbers and the Real Number Line APPENDIX D Preclculus Review APPENDIX D.1 Rel Numers n the Rel Numer Line Rel Numers n the Rel Numer Line Orer n Inequlities Asolute Vlue n Distnce Rel Numers n the Rel Numer Line Rel numers cn e represente

More information

Section 2.3. Matrix Inverses

Section 2.3. Matrix Inverses Mtri lger Mtri nverses Setion.. Mtri nverses hree si opertions on mtries, ition, multiplition, n sutrtion, re nlogues for mtries of the sme opertions for numers. n this setion we introue the mtri nlogue

More information

Maximum size of a minimum watching system and the graphs achieving the bound

Maximum size of a minimum watching system and the graphs achieving the bound Mximum size of minimum wthing system n the grphs hieving the oun Tille mximum un système e ontrôle minimum et les grphes tteignnt l orne Dvi Auger Irène Chron Olivier Hury Antoine Lostein 00D0 Mrs 00 Déprtement

More information

First Midterm Examination

First Midterm Examination 24-25 Fll Semester First Midterm Exmintion ) Give the stte digrm of DFA tht recognizes the lnguge A over lphet Σ = {, } where A = {w w contins or } 2) The following DFA recognizes the lnguge B over lphet

More information

Intermediate Math Circles Wednesday 17 October 2012 Geometry II: Side Lengths

Intermediate Math Circles Wednesday 17 October 2012 Geometry II: Side Lengths Intermedite Mth Cirles Wednesdy 17 Otoer 01 Geometry II: Side Lengths Lst week we disussed vrious ngle properties. As we progressed through the evening, we proved mny results. This week, we will look t

More information

A Study on the Properties of Rational Triangles

A Study on the Properties of Rational Triangles Interntionl Journl of Mthemtis Reserh. ISSN 0976-5840 Volume 6, Numer (04), pp. 8-9 Interntionl Reserh Pulition House http://www.irphouse.om Study on the Properties of Rtionl Tringles M. Q. lm, M.R. Hssn

More information

6.5 Improper integrals

6.5 Improper integrals Eerpt from "Clulus" 3 AoPS In. www.rtofprolemsolving.om 6.5. IMPROPER INTEGRALS 6.5 Improper integrls As we ve seen, we use the definite integrl R f to ompute the re of the region under the grph of y =

More information

CS261: A Second Course in Algorithms Lecture #5: Minimum-Cost Bipartite Matching

CS261: A Second Course in Algorithms Lecture #5: Minimum-Cost Bipartite Matching CS261: A Seon Course in Algorithms Leture #5: Minimum-Cost Biprtite Mthing Tim Roughgren Jnury 19, 2016 1 Preliminries Figure 1: Exmple of iprtite grph. The eges {, } n {, } onstitute mthing. Lst leture

More information

Probability. b a b. a b 32.

Probability. b a b. a b 32. Proility If n event n hppen in '' wys nd fil in '' wys, nd eh of these wys is eqully likely, then proility or the hne, or its hppening is, nd tht of its filing is eg, If in lottery there re prizes nd lnks,

More information

When e = 0 we obtain the case of a circle.

When e = 0 we obtain the case of a circle. 3.4 Conic sections Circles belong to specil clss of cures clle conic sections. Other such cures re the ellipse, prbol, n hyperbol. We will briefly escribe the stnr conics. These re chosen to he simple

More information

Obstructions to chordal circular-arc graphs of small independence number

Obstructions to chordal circular-arc graphs of small independence number Ostrutions to horl irulr-r grphs of smll inepenene numer Mthew Frnis,1 Pvol Hell,2 Jurj Stho,3 Institute of Mth. Sienes, IV Cross Ro, Trmni, Chenni 600 113, Ini Shool of Comp. Siene, Simon Frser University,

More information

for all x in [a,b], then the area of the region bounded by the graphs of f and g and the vertical lines x = a and x = b is b [ ( ) ( )] A= f x g x dx

for all x in [a,b], then the area of the region bounded by the graphs of f and g and the vertical lines x = a and x = b is b [ ( ) ( )] A= f x g x dx Applitions of Integrtion Are of Region Between Two Curves Ojetive: Fin the re of region etween two urves using integrtion. Fin the re of region etween interseting urves using integrtion. Desrie integrtion

More information

2.4 Theoretical Foundations

2.4 Theoretical Foundations 2 Progrmming Lnguge Syntx 2.4 Theoretil Fountions As note in the min text, snners n prsers re se on the finite utomt n pushown utomt tht form the ottom two levels of the Chomsky lnguge hierrhy. At eh level

More information

18.06 Problem Set 4 Due Wednesday, Oct. 11, 2006 at 4:00 p.m. in 2-106

18.06 Problem Set 4 Due Wednesday, Oct. 11, 2006 at 4:00 p.m. in 2-106 8. Problem Set Due Wenesy, Ot., t : p.m. in - Problem Mony / Consier the eight vetors 5, 5, 5,..., () List ll of the one-element, linerly epenent sets forme from these. (b) Wht re the two-element, linerly

More information

Lecture 2: Cayley Graphs

Lecture 2: Cayley Graphs Mth 137B Professor: Pri Brtlett Leture 2: Cyley Grphs Week 3 UCSB 2014 (Relevnt soure mteril: Setion VIII.1 of Bollos s Moern Grph Theory; 3.7 of Gosil n Royle s Algeri Grph Theory; vrious ppers I ve re

More information

Arrow s Impossibility Theorem

Arrow s Impossibility Theorem Rep Voting Prdoxes Properties Arrow s Theorem Arrow s Impossiility Theorem Leture 12 Arrow s Impossiility Theorem Leture 12, Slide 1 Rep Voting Prdoxes Properties Arrow s Theorem Leture Overview 1 Rep

More information

Section 1.3 Triangles

Section 1.3 Triangles Se 1.3 Tringles 21 Setion 1.3 Tringles LELING TRINGLE The line segments tht form tringle re lled the sides of the tringle. Eh pir of sides forms n ngle, lled n interior ngle, nd eh tringle hs three interior

More information

MCH T 111 Handout Triangle Review Page 1 of 3

MCH T 111 Handout Triangle Review Page 1 of 3 Hnout Tringle Review Pge of 3 In the stuy of sttis, it is importnt tht you e le to solve lgeri equtions n tringle prolems using trigonometry. The following is review of trigonometry sis. Right Tringle:

More information

CS 573 Automata Theory and Formal Languages

CS 573 Automata Theory and Formal Languages Non-determinism Automt Theory nd Forml Lnguges Professor Leslie Lnder Leture # 3 Septemer 6, 2 To hieve our gol, we need the onept of Non-deterministi Finite Automton with -moves (NFA) An NFA is tuple

More information

On the Spectra of Bipartite Directed Subgraphs of K 4

On the Spectra of Bipartite Directed Subgraphs of K 4 On the Spetr of Biprtite Direte Sugrphs of K 4 R. C. Bunge, 1 S. I. El-Znti, 1, H. J. Fry, 1 K. S. Kruss, 2 D. P. Roerts, 3 C. A. Sullivn, 4 A. A. Unsiker, 5 N. E. Witt 6 1 Illinois Stte University, Norml,

More information

1 PYTHAGORAS THEOREM 1. Given a right angled triangle, the square of the hypotenuse is equal to the sum of the squares of the other two sides.

1 PYTHAGORAS THEOREM 1. Given a right angled triangle, the square of the hypotenuse is equal to the sum of the squares of the other two sides. 1 PYTHAGORAS THEOREM 1 1 Pythgors Theorem In this setion we will present geometri proof of the fmous theorem of Pythgors. Given right ngled tringle, the squre of the hypotenuse is equl to the sum of the

More information

SIMPLE NONLINEAR GRAPHS

SIMPLE NONLINEAR GRAPHS S i m p l e N o n l i n e r G r p h s SIMPLE NONLINEAR GRAPHS www.mthletis.om.u Simple SIMPLE Nonliner NONLINEAR Grphs GRAPHS Liner equtions hve the form = m+ where the power of (n ) is lws. The re lle

More information

Parse trees, ambiguity, and Chomsky normal form

Parse trees, ambiguity, and Chomsky normal form Prse trees, miguity, nd Chomsky norml form In this lecture we will discuss few importnt notions connected with contextfree grmmrs, including prse trees, miguity, nd specil form for context-free grmmrs

More information

Chapter 9 Definite Integrals

Chapter 9 Definite Integrals Chpter 9 Definite Integrls In the previous chpter we found how to tke n ntiderivtive nd investigted the indefinite integrl. In this chpter the connection etween ntiderivtives nd definite integrls is estlished

More information

Nondeterministic Finite Automata

Nondeterministic Finite Automata Nondeterministi Finite utomt The Power of Guessing Tuesdy, Otoer 4, 2 Reding: Sipser.2 (first prt); Stoughton 3.3 3.5 S235 Lnguges nd utomt eprtment of omputer Siene Wellesley ollege Finite utomton (F)

More information

Section 4: Integration ECO4112F 2011

Section 4: Integration ECO4112F 2011 Reding: Ching Chpter Section : Integrtion ECOF Note: These notes do not fully cover the mteril in Ching, ut re ment to supplement your reding in Ching. Thus fr the optimistion you hve covered hs een sttic

More information

arxiv: v1 [cs.dm] 24 Jul 2017

arxiv: v1 [cs.dm] 24 Jul 2017 Some lsses of grphs tht re not PCGs 1 rxiv:1707.07436v1 [s.dm] 24 Jul 2017 Pierluigi Biohi Angelo Monti Tizin Clmoneri Rossell Petreshi Computer Siene Deprtment, Spienz University of Rome, Itly pierluigi.iohi@gmil.om,

More information

Farey Fractions. Rickard Fernström. U.U.D.M. Project Report 2017:24. Department of Mathematics Uppsala University

Farey Fractions. Rickard Fernström. U.U.D.M. Project Report 2017:24. Department of Mathematics Uppsala University U.U.D.M. Project Report 07:4 Frey Frctions Rickrd Fernström Exmensrete i mtemtik, 5 hp Hledre: Andres Strömergsson Exmintor: Jörgen Östensson Juni 07 Deprtment of Mthemtics Uppsl University Frey Frctions

More information

3.4 Conic sections. In polar coordinates (r, θ) conics are parameterized as. Next we consider the objects resulting from

3.4 Conic sections. In polar coordinates (r, θ) conics are parameterized as. Next we consider the objects resulting from 3.4 Conic sections Net we consier the objects resulting from + by + cy + + ey + f 0. Such type of cures re clle conics, becuse they rise from ifferent slices through cone In polr coorintes r, θ) conics

More information

Goals: Determine how to calculate the area described by a function. Define the definite integral. Explore the relationship between the definite

Goals: Determine how to calculate the area described by a function. Define the definite integral. Explore the relationship between the definite Unit #8 : The Integrl Gols: Determine how to clculte the re described by function. Define the definite integrl. Eplore the reltionship between the definite integrl nd re. Eplore wys to estimte the definite

More information

Basic Derivative Properties

Basic Derivative Properties Bsic Derivtive Properties Let s strt this section by remining ourselves tht the erivtive is the slope of function Wht is the slope of constnt function? c FACT 2 Let f () =c, where c is constnt Then f 0

More information

Computational Biology Lecture 18: Genome rearrangements, finding maximal matches Saad Mneimneh

Computational Biology Lecture 18: Genome rearrangements, finding maximal matches Saad Mneimneh Computtionl Biology Leture 8: Genome rerrngements, finding miml mthes Sd Mneimneh We hve seen how to rerrnge genome to otin nother one sed on reversls nd the knowledge of the preserved loks or genes. Now

More information

Morphing Orthogonal Planar Graph Drawings

Morphing Orthogonal Planar Graph Drawings Morphing Orthogonl Plnr Grph Drwings Ann Liw Mrk Petrik Mihel Spriggs Astrt We give n lgorithm to morph etween two plnr orthogonl rwings of grph, preserving plnrity n orthogonlity. The morph ses polynomil

More information

AP Calculus BC Chapter 8: Integration Techniques, L Hopital s Rule and Improper Integrals

AP Calculus BC Chapter 8: Integration Techniques, L Hopital s Rule and Improper Integrals AP Clulus BC Chpter 8: Integrtion Tehniques, L Hopitl s Rule nd Improper Integrls 8. Bsi Integrtion Rules In this setion we will review vrious integrtion strtegies. Strtegies: I. Seprte the integrnd into

More information

POSITIVE IMPLICATIVE AND ASSOCIATIVE FILTERS OF LATTICE IMPLICATION ALGEBRAS

POSITIVE IMPLICATIVE AND ASSOCIATIVE FILTERS OF LATTICE IMPLICATION ALGEBRAS Bull. Koren Mth. So. 35 (998), No., pp. 53 6 POSITIVE IMPLICATIVE AND ASSOCIATIVE FILTERS OF LATTICE IMPLICATION ALGEBRAS YOUNG BAE JUN*, YANG XU AND KEYUN QIN ABSTRACT. We introue the onepts of positive

More information

The Ellipse. is larger than the other.

The Ellipse. is larger than the other. The Ellipse Appolonius of Perg (5 B.C.) disovered tht interseting right irulr one ll the w through with plne slnted ut is not perpendiulr to the is, the intersetion provides resulting urve (oni setion)

More information

Common intervals of genomes. Mathieu Raffinot CNRS LIAFA

Common intervals of genomes. Mathieu Raffinot CNRS LIAFA Common intervls of genomes Mthieu Rffinot CNRS LIF Context: omprtive genomis. set of genomes prtilly/totlly nnotte Informtive group of genes or omins? Ex: COG tse Mny iffiulties! iology Wht re two similr

More information

Bisimulation, Games & Hennessy Milner logic

Bisimulation, Games & Hennessy Milner logic Bisimultion, Gmes & Hennessy Milner logi Leture 1 of Modelli Mtemtii dei Proessi Conorrenti Pweł Soboiński Univeristy of Southmpton, UK Bisimultion, Gmes & Hennessy Milner logi p.1/32 Clssil lnguge theory

More information

Factorising FACTORISING.

Factorising FACTORISING. Ftorising FACTORISING www.mthletis.om.u Ftorising FACTORISING Ftorising is the opposite of expning. It is the proess of putting expressions into rkets rther thn expning them out. In this setion you will

More information

2.4 Linear Inequalities and Interval Notation

2.4 Linear Inequalities and Interval Notation .4 Liner Inequlities nd Intervl Nottion We wnt to solve equtions tht hve n inequlity symol insted of n equl sign. There re four inequlity symols tht we will look t: Less thn , Less thn or

More information

Discrete Structures Lecture 11

Discrete Structures Lecture 11 Introdution Good morning. In this setion we study funtions. A funtion is mpping from one set to nother set or, perhps, from one set to itself. We study the properties of funtions. A mpping my not e funtion.

More information

COMPUTING THE QUARTET DISTANCE BETWEEN EVOLUTIONARY TREES OF BOUNDED DEGREE

COMPUTING THE QUARTET DISTANCE BETWEEN EVOLUTIONARY TREES OF BOUNDED DEGREE COMPUTING THE QUARTET DISTANCE BETWEEN EVOLUTIONARY TREES OF BOUNDED DEGREE M. STISSING, C. N. S. PEDERSEN, T. MAILUND AND G. S. BRODAL Bioinformtis Reserh Center, n Dept. of Computer Siene, University

More information

Comparing the Pre-image and Image of a Dilation

Comparing the Pre-image and Image of a Dilation hpter Summry Key Terms Postultes nd Theorems similr tringles (.1) inluded ngle (.2) inluded side (.2) geometri men (.) indiret mesurement (.6) ngle-ngle Similrity Theorem (.2) Side-Side-Side Similrity

More information

Polynomial Approximations for the Natural Logarithm and Arctangent Functions. Math 230

Polynomial Approximations for the Natural Logarithm and Arctangent Functions. Math 230 Polynomil Approimtions for the Nturl Logrithm nd Arctngent Functions Mth 23 You recll from first semester clculus how one cn use the derivtive to find n eqution for the tngent line to function t given

More information

CARLETON UNIVERSITY. 1.0 Problems and Most Solutions, Sect B, 2005

CARLETON UNIVERSITY. 1.0 Problems and Most Solutions, Sect B, 2005 RLETON UNIVERSIT eprtment of Eletronis ELE 2607 Swithing iruits erury 28, 05; 0 pm.0 Prolems n Most Solutions, Set, 2005 Jn. 2, #8 n #0; Simplify, Prove Prolem. #8 Simplify + + + Reue to four letters (literls).

More information

The DOACROSS statement

The DOACROSS statement The DOACROSS sttement Is prllel loop similr to DOALL, ut it llows prouer-onsumer type of synhroniztion. Synhroniztion is llowe from lower to higher itertions sine it is ssume tht lower itertions re selete

More information

A Primer on Continuous-time Economic Dynamics

A Primer on Continuous-time Economic Dynamics Eonomis 205A Fll 2008 K Kletzer A Primer on Continuous-time Eonomi Dnmis A Liner Differentil Eqution Sstems (i) Simplest se We egin with the simple liner first-orer ifferentil eqution The generl solution

More information

Surds and Indices. Surds and Indices. Curriculum Ready ACMNA: 233,

Surds and Indices. Surds and Indices. Curriculum Ready ACMNA: 233, Surs n Inies Surs n Inies Curriulum Rey ACMNA:, 6 www.mthletis.om Surs SURDS & & Inies INDICES Inies n surs re very losely relte. A numer uner (squre root sign) is lle sur if the squre root n t e simplifie.

More information

Part 4. Integration (with Proofs)

Part 4. Integration (with Proofs) Prt 4. Integrtion (with Proofs) 4.1 Definition Definition A prtition P of [, b] is finite set of points {x 0, x 1,..., x n } with = x 0 < x 1

More information

Register Loading via Linear Programming

Register Loading via Linear Programming Register Loing vi Liner Progrmming Gri Clines Minming Li My 8, 4 Astrt We sty the following optimiztion prolem. The inpt is nmer k n irete grph with speifie strt verte, eh of whose verties my hve one memory

More information

CSE 332. Sorting. Data Abstractions. CSE 332: Data Abstractions. QuickSort Cutoff 1. Where We Are 2. Bounding The MAXIMUM Problem 4

CSE 332. Sorting. Data Abstractions. CSE 332: Data Abstractions. QuickSort Cutoff 1. Where We Are 2. Bounding The MAXIMUM Problem 4 Am Blnk Leture 13 Winter 2016 CSE 332 CSE 332: Dt Astrtions Sorting Dt Astrtions QuikSort Cutoff 1 Where We Are 2 For smll n, the reursion is wste. The onstnts on quik/merge sort re higher thn the ones

More information

Section 2.1 Special Right Triangles

Section 2.1 Special Right Triangles Se..1 Speil Rigt Tringles 49 Te --90 Tringle Setion.1 Speil Rigt Tringles Te --90 tringle (or just 0-60-90) is so nme euse of its ngle mesures. Te lengts of te sies, toug, ve very speifi pttern to tem

More information

Introduction to Olympiad Inequalities

Introduction to Olympiad Inequalities Introdution to Olympid Inequlities Edutionl Studies Progrm HSSP Msshusetts Institute of Tehnology Snj Simonovikj Spring 207 Contents Wrm up nd Am-Gm inequlity 2. Elementry inequlities......................

More information

September 30, :24 WSPC/Guidelines Y4Spanner

September 30, :24 WSPC/Guidelines Y4Spanner Septemer 30, 2011 12:24 WSPC/Guielines Y4Spnner Interntionl Journl of Computtionl Geometry & Applitions Worl Sientifi Pulishing Compny π/2-angle YAO GAPHS AE SPANNES POSENJIT BOSE Shool of Computer Siene,

More information

Technische Universität München Winter term 2009/10 I7 Prof. J. Esparza / J. Křetínský / M. Luttenberger 11. Februar Solution

Technische Universität München Winter term 2009/10 I7 Prof. J. Esparza / J. Křetínský / M. Luttenberger 11. Februar Solution Tehnishe Universität Münhen Winter term 29/ I7 Prof. J. Esprz / J. Křetínský / M. Luttenerger. Ferur 2 Solution Automt nd Forml Lnguges Homework 2 Due 5..29. Exerise 2. Let A e the following finite utomton:

More information

a) Read over steps (1)- (4) below and sketch the path of the cycle on a P V plot on the graph below. Label all appropriate points.

a) Read over steps (1)- (4) below and sketch the path of the cycle on a P V plot on the graph below. Label all appropriate points. Prole 3: Crnot Cyle of n Idel Gs In this prole, the strting pressure P nd volue of n idel gs in stte, re given he rtio R = / > of the volues of the sttes nd is given Finlly onstnt γ = 5/3 is given You

More information

Data Structures LECTURE 10. Huffman coding. Example. Coding: problem definition

Data Structures LECTURE 10. Huffman coding. Example. Coding: problem definition Dt Strutures, Spring 24 L. Joskowiz Dt Strutures LEURE Humn oing Motivtion Uniquel eipherle oes Prei oes Humn oe onstrution Etensions n pplitions hpter 6.3 pp 385 392 in tetook Motivtion Suppose we wnt

More information

CS 360 Exam 2 Fall 2014 Name

CS 360 Exam 2 Fall 2014 Name CS 360 Exm 2 Fll 2014 Nme 1. The lsses shown elow efine singly-linke list n stk. Write three ifferent O(n)-time versions of the reverse_print metho s speifie elow. Eh version of the metho shoul output

More information

H (2a, a) (u 2a) 2 (E) Show that u v 4a. Explain why this implies that u v 4a, with equality if and only u a if u v 2a.

H (2a, a) (u 2a) 2 (E) Show that u v 4a. Explain why this implies that u v 4a, with equality if and only u a if u v 2a. Chpter Review 89 IGURE ol hord GH of the prol 4. G u v H (, ) (A) Use the distne formul to show tht u. (B) Show tht G nd H lie on the line m, where m ( )/( ). (C) Solve m for nd sustitute in 4, otining

More information

STRAND J: TRANSFORMATIONS, VECTORS and MATRICES

STRAND J: TRANSFORMATIONS, VECTORS and MATRICES Mthemtics SKE: STRN J STRN J: TRNSFORMTIONS, VETORS nd MTRIES J3 Vectors Text ontents Section J3.1 Vectors nd Sclrs * J3. Vectors nd Geometry Mthemtics SKE: STRN J J3 Vectors J3.1 Vectors nd Sclrs Vectors

More information

NON-DETERMINISTIC FSA

NON-DETERMINISTIC FSA Tw o types of non-determinism: NON-DETERMINISTIC FS () Multiple strt-sttes; strt-sttes S Q. The lnguge L(M) ={x:x tkes M from some strt-stte to some finl-stte nd ll of x is proessed}. The string x = is

More information

I1 = I2 I1 = I2 + I3 I1 + I2 = I3 + I4 I 3

I1 = I2 I1 = I2 + I3 I1 + I2 = I3 + I4 I 3 2 The Prllel Circuit Electric Circuits: Figure 2- elow show ttery nd multiple resistors rrnged in prllel. Ech resistor receives portion of the current from the ttery sed on its resistnce. The split is

More information

Separable discrete functions: recognition and sufficient conditions

Separable discrete functions: recognition and sufficient conditions Seprle isrete funtions: reognition n suffiient onitions Enre Boros Onřej Čepek Vlimir Gurvih Novemer 21, 217 rxiv:1711.6772v1 [mth.co] 17 Nov 217 Astrt A isrete funtion of n vriles is mpping g : X 1...

More information

The Double Integral. The Riemann sum of a function f (x; y) over this partition of [a; b] [c; d] is. f (r j ; t k ) x j y k

The Double Integral. The Riemann sum of a function f (x; y) over this partition of [a; b] [c; d] is. f (r j ; t k ) x j y k The Double Integrl De nition of the Integrl Iterted integrls re used primrily s tool for omputing double integrls, where double integrl is n integrl of f (; y) over region : In this setion, we de ne double

More information

Lecture 8: Abstract Algebra

Lecture 8: Abstract Algebra Mth 94 Professor: Pri Brtlett Leture 8: Astrt Alger Week 8 UCSB 2015 This is the eighth week of the Mthemtis Sujet Test GRE prep ourse; here, we run very rough-n-tumle review of strt lger! As lwys, this

More information

Chapter 4 State-Space Planning

Chapter 4 State-Space Planning Leture slides for Automted Plnning: Theory nd Prtie Chpter 4 Stte-Spe Plnning Dn S. Nu CMSC 722, AI Plnning University of Mrylnd, Spring 2008 1 Motivtion Nerly ll plnning proedures re serh proedures Different

More information

COMPUTING THE QUARTET DISTANCE BETWEEN EVOLUTIONARY TREES OF BOUNDED DEGREE

COMPUTING THE QUARTET DISTANCE BETWEEN EVOLUTIONARY TREES OF BOUNDED DEGREE COMPUTING THE QUARTET DISTANCE BETWEEN EVOLUTIONARY TREES OF BOUNDED DEGREE M. STISSING, C. N. S. PEDERSEN, T. MAILUND AND G. S. BRODAL Bioinformtis Reserh Center, n Dept. of Computer Siene, University

More information

Graph Algorithms. Vertex set = { a,b,c,d } Edge set = { {a,c}, {b,c}, {c,d}, {b,d}} Figure 1: An example for a simple graph

Graph Algorithms. Vertex set = { a,b,c,d } Edge set = { {a,c}, {b,c}, {c,d}, {b,d}} Figure 1: An example for a simple graph Inin Institute of Informtion Tehnology Design n Mnufturing, Knheepurm, Chenni 00, Ini An Autonomous Institute uner MHRD, Govt of Ini http://www.iiitm..in COM 0T Design n Anlysis of Algorithms -Leture Notes

More information

Solutions to Problem Set #1

Solutions to Problem Set #1 CSE 233 Spring, 2016 Solutions to Prolem Set #1 1. The movie tse onsists of the following two reltions movie: title, iretor, tor sheule: theter, title The first reltion provies titles, iretors, n tors

More information

Geodesics on Regular Polyhedra with Endpoints at the Vertices

Geodesics on Regular Polyhedra with Endpoints at the Vertices Arnol Mth J (2016) 2:201 211 DOI 101007/s40598-016-0040-z RESEARCH CONTRIBUTION Geoesis on Regulr Polyher with Enpoints t the Verties Dmitry Fuhs 1 To Sergei Thnikov on the osion of his 60th irthy Reeive:

More information

Algebra 2 Semester 1 Practice Final

Algebra 2 Semester 1 Practice Final Alger 2 Semester Prtie Finl Multiple Choie Ientify the hoie tht est ompletes the sttement or nswers the question. To whih set of numers oes the numer elong?. 2 5 integers rtionl numers irrtionl numers

More information

Activities. 4.1 Pythagoras' Theorem 4.2 Spirals 4.3 Clinometers 4.4 Radar 4.5 Posting Parcels 4.6 Interlocking Pipes 4.7 Sine Rule Notes and Solutions

Activities. 4.1 Pythagoras' Theorem 4.2 Spirals 4.3 Clinometers 4.4 Radar 4.5 Posting Parcels 4.6 Interlocking Pipes 4.7 Sine Rule Notes and Solutions MEP: Demonstrtion Projet UNIT 4: Trigonometry UNIT 4 Trigonometry tivities tivities 4. Pythgors' Theorem 4.2 Spirls 4.3 linometers 4.4 Rdr 4.5 Posting Prels 4.6 Interloking Pipes 4.7 Sine Rule Notes nd

More information