Metaheuristics for the Asymmetric Hamiltonian Path Problem
|
|
- Stephany Hancock
- 5 years ago
- Views:
Transcription
1 Metheuristis for the Asymmetri Hmiltonin Pth Prolem João Pero PEDROSO INESC - Porto n DCC - Fule e Ciênis, Universie o Porto, Portugl jpp@f.up.pt Astrt. One of the most importnt pplitions of the Asymmetri Hmiltonin Pth Prolem is in sheuling. In this pper we esrie vrint of this prolem, n evelop oth mthemtil progrmming formultion n simple metheuristis for solving it. The formultion is se on trnsformtion of the input t, in suh wy tht stnr mthemtil progrmming moel for the Asymmetri Trvelling Slesmn Prolem n e use on this slightly ifferent prolem. Two stnr metheuristis for the symmetri trvelling slesmn re propose n nlyse on this vrint: repete rnom onstrution followe y lol serh with the 3-Exhnge neighourhoo, n iterte lol serh se on the sme neighourhoo n on 4-Exhnge perturtion. The omputtionl results otine show the interest n the omplementry merits of using mixe-integer progrmming solver n n pproximtive metho for the solution of this prolem. 1 Introution We re eling with the following prolem: given n opertion urrently eing one in mhine, etermine the orer for the set of opertions to e proue next, suh tht the totl proution time is minimize. There re no preeene onstrints mong the opertions, ut there re hngeover times whih epen on the proution sequene. Minimizing the totl proution time is equivlent to minimizing the time spent in hngeovers, s the other times re onstnt. This prolem is relevnt in mny prtil situtions. In pint proution the mhine lening times re usully epenent on the sequene; for exmple, prouing white olour fter grey requires muh more reful lening thn the other wy roun. The proution of steel is lso sitution where the sequene of proution is very importnt, hving very strit rules n osts tht epen on the orer. Yet nother prtil pplition is in foo mnufturing, where strong flvours n e proue fter flvourless prouts t smll ost, ut very reful n lengthy lening is require in the inverse sitution. One possiility for moelling this prolem is to onsier grph with noe for eh of the items tht must e proue. There re two rs etween every pir of noes, one in eh iretion, representing the hngeover time etween the orresponing prouts. A solution to the originl prolem orrespons to
2 etermining Hmiltonin pth in this grph, i.e., pth going through ll the noes in the grph. The pth must strt with prtiulr noe (the item eing urrently proue), ut there is no onern out the ening noe. Let us ll this the Fixe-Strt Asymmetri Hmiltonin Pth (FSAHP) prolem. Given the similrity of this prolem with the Trvelling Slesmn Prolem, in prtiulr with its symmetri vrints, we onsiere pting the methos tht hve een evelope for tht prolem to the urrent sitution. Throughout this pper we will esrie more formlly the prolem in mthemtil progrmming, explin in etil the metheuristis tht we implemente for solving it, n present the results of pplying it to set of enhmrk prolems. 2 Prolem esription We re given grph G(V, A) where V is the set of noes n A the set of rs. In the lssil Asymmetri Trvelling Slesmn Prolem (ATSP), noes orrespon to ities to e visite n rs to the istne etween them. In our se, eh noe represents prout to e mnufture, every r (i, j) hs ost D(i, j) orresponing to the (symmetri) hngeover time etween prout i n j, n there is speil noe v 1, whih must e the first noe in the pth, n orrespons to the lst previously mnufture prout (or to the ity where the slesperson urrently is, the lssil prolem). With simple t preproessing, stnr ATSP formultions n e pte to the urrent prolem, s shown elow. Property 1. Reefine the istne from ny noe to the first (fixe) noe in the pth, v 1, s zero (ll other istnes remining unhnge). A minimum Hmiltonin yle etermine with this t efines pth whih is n optiml solution to the FSAHP, with the sme optiml ojetive vlue. Proof. Let us ll the optiml solution to the FSAHP (p 1,..., p n); this is pth, with p 1 = v 1, overing ll the noes. This pth n e extene into yle, without inresing the ost, y ing the r (p n, v 1). Suppose there is yle (s 1,..., s n, s 1), with s 1 = v 1, with smller ojetive; then, s the r (s n, v 1) hs zero length, the pth (s 1,..., s n) woul hve to e shorter thn (p 1,..., p n). But in this se (s 1,..., s n) woul e etter solution to the FSAHP thn (p 1,..., p n), ontriting the ssumption. 2.1 Formultion in mthemtil progrmming There re mny formultions for the ATSP, n their stuy is n tive fiel in mthemtil progrmming. For the purposes of this pper, we will restrit to the most ommon one, ue to [1]: n n minimise ij x ij (1) i=1 j=1
3 n x ij = 1, j = 1,..., n i=1 n x ij = 1, j=1 i = 1,..., n (n 1)x ij + u i u j n 2, i, j = 2,..., n x ij {0, 1}, i, j = 1,..., n, u i R i = 1,..., n The optiml yle is the set of rs (i, j) suh tht x ij = 1. The solution to the FSAHP is the n-noe pth strting with v 1 in this yle. 3 Bsi heuristis n lol serh The most strightforwr wy for solving the Fixe-Strt Asymmetri Hmiltonin Pth with heuristis n metheuristis is to pply the trnsformtion on the t propose in Setion 2, n solve n Asymmetri Trvelling Slesmn. Then, the solution to the originl prolem is otine y seleting the n-noe pth strting with v 1 in the ATSP s solution. The hrteristis of the pth prolem oul e exploite for evising more pte neighourhoos, ut it turns out tht the performne egres in most of the stuie instnes, possily ue to the losing symmetry properties. 3.1 Constrution Simple onstrution heuristis for the ATSP re se on equivlent heuristis for the symmetri TSP (niely esrie e.g. in [2]). As for the metheuristis esrie in this pper, the initil solution is onstrute se on rnom permuttion of {1,..., n}. 3.2 Improvement The most ommon improvement methos for prolems relte to the TSP re se on exhnge heuristis: remove k eges, reking the yle tour into k pths; then reonnet those pths into ifferent yle [3, 4]. For the symmetri TSP, the most ommonly use neighourhoo is 2-Exhnge: remove two nononseutive eges, n two other eges, s shown in Figure 1. As for the ATSP, there re no 2-Exhnge moves tht keep pth orienttion, n hene they re not usully employe [5]. The most ommonly use moves re 3-Exhnge, keeping pth orienttion, s shown in Figure 2. For implementing lol serh se in this neighourhoo in n effiient wy, moves tht re known not to le to improvements shoul e voie. For this purpose, the list of the neighours of given vertex, sorte y istne, is serhe only up to ertin point.
4 Let us first rell wht is ommonly one with the (symmetri) TSP. Consier tour represente y p = (p 1, p 2,..., p n ), n let us enote the lst element of p s either p n or p 0. Eh ege (p i 1, p i ), for i = 1,..., n, is exmine for improving exhnges, through removing it n nother ege (p j 1, p j ), n ing two ifferent eges, in suh wy tht new tour is forme (p j must e seprte from p i y t lest two noes). A new tour is onstrute y ing eges {p i 1, p j 1 } n {p i, p j }. Property 2. For given i, improving moves nnot e misse if j is restrite to: 1. noes onnete to p i 1 suh tht their istne to p j 1 is smller thn D(p i 1, p i ); 2. noes onnete to p i suh tht their istne to p i is smller thn D(p i 1, p i ). Proof. Let p i 1, p i, p j 1, p j e represente y,,,, respetively, s in Figure 1. In n improving move there must e D(, ) + D(, ) < D(, ) + D(, ), implying tht either D(, ) < D(, ) or D(, ) < D(, ), or oth. Hene, in n improvement, t lest one of the e eges must e smller thn t lest one of the remove eges. The se of n e ege eing smller thn {, } is exmine y onsiering ll eges {, } suh tht D(, ) < D(, ), n ll eges {, } suh tht D(, ) < D(, ). The remining potentil improvement se orrespons to hving the ege {, } lrger thn either {, } or {, }; ut this possiility is exmine for i suh tht = p i 1 n = p i. Let us now go k to the ATSP prolem n the 3-Exhnge neighourhoo. Consier tour represente y p = (p 1, p 2,..., p n ). Eh r (p i 1, p i ), for i = 1,..., n, is exmine for improving exhnges, through removing it n other two rs (p j 1, p j ) n (p k 1, p k ). A new tour is onstrute y ing rs (p i 1, p j ), (p j 1, p k ), n (p k 1, p i ). Property 3. For given i, improving moves nnot e misse if j n k re restrite s follows: 1. j is restrite to noes outgoing from p i 1 suh tht their istne from p i 1 is smller thn D(p i 1, p i ); furthermore, in this se k is restrite to noes outgoing from p j 1 suh tht istne D(p i 1, p j ) + D(p j 1, p k ) is smller thn D(p i 1, p i ) + D(p j 1, p j ), n p k is not in the pth from p i to p j k 1 is restrite to noes inoming into p i suh tht their istne to p i is smller thn D(p i 1, p i ); furthermore, in this se j is restrite to noes inoming into p k suh tht istne D(p k 1, p i )+D(p j 1, p k ) is smller thn D(p i 1, p i ) + D(p k 1, p k ), n p j is not in the pth from p k to p i 1. Proof. Let p i 1, p i, p j 1, p j, p k 1, p k e represente y,,,, e, f, respetively, s in Figure 2. In n improving move there must e D(, ) + D(, f) + D(e, ) < D(, ) + D(, ) + D(e, f), implying tht t lest one of the e rs must e smller thn t lest one of the remove ones. Let us onsier n improving move for whih either D(, ) + D(, f) > D(, ) + D(, ), or D(, ) > D(, ). In the former se, there must e D(e, ) < D(e, f), n
5 Fig. 1. Single 2-Exhnge possiility for the (symmetri) TSP. Eges {, }, {, } re remove, n reple y {, }, {, }. e e f f Fig. 2. Single 3-Exhnge possiility without pth inversions for the ATSP. Ars (, ), (, ), (e, f) re reple y (, ), (e, ), (, f). h g f e h g f e Fig. 3. A 4-Exhnge (oule rige) movement without pth inversions for the ATSP, s implemente in iterte lol serh. this is tkle in the min i yle, for i : p i 1 = e. As for the ltter se, there must e D(, f)+d(e, ) < D(, )+D(e, f); thus, either D(, f) < D(, ), or D(e, ) < D(e, f), or oth. But this sitution is tkle for i : p i 1 = or i : p i 1 = e, respetively. 3.3 Implementtion In our implementtion, inies for the outer yle (i) re serhe in rnom orer. Inies j n k re serh y inresing istne to noes p i 1 n p i, until rehing the limits efine y Property 3. Improvements re epte in n first-improve mnner, i.e., n improving movement is immeitely epte. The initil solution is rnom permuttion of {1,..., n}.
6 3.4 Improve heuristis Rnom-strt lol serh: in this metheuristis, the following steps re repete until rehing stopping riterion (in our implementtion, exeeing the limit CPU time): 1. rete rnom solution; 2. improve it until rehing lol optimum; 3. possily, upte the est solution foun so fr. Iterte lol serh: for this metheuristis, fter rehing lol optimum eep moifition on the solution struture is introue; the solution thus otine is then improve until rehing nother lol optimum, n the whole proess is repete until rehing the stopping riterion. The eep moifition me t eh itertion is 4-Exhnge movement, s epite in Figure 3. This is usully lle oule rige movement. Our implementtion of iterte lol serh onsists of otining rnom strting solution, n then repeting the following steps: 1. improve the solution until rehing lol optimum; 2. possily, upte the est solution foun so fr; 3. rnomly selet 4 rs in the solution; exhnge them with 4 ifferent rs, in suh wy tht tour (with no pth inversions) is forme. 4 Results The metheuristis propose in this pper were ompre to mixe-integer progrmming (MIP) solver, through n experiment with set of stnr enhmrks instnes. These orrespon moifition of the ATSP instnes ville in the TSPLIB [6]; the strting noe v 1 is the first ity in the instne, n, for tkling the pth prolem, the istnes from ny other noe to v 1 re reefine s zero (s esrie in Setion 2). The experiment ws run in omputer with Qu-Core Intel Xeon, 2.66 GHz proessor, running the M OS X operting system version ; only one CPU ws llote to this experiment. The MIP solver use is GUROBI [7], one of the leing ommeril solvers. Metheuristis were implemente in the Python progrmming lnguge, version 2.6.1; this is onsierly slower thn the ompile, exeutle oe of GUROBI. Hene, results re not truly omprle; however, they still llow rwing mny interesting onlusions. In ll the experiments, the CPU time for n oservtion of metho solving n instne ws limite to out 300 seons; s for the metheuristis, the results orrespon to the minimum, verge, n mximum of 10 inepenent oservtions. The results re presente in tle 1. The first interesting onlusion is tht stte-of-the-rt MIP solver n reh the optimum for mny of the enhmrk instnes (those for whih the lower oun otine is ientil to the upper oun); this is n enormous progress with respet to some yers go. In these ses, oth metheuristis oul lso
7 fin systemtilly the optimum, exept for instnes of the ftv series. For these instnes n tex5, the result of the MIP solver is etter thn the verge solution of eh metheuristis; for ll the other instnes, oth metheuristis re etter. A very interesting result ws otine for instnes rg403 n rg443; inee, even though no fesile solution ws foun y the MIP solver in the Multi-strt lol serh Iterte lol serh GUROBI Instne minimum verge mximum minimum verge mximum LB UB tex tex tex tex tex ig r oe oe ft ft ftv ftv ftv ftv ftv ftv ftv ftv ftv ftv ftv ftv ftv ftv ftv ftv ftv kro124p p rg rg rg rg ry48p t t t Tle 1. Results otine using multi-strt lol serh, iterte Lol serh, n the lower n upper ouns otine y the MIP solver GUROBI, for CPU limit of 300 seons. (Instnes 563, 895, 932 were llowe only one esent, s it tkes more thn 300 seons.)
8 CPU time llowe, the est solution foun y metheuristis n e proven optiml, s its ojetive vlue equls the MIP lower oun. As for the omprison etween the two metheuristis propose, iterte lol serh is t lest s goo s multi-strt lol serh for most instnes, eing stritly etter for mny of them; the slight inrese in omplexity seems, hene, to e worthy. 5 Conlusions In this pper we esrie vrint of the Asymmetri Hmiltonin Pth Prolem, with pplitions in sheuling. We present mthemtil progrmming formultion, n simple pproximtive methos for solving it. The metheuristis re rnom-strt lol serh n iterte lol serh; oth of them provie very goo results, with slight vntge to the ltter. For esy prolems mixe-integer progrmming solver oul fin the optimum in reltively smll time; for lrger, more iffiult prolems, the pproximtive methos oul fin etter solutions in the CPU time llowe. Improvements on the metheuristis re expete if on t look its re use, in orer to keep trk of ities for whih serh oul e skippe. Another possile improvement onerns limiting the numer of neighours of eh ity tht re llowe to e explore for exhnges. Both of these moifitions my provie onsierle speeup, t the ost of, possily, loosing lol optimlity. Aknowlegments. This reserh ws supporte in prt y FCT Função pr Ciêni e Tenologi (Projet **PTDC/GES/73801/2006) n y the Europen projet CIVITAS-ELAN, uner Frmework Progrmme 7. Our speil thnks to Prof. Nelm Moreir for proof reing this mnusript. Referenes 1. Miller, C.E., Tuker, A.W., Zemlin, R.A.: Integer progrmming formultion of trveling slesmn prolems. J. ACM 7(4) (1960) Johnson, D., MGeoh, L.: Lol serh in omintoril optimiztion. In Arts, E., Lenstr, J.K., es.: Lol serh in omintoril optimiztion. John Wiley & Sons, In., New York, NY, USA (1997) 3. Croes, G.A.: A metho for solving trveling-slesmn prolems. Opertions Reserh 6 (1958) Floo, M.M.: The trveling-slesmn prolem. Opertions Reserh 4 (1956) Johnson, D.S., Gutin, G., MGeoh, L.A., Yeo, A., Zhng, W., Zverovith, A.: Experimentl nlysis of heuristis for the tsp. In Gutin, G., Punnen, A.P., es.: The Trveling Slesmn Prolem n Its Vritions. Volume 12 of Comintoril Optimiztion. Kluwer Aemi Pulishers, Boston, USA (2002) 6. Bixy, B., Reinelt, G.: TSPLIB A lirry of trvelling slesmn n relte prolem instnes. Internet repository (1995) 7. Guroi Optimiztion, In.: Guroi Optimizer Referene Mnul, Version 2.0, (2010)
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 informationCS 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 informationLecture 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 informationMid-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 informationCSE 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 information22: 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 informationSolutions 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 informationThe 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 information2.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 informationCIT 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 informationfor 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 informationCS 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 information1 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 informationCommon 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 informationLecture 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 informationFactorising 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 informationNecessary 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 informationProject 6: Minigoals Towards Simplifying and Rewriting Expressions
MAT 51 Wldis Projet 6: Minigols Towrds Simplifying nd Rewriting Expressions The distriutive property nd like terms You hve proly lerned in previous lsses out dding like terms ut one prolem with the wy
More informationA 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 informationData 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 informationTechnology Mapping Method for Low Power Consumption and High Performance in General-Synchronous Framework
R-17 SASIMI 015 Proeeings Tehnology Mpping Metho for Low Power Consumption n High Performne in Generl-Synhronous Frmework Junki Kwguhi Yukihie Kohir Shool of Computer Siene, the University of Aizu Aizu-Wkmtsu
More informationNumbers 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 informationSurds 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 informationChapter 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 informationCSC2542 State-Space Planning
CSC2542 Stte-Spe Plnning Sheil MIlrith Deprtment of Computer Siene University of Toronto Fll 2010 1 Aknowlegements Some the slies use in this ourse re moifitions of Dn Nu s leture slies for the textook
More informationProbability The Language of Chance P(A) Mathletics Instant Workbooks. Copyright
Proility The Lnguge of Chne Stuent Book - Series L-1 P(A) Mthletis Instnt Workooks Copyright Proility The Lnguge of Chne Stuent Book - Series L Contents Topis Topi 1 - Lnguge of proility Topi 2 - Smple
More informationCS311 Computational Structures Regular Languages and Regular Grammars. Lecture 6
CS311 Computtionl Strutures Regulr Lnguges nd Regulr Grmmrs Leture 6 1 Wht we know so fr: RLs re losed under produt, union nd * Every RL n e written s RE, nd every RE represents RL Every RL n e reognized
More informationNON-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 informationCS 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 informationComputing on rings by oblivious robots: a unified approach for different tasks
Computing on rings y olivious roots: unifie pproh for ifferent tsks Ginlorenzo D Angelo, Griele Di Stefno, Alfreo Nvrr, Niols Nisse, Krol Suhn To ite this version: Ginlorenzo D Angelo, Griele Di Stefno,
More informationSolutions 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 informationI 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 informationTotal score: /100 points
Points misse: Stuent's Nme: Totl sore: /100 points Est Tennessee Stte University Deprtment of Computer n Informtion Sienes CSCI 2710 (Trnoff) Disrete Strutures TEST 2 for Fll Semester, 2004 Re this efore
More informationNondeterministic Automata vs Deterministic Automata
Nondeterministi Automt vs Deterministi Automt We lerned tht NFA is onvenient model for showing the reltionships mong regulr grmmrs, FA, nd regulr expressions, nd designing them. However, we know tht n
More informationPAIR 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 information18.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 informationMonochromatic 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 informationLecture 11 Binary Decision Diagrams (BDDs)
C 474A/57A Computer-Aie Logi Design Leture Binry Deision Digrms (BDDs) C 474/575 Susn Lyseky o 3 Boolen Logi untions Representtions untion n e represente in ierent wys ruth tle, eqution, K-mp, iruit, et
More informationMomentum and Energy Review
Momentum n Energy Review Nme: Dte: 1. A 0.0600-kilogrm ll trveling t 60.0 meters per seon hits onrete wll. Wht spee must 0.0100-kilogrm ullet hve in orer to hit the wll with the sme mgnitue of momentum
More informationNow we must transform the original model so we can use the new parameters. = S max. Recruits
MODEL FOR VARIABLE RECRUITMENT (ontinue) Alterntive Prmeteriztions of the pwner-reruit Moels We n write ny moel in numerous ifferent ut equivlent forms. Uner ertin irumstnes it is onvenient to work with
More informationSOME INTEGRAL INEQUALITIES FOR HARMONICALLY CONVEX STOCHASTIC PROCESSES ON THE CO-ORDINATES
Avne Mth Moels & Applitions Vol3 No 8 pp63-75 SOME INTEGRAL INEQUALITIES FOR HARMONICALLY CONVE STOCHASTIC PROCESSES ON THE CO-ORDINATES Nurgül Okur * Imt Işn Yusuf Ust 3 3 Giresun University Deprtment
More informationParticle Physics. Michaelmas Term 2011 Prof Mark Thomson. Handout 3 : Interaction by Particle Exchange and QED. Recap
Prtile Physis Mihelms Term 2011 Prof Mrk Thomson g X g X g g Hnout 3 : Intertion y Prtile Exhnge n QED Prof. M.A. Thomson Mihelms 2011 101 Rep Working towrs proper lultion of ey n sttering proesses lnitilly
More informationCS 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 information6.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 informationGraph 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 informationLecture 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 informationCS261: 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 informationI1 = 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 informationMaximum 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 informationCARLETON 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 informationSolving the Class Diagram Restructuring Transformation Case with FunnyQT
olving the lss Digrm Restruturing Trnsformtion se with FunnyQT Tssilo Horn horn@uni-kolenz.e Institute for oftwre Tehnology, University Kolenz-Lnu, Germny FunnyQT is moel querying n moel trnsformtion lirry
More informationA Short Introduction to Self-similar Groups
A Short Introution to Self-similr Groups Murry Eler* Asi Pifi Mthemtis Newsletter Astrt. Self-similr groups re fsinting re of urrent reserh. Here we give short, n hopefully essile, introution to them.
More informationGraph 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 informationOn 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 informationAutomata and Regular Languages
Chpter 9 Automt n Regulr Lnguges 9. Introution This hpter looks t mthemtil moels of omputtion n lnguges tht esrie them. The moel-lnguge reltionship hs multiple levels. We shll explore the simplest level,
More informationIntroduction 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 informationA 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 informationOn 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 informationImplication Graphs and Logic Testing
Implition Grphs n Logi Testing Vishwni D. Agrwl Jmes J. Dnher Professor Dept. of ECE, Auurn University Auurn, AL 36849 vgrwl@eng.uurn.eu www.eng.uurn.eu/~vgrwl Joint reserh with: K. K. Dve, ATI Reserh,
More informationSubsequence Automata with Default Transitions
Susequene Automt with Defult Trnsitions Philip Bille, Inge Li Gørtz, n Freerik Rye Skjoljensen Tehnil University of Denmrk {phi,inge,fskj}@tu.k Astrt. Let S e string of length n with hrters from n lphet
More informationTechnische 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 informationDiscrete 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 informationIntermediate 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 informationa) 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 informationLecture 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 informationFinite State Automata and Determinisation
Finite Stte Automt nd Deterministion Tim Dworn Jnury, 2016 Lnguges fs nf re df Deterministion 2 Outline 1 Lnguges 2 Finite Stte Automt (fs) 3 Non-deterministi Finite Stte Automt (nf) 4 Regulr Expressions
More informationLet s divide up the interval [ ab, ] into n subintervals with the same length, so we have
III. INTEGRATION Eonomists seem muh more intereste in mrginl effets n ifferentition thn in integrtion. Integrtion is importnt for fining the epete vlue n vrine of rnom vriles, whih is use in eonometris
More informationLogic, Set Theory and Computability [M. Coppenbarger]
14 Orer (Hnout) Definition 7-11: A reltion is qusi-orering (or preorer) if it is reflexive n trnsitive. A quisi-orering tht is symmetri is n equivlene reltion. A qusi-orering tht is nti-symmetri is n orer
More informationF / x everywhere in some domain containing R. Then, + ). (10.4.1)
0.4 Green's theorem in the plne Double integrls over plne region my be trnsforme into line integrls over the bounry of the region n onversely. This is of prtil interest beuse it my simplify the evlution
More informationSection 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 informationArrow 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 informationAlgebra 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 informationXML and Databases. Exam Preperation Discuss Answers to last year s exam. Sebastian Maneth NICTA and UNSW
XML n Dtses Exm Prepertion Disuss Answers to lst yer s exm Sestin Mneth NICTA n UNSW CSE@UNSW -- Semester 1, 2008 (1) For eh of the following, explin why it is not well-forme XML (is WFC or the XML grmmr
More informationA 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 informationGRUPOS NANTEL BERGERON
Drft of Septemer 8, 2017 GRUPOS NANTEL BERGERON Astrt. 1. Quik Introution In this mini ourse we will see how to ount severl ttriute relte to symmetries of n ojet. For exmple, how mny ifferent ies with
More informationWelcome. Balanced search trees. Balanced Search Trees. Inge Li Gørtz
Welome nge Li Gørt. everse tehing n isussion of exerises: 02110 nge Li Gørt 3 tehing ssistnts 8.00-9.15 Group work 9.15-9.45 isussions of your solutions in lss 10.00-11.15 Leture 11.15-11.45 Work on exerises
More informationTIME AND STATE IN DISTRIBUTED SYSTEMS
Distriuted Systems Fö 5-1 Distriuted Systems Fö 5-2 TIME ND STTE IN DISTRIUTED SYSTEMS 1. Time in Distriuted Systems Time in Distriuted Systems euse eh mhine in distriuted system hs its own lok there is
More informationU Q W The First Law of Thermodynamics. Efficiency. Closed cycle steam power plant. First page of S. Carnot s paper. Sadi Carnot ( )
0-9-0 he First Lw of hermoynmis Effiieny When severl lterntive proesses involving het n work re ville to hnge system from n initil stte hrterize y given vlues of the mrosopi prmeters (pressure p i, temperture
More informationSection 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 informationArrow s Impossibility Theorem
Rep Fun Gme Properties Arrow s Theorem Arrow s Impossiility Theorem Leture 12 Arrow s Impossiility Theorem Leture 12, Slide 1 Rep Fun Gme Properties Arrow s Theorem Leture Overview 1 Rep 2 Fun Gme 3 Properties
More informationarxiv: 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 informationCOMPARISON OF DIFFERENT APPROXIMATIONS OF FUZZY NUMBERS
Interntionl Journl of Fuzzy Loi Systems (IJFLS) Vol.5 No. Otoer 05 COMPRISON OF DIFFERENT PPROXIMTIONS OF FUZZY NUMBERS D. Stephen Dinr n K.Jivn PG n Reserh Deprtment of Mthemtis T.B.M.L. Collee Poryr
More information1B40 Practical Skills
B40 Prcticl Skills Comining uncertinties from severl quntities error propgtion We usully encounter situtions where the result of n experiment is given in terms of two (or more) quntities. We then need
More informationp-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 informationLaboratory for Foundations of Computer Science. An Unfolding Approach. University of Edinburgh. Model Checking. Javier Esparza
An Unfoling Approh to Moel Cheking Jvier Esprz Lbortory for Fountions of Computer Siene University of Einburgh Conurrent progrms Progrm: tuple P T 1 T n of finite lbelle trnsition systems T i A i S i i
More informationA Disambiguation Algorithm for Finite Automata and Functional Transducers
A Dismigution Algorithm for Finite Automt n Funtionl Trnsuers Mehryr Mohri Cournt Institute of Mthemtil Sienes n Google Reserh 51 Merer Street, New York, NY 1001, USA Astrt. We present new ismigution lgorithm
More informationAlgorithm Design and Analysis
Algorithm Design nd Anlysis LECTURE 5 Supplement Greedy Algorithms Cont d Minimizing lteness Ching (NOT overed in leture) Adm Smith 9/8/10 A. Smith; sed on slides y E. Demine, C. Leiserson, S. Rskhodnikov,
More informationAP 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 informationGeodesics 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 informationNEW CIRCUITS OF HIGH-VOLTAGE PULSE GENERATORS WITH INDUCTIVE-CAPACITIVE ENERGY STORAGE
NEW CIRCUITS OF HIGH-VOLTAGE PULSE GENERATORS WITH INDUCTIVE-CAPACITIVE ENERGY STORAGE V.S. Gordeev, G.A. Myskov Russin Federl Nuler Center All-Russi Sientifi Reserh Institute of Experimentl Physis (RFNC-VNIIEF)
More informationANALYSIS AND MODELLING OF RAINFALL EVENTS
Proeedings of the 14 th Interntionl Conferene on Environmentl Siene nd Tehnology Athens, Greee, 3-5 Septemer 215 ANALYSIS AND MODELLING OF RAINFALL EVENTS IOANNIDIS K., KARAGRIGORIOU A. nd LEKKAS D.F.
More informationPart 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 informationAlgorithms & Data Structures Homework 8 HS 18 Exercise Class (Room & TA): Submitted by: Peer Feedback by: Points:
Eidgenössishe Tehnishe Hohshule Zürih Eole polytehnique fédérle de Zurih Politenio federle di Zurigo Federl Institute of Tehnology t Zurih Deprtement of Computer Siene. Novemer 0 Mrkus Püshel, Dvid Steurer
More information= state, a = reading and q j
4 Finite Automt CHAPTER 2 Finite Automt (FA) (i) Derterministi Finite Automt (DFA) A DFA, M Q, q,, F, Where, Q = set of sttes (finite) q Q = the strt/initil stte = input lphet (finite) (use only those
More informationThe University of Nottingham SCHOOL OF COMPUTER SCIENCE A LEVEL 2 MODULE, SPRING SEMESTER MACHINES AND THEIR LANGUAGES ANSWERS
The University of ottinghm SCHOOL OF COMPUTR SCIC A LVL 2 MODUL, SPRIG SMSTR 2015 2016 MACHIS AD THIR LAGUAGS ASWRS Time llowed TWO hours Cndidtes my omplete the front over of their nswer ook nd sign their
More informationActivities. 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 informationCHENG Chun Chor Litwin The Hong Kong Institute of Education
PE-hing Mi terntionl onferene IV: novtion of Mthemtis Tehing nd Lerning through Lesson Study- onnetion etween ssessment nd Sujet Mtter HENG hun hor Litwin The Hong Kong stitute of Edution Report on using
More informationAP CALCULUS Test #6: Unit #6 Basic Integration and Applications
AP CALCULUS Test #6: Unit #6 Bsi Integrtion nd Applitions A GRAPHING CALCULATOR IS REQUIRED FOR SOME PROBLEMS OR PARTS OF PROBLEMS IN THIS PART OF THE EXAMINATION. () The ext numeril vlue of the orret
More information( x) ( ) takes at the right end of each interval to approximate its value on that
III. INTEGRATION Economists seem much more intereste in mrginl effects n ifferentition thn in integrtion. Integrtion is importnt for fining the expecte vlue n vrince of rnom vriles, which is use in econometrics
More informationMaximizing Maximal Angles for Plane Straight-Line Graphs
Mximizing Mximl Angles for Plne Stright-Line Grphs Oswin Aihholzer 1, Thoms Hkl 1, Mihel Hoffmnn 2, Clemens Huemer 3, Attil Pór 4, Frniso Sntos 5, Bettin Spekmnn 6, n Birgit Vogtenhuer 1 1 Institute for
More information