A Transformation Based Algorithm for Reversible Logic Synthesis

Size: px
Start display at page:

Download "A Transformation Based Algorithm for Reversible Logic Synthesis"

Transcription

1 2.1 A Trnsformtion Bsed Algorithm for Reversile Logi Synthesis D. Mihel Miller Dept. of Computer Siene University of Vitori Vitori BC V8W 3P6 Cnd mmiller@sr.uvi. Dmitri Mslov Fulty of Computer Siene University of New Brunswik Frederiton NB E3B 5A3 Cnd dmslov@un. Gerhrd W. Duek Fulty of Computer Siene University of New Brunswik Frederiton NB E3B 5A3 Cnd gduek@un. ABSTRACT A digitl omintionl logi iruit is reversile if it mps eh input pttern to unique output pttern. Suh iruits re of interest in quntum omputing optil omputing nnotehnology nd low-power CMOS design. Synthesis pprohes re not well developed for reversile iruits even for smll numers of inputs nd outputs. In this pper trnsformtion sed lgorithm for the synthesis of suh reversile iruit in terms of n n Toffoli gtes is presented. Initilly iruit is onstruted y single pss through the speifition with miniml lookhed nd no k-trking. Redution rules re then pplied y simple templte mthing. The method produes ner-optiml results for 3-input iruits nd lso produes very good results for lrger prolems. Ctegories nd Sujet Desriptors M1.8 [Design Methodologies]: Logi Design Generl Terms Design Theory Keywords Reversile Logi Quntum Ciruits Templtes Minimiztion 1. INTRODUCTION Lnduer [8] proved tht using trditionl irreversile logi gtes neessrily leds to power dissiption regrdless of the underlying tehnology. Further Bennett [1] showed tht for power not to e dissipted in n ritrry iruit it must e uilt from reversile gtes. Hene there re ompelling resons to onsider iruits omposed of reversile Permission to mke digitl or hrd opies of ll or prt of this work for personl or lssroom use is grnted without fee provided tht opies re not mde or distriuted for profit or ommeril dvntge nd tht opies er this notie nd the full ittion on the first pge. To opy otherwise to repulish to post on servers or to redistriute to lists requires prior speifi permission nd/or fee. DAC 23 June Anheim Cliforni USA. Copyright 23 ACM /3/6...$5.. gtes. Reversile iruits re of prtiulr interest in lowpower CMOS design [17] optil omputing [7] quntum omputing [14] nd nnotehnology [1]. An n n Toffoli gte [19] hs n 1 ontrol lines whih pss through the gte unltered nd trget line on whih the vlue is inverted if ll the ontrol lines hve vlue 1. In this pper we present fst synthesis lgorithm whih epts reversile funtion speifition nd produes reversile iruit omposed of n n Toffoli gtes [19]. The synthesis of reversile iruits differs signifintly from synthesis using trditionl irreversile gtes. Approhes hve een presented in [ ]. For mny of those methods extensive serhing is required. A key ftor in this ontriution is tht we void extensive serhing nd therefore the method hs greter potentil to e extended to funtions with more thn just few inputs nd outputs. We first give si nive lgorithm whih synthesizes the iruit in one diretion. We show tht this lgorithm will lwys omplete without introduing unneessry grge outputs nd tht the iruit will hve t most (m 1)2 m +1 gtes. Output permuttion nd n heuristi for minimizing gte width re then introdued. Next we show tht the pproh n e pplied in oth diretions simultneously with gtes eing identified t either the input or the output end of the iruit whihever offers est dvntge s the synthesis proeeds. Trnsformtions to redue the numer of gtes re pplied using templte mthing. Our set of trnsformtions is n expnsion of the those used in [18] nd [5]. Neessry kground is reviewed in Setion 2. Our synthesis pproh is desried in Setion 3 nd gte trnsformtion y templte mthing is disussed in Setion 4. Experimentl results re presented in Setion 5. By onsidering ll 8! 3 3 reversile funtions we show tht our lgorithm produes results quite lose to the optiml iruit sizes found y exhustive serh in [18]. We lso demonstrte y exmples tht our method n e pplied to lrger funtions nd to the reliztion of irreversile funtions. Setion 6 onludes the pper with oservtions nd suggestions for further reserh. 2. BACKGROUND Definition 1. An m-input m-output totlly-speified Boolen funtion f(x) X = {x 1 x 2... x m} is reversile if it mps eh input ssignment to unique output ssignment. 318

2 Tle 1: 3 3 Reversile Logi Funtion. x 1 x 1 ' x 1 x 2 x 1 ' x 2 ' x 1 x 2 x 3 () () () Figure 1: () T OF 1(x 1) () T OF 2(x 1 x 2) nd () T OF 3(x 1 x 2 x 3) Toffoli Gtes. A reversile funtion n e written s stndrd truth tle s in Tle 1 nd n lso e viewed s ijetive mpping of the set of integers m 1 onto itself. Hene reversile funtion n e defined s n ordered set of integers orresponding to the right side of the tle e.g. { } for the funtion in Tle 1. We n thus interpret the funtion over the integers s f() = 7 f(1) = 1 f(2) = 4 et. A reversile funtion is of ourse permuttion nd n e expressed s set of disjoint yles s done in [18] ut we do not follow tht pproh here. Definition 2. An n-input n-output gte is reversile if it relizes reversile funtion. A vriety of reversile gtes hve een proposed [19 3 4]. Here we use the fmily of Toffoli gtes [19] defined s follows: Definition 3. An n n Toffoli gte psses the first n 1 lines (ontrol) through unhnged nd inverts the n th line (trget) if the ontrol lines re ll 1. We shll write n n n Toffoli gte s T OF n(x 1 x 2... x n) where x n is the trget line. Using the prime symol to denote the vlue of line fter pssing through the gte we hve x i = x i i < n (1) x n = x 1x 2...x n 1 x n (2) T OF 1(x 1) is the speil se where there re no ontrol inputs so x 1 is lwys inverted i.e. it is NOT gte. T OF 2(x 1 x 2) hs een termed Feynmn [3] or ontrolled- NOT gte (CNOT). T OF 3(x 1 x 2 x 3) is often referred to simply s Toffoli gte [19]. These gtes re depited s shown in Figure 1. Definition 4. A SWAP gte exhnges pir of inputs. Definition 5. Given two it strings p nd q the Hmming distne etween them denoted δ(p q) is the numer of positions for whih p nd q differ. x 1 ' x 2 ' x 3 ' Definition 6. Given the funtion f(x) the omplexity C(f) is defined s the the sum of the individul Hmming distnes over the 2 m input-output ptterns. For exmple the vlue of C(f) for the funtion in Tle 1 is THE ALGORITHM Applying Toffoli gte to the inputs or the outputs of reversile funtion lwys yields reversile funtion. The synthesis prolem is to find sequene of Toffoli gtes whih trnsforms given reversile funtion to the identity funtion. As gtes n e pplied either to the inputs or the outputs the synthesis n proeed from outputs to inputs inputs to outputs or s we show in Setion 3.3 in oth diretions simultneously. 3.1 Bsi Algorithm To egin we present si nive nd greedy lgorithm whih identifies Toffoli gtes only on the output side of the speifition. Consider reversile funtion speified s mpping over { m 1}. Bsi Algorithm Step 1: If f() invert the outputs orresponding to 1-its in f(). Eh inversion requires T OF 1 gte. The trnsformed funtion f + hs f + () =. Step 2: Consider eh i in turn for 1 i < 2 m 1 letting f + denote the urrent reversile speifition. If f + (i) = i no trnsformtion nd hene no Toffoli gte is required for this i. Otherwise gtes re required to trnsform the speifition to new speifition with f ++ (i) = i. The required gtes must mp f + (i) i. Let p e the it string with 1 s in ll positions where the inry expnsion of i is 1 while the expnsion of f + (i) is. These re the 1 its tht must e dded in trnsforming f + (i) i. Conversely let q e the it string with 1 s in ll positions where the expnsion of i is while the expnsion of f + (i) is 1. q identifies the its to e removed in the trnsformtion. For eh p j = 1 pply the Toffoli gte with ontrol lines orresponding to ll outputs in positions where the expnsion of i is 1 nd whose trget line is the output in position j. Then for eh q k = 1 pply the Toffoli gte with ontrol lines orresponding to ll outputs in positions where the expnsion of f + (i) is 1 nd whose trget line is the output in position k. For eh 1 i < 2 m 1 Step 2 trnsforms f + (i) i y pplying the speified sequene of Toffoli gtes. Sine we onsider the i in order nd step 1 hndles the se for we know tht f + (j) = j j < i. The importne of this is tht it shows tht none of the Toffoli gtes generted in Step 2 ffet f + (j) j < i. In other words one row of the speifition is trnsformed to the orret vlue it will remin t tht vlue regrdless of the trnsforms required for lter rows. Clerly the finl row of the speifition never requires trnsformtion s it is orret y virtue of the orret plement of the preeding 2 m 1 vlues. 319

3 (i) (ii) (iii) (iv) (v) Tle 2: Exmple of pplying the si lgorithm. (i) (ii) (iii) (iv) Tle 3: Exmple of pplying the idiretionl lgorithm. Figure 2: Ciruit for the funtion shown in Tle 2. A B Tle 2 illustrtes the pplition of the si lgorithm. (i) is the given speifition. Step 1 identifies the pplition of T OF 1( ) giving (ii). At this point f + (i) i 4 re s required. Mpping f + (5) 5 requires T OF 3( ) to hnge the rightmost position to 1 (iii) nd T OF 3( ) to remove the entre 1 (iv). Lstly T OF 3( ) is gin required this time to mp f + (6) 6. Note tht the gtes re identified in order from the output side to the input side. The orresponding iruit is shown in Figure 2. The si lgorithm is strightforwrd nd esily implemented. Its lgorithmi omplexity is n2 n. It is lso esily seen tht it will lwys terminte suessfully with iruit for the given speifition. However it is possile to onstrut funtion for ny m tht requires (m 1)2 m + 1 gtes. For m = 3 this is the funtion shown in Tle 1. We next onsider numer of pprohes to redue the size of the iruit produed. 3.2 Output Permuttion nd Control Input Redution The si lgorithm mps eh output k to the orresponding input. Often this is not the est mpping. For funtions with up to 8 or 9 inputs it is prtil to try ll m! output permuttions. Permuting the outputs requires ertin numer of interhnges whih in some tehnologies my require expliit SWAP gtes. The si lgorithm nively ssigns the mximum numer of ontrol lines to eh Toffoli gte. Often suset of those ontrol lines will suffie. The requirement is tht the gte does not ffet row erlier in the speifition. This is esily ounted for sine the set of ontrol lines must either ontin line tht hs not ppered s 1 in n erlier row of the speifition or must ontin ll lines tht hve ppered s 1 s in rows erlier in the speifition. Given tht the revised lgorithm insted of using the ontrol lines identified y the si lgorithm onsiders ll vlid susets of those lines nd hooses the ontrol tht minimizes the omplexity C(f + ) of the resulting speifition. Rell tht the omplexity C is the totl Hmming distne etween the input nd output sides of the speifition so this heuristi is hoosing the gte tht moves the speifition furthest towrds the identity speifition. In se of tie the smll- Figure 3: Ciruit for the funtion shown in Tle 3. est set of ontrol lines is used nd within tht the hoie is ritrry. 3.3 Bidiretionl Algorithm As desried so fr the lgorithm produes the iruit y seleting Toffoli gtes mnipulting only the output side of the speifition. Sine the speifition is reversile one ould onsider the inverse speifition deriving reverse iruit nd then hoose whihever is the smller. A etter pproh is to pply the method in oth diretions simultneously hoosing to dd gtes t the input side or the output side. To see how this works onsider the initil reversile speifition in Tle 3 olumn (i). The si lgorithm would require tht we invert eh of nd to mke f + () =. The lterntive is to invert i.e. to pply the gte T OF 1() to the input side. Applying this gte nd then reordering the speifition so tht the input side is gin in stndrd truth-tle order yields the speifition in (ii). From the output side we would next hve to mp f + (1) = 7 1. However from the input side we n omplish wht is required y interhnging rows 1 nd 3 whih is done y pplying the gte T OF 2( ). Doing so nd reordering the input side into stndrd order yields the speifition in (iii). At this point seletion from the output side nd the input side identify the sme gte T OF 3( ) (when expressed in terms of the input lines) nd the iruit is done (iv). The result uses three gtes (shown in Figure 3 A) wheres pprohing the prolem from the output side lone requires three NOT gtes just to hndle f() nd seven gtes in totl (shown in Figure 3 B). In generl when f + (i) i the hoie is () to pply Toffoli gtes to the outputs to mp f + (i) i or () to pply Toffoli gtes to the inputs to mp j i where j is suh tht f + (j) = i. Sine we onsider the i in order j > i nd must lwys exist. Also the sme rules for identifying the ontrol lines inluding redution desried ove pply. Our idiretionl lgorithm hooses () if δ(i f + (i)) δ(i j) nd () otherwise. We thus se the hoie on the numer of gtes required nd not their width or how losely they mp 32

4 the speifition to the identity. 4. TEMPLATE MATCHING The iruits produed y the lgorithm s desried thus fr frequently hve gte sequenes tht n e redued. For exmple the sequene T OF 2( ) T OF 1() T OF 1() n e repled y the sequene T OF 1() T OF 2( ). We hve implemented templte driven redution method. A templte onsists of sequene of gtes to e mthed nd the sequene of gtes to e sustituted when mth is found. The lines in the templte re generi nd must e ssoited to rel lines in the iruit with the ssoition pplied onsistently ross the templte. This is omplished y first ssoiting the widest trget templte gte with gte in the iruit nd then serhing the iruit for the other trget gtes using the line ssoition derived from the widest gte. Note tht sine the order of the ontrol lines to Toffoli gte is immteril! line ssoitions must e onsidered where is the numer of ontrol lines for the widest gte. Our templte mthing proedure looks for the trget gtes inluding the initil mth to the widest gte ross the entire iruit. If ll trget gtes re found it ttempts to move the gtes so tht they re djent either mthing the templte in the forwrd or reverse diretion. If this n e done the mthed gtes re repled with the new gtes speified y the templte. For reverse mth the new gtes re sustituted in reverse order. When moving the trget gtes the mthing proedure tkes ount of Property 1 whih follows diretly from the definition of n n Toffoli gtes. If two gtes n not e interhnged euse they don t stisfy this property nd tht prohiits proper djent ordering of the trget gtes for mth the templte eing onsidered is not pplile. Property 1. Two gtes T OF k (x 1 x 2... x k 1 x k ) nd T OF l (y 1 y 2... y l 1 y l ) djent in iruit n e interhnged iff x k {y 1 y 2... y l 1 } nd y l {x 1 x 2... x k 1 }. Our mthing proedure tries ll pproprite sets of trget gtes for eh templte. When templte mth is found the sustitution ditted y the templte nd the proess restrts sine sustitution my men tht templte rejeted erlier eomes pplile. Figure 4 shows the urrent templte set employed y our proedure. Templtes nd were introdued in [5]. We hve lssified the templtes s follows (lsses re seprted y horizontl lines): (1) two inputs involving SWAPs; (2) two input gte redutions without SWAPs; (3) trnsformtion rule 3 from [5]; (4) symmetri templtes; (5) ontrolled SWAP (equivlent to the Fredkin gte). It n e shown tht generliztion of lsses (3) nd (4) genertes ll templtes with n inputs nd 3 gtes tht result in redution in the numer of gtes. 5. EXPERIMENTAL RESULTS Tle 5 shows the results of pplying vrious versions of our lgorithm to ll 8! = reversile funtions. The four senrios re: Figure 4: Templtes with 2 or 3 inputs. () the si output trnsformtions lgorithms; () () plus Hmming distne sed look-hed; () () plus idiretionl trnsformtion; (d) () plus templte pplition. For eh senrio we show the numer of funtions for eh gte ount the verge numer of gtes required nd the totl time to pply our method for the 8! funtions on PC with 75MHz Pentium III with 256 M RAM. Column (e) in Tle 5 shows the optiml results reported in [18]. Tht work used depth-first serh with itertive deepening to onstrut optiml gte ount iruits for n = 3. However this pproh does not sle-up to lrger funtions. For exmple while the optiml results for n = 3 were found in 15 se. using PC with 2 GHz Pentium-4 Xeon the uthors report tht 4 4 reversile funtion requiring 8 or less gtes n e synthesized in less thn seond wheres the synthesis requires more thn 1.5 hours when 9 or more gtes re required. As we will show elow y exmple our pproh is pplile to lrger funtions in resonle time. Tle 5 ompres the dvntges of the vrious refinements to our method. The full idiretionl lgorithm with output permuttion ontrol input redution nd templte mthing produes results quite omprle to the optiml results. The tle does not indite the true dvntge of ontrol input redution. Overll the verge gte ount is essentilly the sme s without this refinement ut the gtes require fewer inputs for mny iruits. Alterntive heuristis for reduing the gte input ount need to e onsidered. An irreversile funtion n e relized using reversile gtes [14]. Grge outputs must e dded s neessry so tht the output ptterns re distint nd onstnt inputs must e dded s neessry so tht the funtion hs the sme numer of inputs nd outputs. This n e viewed s extending the irreversile funtion speifition to lrger reversile one

5 d (onstnt ) A B C Figure 5: Full dder. grge propogte Definition 7. The mximum output pttern multipliity of multiple-output Boolen funtion is the mximum numer of input ssignments whih yield the sme output pttern. Equivlently it is the mximum numer of times single output pttern ppers in the truth tle speifition of the funtion. As shown in [9] the minimum numer of grge outputs required is log 2 q where q is the mximum output pttern multipliity of the irreversile funtion. Optiml definition of the grge outputs is diffiult nd open prolem. At present we pre-ssign them using the pproh desried in [12]. Often they n simply e set equl to input vriles. At other times we use XOR funtions involving susets of the inputs. Constnt inputs when required re defined so tht the iruit yields the required funtionlity when they re set to. At present our pproh does not hndle dont-res so the reversile speifition derived from the irreversile speifition must e totlly-speified. This is most esily omplished y ensuring the output ptterns re unique for the setion of the speifition for ll onstnt inputs nd then ompleting the speifition y repling ertin outputs with the XOR of the output nd one of the onstnt inputs. Often fter n initil irreversile speifition is onstruted nd iruit found y pplying our lgorithm it is pprent from the iruit how to reple ertin of the grge outputs with lterntive definitions so tht some gtes in the iruit will e unneessry. Also ll SWAP gtes generted mongst grge outputs re unneessry nd ll gtes whih simply omplete the reliztion of grge output (their trget is not used s ontrol for gte required to relize one of the rel outputs) n e disrded. Both these redutions of ourse redefine the grge speifition. First we onsider 3-input full dder whih genertes sum rry nd propgte s used in [2]. One grge output is required sine the mximum output pttern multipliity of the full dder is 2. The grge output is set to n input (from the symmetry of the dder it does not mtter whih). A single onstnt input (d) is required. The omplete reversile speifition is d = d rry( ) = sum( ) = = Our lgorithm finds the 5 gte reliztion shown in Figure 5 () in.7 seonds. We ompre this to previously otined results. A reliztion with 5 Fredkin gtes is shown in [2]. The omplexity of the Fredkin gte is similr to the 3 3 Toffoli gte [15]. However our reliztion hs single grge output wheres the iruit in [2] hs 3. This is sum rry d e f (=) g(=) Figure 6: Ciruit for rd53. signifint dvntge if the iruit is implemented using quntum gtes. We now show tht our dder iruit n e optimized. Note tht the gtes in Figure 5 () n e rerrnged y using Property 1 s shown in (). The three shded gtes in Figure 5 () re generliztion of templte 3.2. When it is repled we hve iruit with 4 gtes shown in (). Sine we hve not yet implemented the generliztion of templtes with n > 3 our progrm ws not le to find this result. This limittion is due to the set of templtes urrently used nd is not limittion of the templte mthing pproh. Our finl result hs the sme gtes s the dder otined in [6]. As finl exmple we onsider the enhmrk funtion rd53. This funtion hs 5 inputs nd 3 outputs. The outputs re the inry enoding of the weight of the input pttern i.e. the numer of 1 s in the input pttern. For exmple input yields output input 1 yields output 1 nd input yields output 11. The mximum output pttern multipliity is 1 so t lest 4 grge outputs must e dded giving totl of t lest 7 outputs. Tht in turn requires two inputs e dded. Initilly the reversile speifition given in [12] ws used. The grge outputs were susequently modified to remove unneessry gtes. Our lgorithm produes iruit with 12 gtes in 1.84 seonds of CPU time. (A SWAP produed y the progrm ws removed sine the funtion is symmetri.) This is etter thn the iruit with 14 gtes proposed in [13]. Surprisingly this result is otined when using templtes with mximum input of 3. It will e interesting to see if templtes with more inputs n further redue this iruit. 6. CONCLUSIONS A simple lgorithm for the synthesis of reversile iruit omposed of generlized Toffoli gtes hs een presented. The si lgorithm will lwys terminte with vlid iruit. Heuristi pprohes hve een given to redue the size of the iruits produed through output permuttion nd Toffoli gte ontrol line redution. The mjor enhnement to the si lgorithm is method y whih gtes n e identified t either end of the speifition nd the iruit synthesized in oth diretions simultneously. An exhustive exmintion for m = 3 hs shown our pproh yields results quite omprle to the optiml gte ounts. Exmples were given to show our pproh n e pplied to lrger funtions. The ft tht we urrently onsider ll output permuttions limits our methods to prolemswith 8 or 9 inputs nd outputs. We re studying methods for seleting good ' ' ' d' h h h

6 Size () () () (d) (e) (f) vg. gtes Time (se.) (): nive lgorithm (): () plus output permuttion (): () plus ontrol input redution (d): () idiretionl redution (e): (d) plus templte pplition (f): optiml sizes [18] Tle 4: Numer of reversile funtions using speified numer of gtes for m = 3. permuttion sed on the initil funtion speifition. We re lso onsidering extensions to our method to llow don tre onditions. Coupled with tht we re looking t wys of dynmilly ssigning the grge outputs required for irreversile speifitions rther thn the pre-ssignment method we urrently use. We re studying the extension of templtes to n > 3. In prtiulr we re looking t lsses of templtes nd generi definitions of those lsses to void the templte speifition set eoming overly lrge nd degrding the performne of the pproh. Finlly we re looking t wys to diretly inorporte Fredkin gtes [4] whih hve similr ost to Toffoli gtes in some tehnologies ut different expressive power. A Fredkin gte is in ft ontrolled-swp nd hs the sme reltion to simple SWAP gte tht Toffoli gte hs to simple NOT gte. Hene method to inorporte Fredkin gtes will lso llow us to mke etter use of SWAP gtes throughout the synthesis proess. 7. REFERENCES [1] C. Bennett. Logil reversiility of omputtion. I.B.M. J. Res. Dev. 17: [2] J. W. Brue M. A. Thornton L. Shivkumrih P. S. Kokte nd X. Li. Effiient dder iruits sed on onservtive reversile logi gte. In IEEE Symposium on VLSI pges April 22. [3] R. Feynmn. Quntum mehnil omputers. Opti News 11: [4] E. Fredkin nd T. Toffoli. Conservtive logi. Interntionl Journl of Theoretil Physis 21: [5] K. Iwm Y. Kmyshi nd S. Ymshit. Trnsformtion rules for designing not-sed quntum iruits. In Proeedings of the Design Automtion Conferene New Orlens Louisin USA June [6] A. Khlopotine M. Perkowski nd P. Kerntopf. Reversile logi synthesis y itertive ompositions. Interntionl Workshop on Logi Synthesis 22. [7] E. Knill R. Lflmme nd G. J. Milurn. A sheme for effiient quntum omputtion with liner optis. Nture pges Jn. 21. [8] R. Lnduer. Irreversiility nd het genertion in the omputing proess. IBM J. Res. 5: [9] D. Mslov nd G. W. Duek. Grge in reversile design of multiple output funtions. In 6th Interntionl Symposium on Representtions nd Methodology of Future Computing Tehnologies pges Mrh 23. [1] R. C. Merkle. Two types of mehnil reversile logi. Nnotehnology 4: [11] D. M. Miller. Spetrl nd two-ple deomposition tehniques in reversile logi. In Midwest Symposium on Ciruits nd Systems Aug. 22. [12] D. M. Miller nd G. W. Duek. Spetrl tehniques for reversile logi synthesis. In 6th Interntionl Symposium on Representtions nd Methodology of Future Computing Tehnologies Mrh 23. [13] A. Mishhenko nd M. Perkowski. Logi synthesis of reversile wve sdes. In Interntionl Workshop on Logi Synthesis June 22. [14] M. Nielsen nd I. Chung. Quntum Computtion nd Quntum Informtion. Cmridge University Press 2. [15] M. Perkowski nd et l. A hierrhil pproh to omputer-ided design of quntum iruits. Preprint 22. [16] M. Perkowski P. Kerntopf A. Buller M. Chrznowsk-Jeske A. Mishhenko X. Song A. Al-Rdi L. Joswik A. Coppol nd B. Mssey. Regulrity nd symmetry s se for effiient reliztion of reversile logi iruits. In Interntionl Workshop on Logi Synthesis 21. [17] G. Shrom. Ultr-Low-Power CMOS Tehnology. PhD thesis Tehnishen Universität Wien June [18] V. V. Shende A. K. Prsd I. L. Mrkov nd J. P. Hyes. Reversile logi iruit synthesis. In ICCAD pges Sn Jose Cliforni USA Nov [19] T. Toffoli. Reversile omputing. Teh memo MIT/LCS/TM-151 MIT L for Comp. Si

Dynamic Template Matching with Mixed-polarity Toffoli Gates

Dynamic Template Matching with Mixed-polarity Toffoli Gates Dynmi Templte Mthing with Mixed-polrity Toffoli Gtes Md Mzder Rhmn 1, Mthis Soeken 2,3, nd Gerhrd W. Duek 1 1 Fulty of Computer Siene, University of New Brunswik, Cnd 2 Deprtment of Mthemtis nd Computer

More information

Engr354: Digital Logic Circuits

Engr354: Digital Logic Circuits Engr354: Digitl Logi Ciruits Chpter 4: Logi Optimiztion Curtis Nelson Logi Optimiztion In hpter 4 you will lern out: Synthesis of logi funtions; Anlysis of logi iruits; Tehniques for deriving minimum-ost

More information

Unit 4. Combinational Circuits

Unit 4. Combinational Circuits Unit 4. Comintionl Ciruits Digitl Eletroni Ciruits (Ciruitos Eletrónios Digitles) E.T.S.I. Informáti Universidd de Sevill 5/10/2012 Jorge Jun 2010, 2011, 2012 You re free to opy, distriute

More information

where the box contains a finite number of gates from the given collection. Examples of gates that are commonly used are the following: a b

where the box contains a finite number of gates from the given collection. Examples of gates that are commonly used are the following: a b CS 294-2 9/11/04 Quntum Ciruit Model, Solovy-Kitev Theorem, BQP Fll 2004 Leture 4 1 Quntum Ciruit Model 1.1 Clssil Ciruits - Universl Gte Sets A lssil iruit implements multi-output oolen funtion f : {0,1}

More information

Project 6: Minigoals Towards Simplifying and Rewriting Expressions

Project 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 information

Nondeterministic Automata vs Deterministic Automata

Nondeterministic 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 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

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

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

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

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

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

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

CS311 Computational Structures Regular Languages and Regular Grammars. Lecture 6

CS311 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 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

Lecture Notes No. 10

Lecture Notes No. 10 2.6 System Identifition, Estimtion, nd Lerning Leture otes o. Mrh 3, 26 6 Model Struture of Liner ime Invrint Systems 6. Model Struture In representing dynmil system, the first step is to find n pproprite

More information

Matrices SCHOOL OF ENGINEERING & BUILT ENVIRONMENT. Mathematics (c) 1. Definition of a Matrix

Matrices SCHOOL OF ENGINEERING & BUILT ENVIRONMENT. Mathematics (c) 1. Definition of a Matrix tries Definition of tri mtri is regulr rry of numers enlosed inside rkets SCHOOL OF ENGINEERING & UIL ENVIRONEN Emple he following re ll mtries: ), ) 9, themtis ), d) tries Definition of tri Size of tri

More information

Metodologie di progetto HW Technology Mapping. Last update: 19/03/09

Metodologie di progetto HW Technology Mapping. Last update: 19/03/09 Metodologie di progetto HW Tehnology Mpping Lst updte: 19/03/09 Tehnology Mpping 2 Tehnology Mpping Exmple: t 1 = + b; t 2 = d + e; t 3 = b + d; t 4 = t 1 t 2 + fg; t 5 = t 4 h + t 2 t 3 ; F = t 5 ; t

More information

The University of Nottingham SCHOOL OF COMPUTER SCIENCE A LEVEL 2 MODULE, SPRING SEMESTER MACHINES AND THEIR LANGUAGES ANSWERS

The 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 information

Synthesis, testing and tolerance in reversible logic

Synthesis, testing and tolerance in reversible logic Universit of Lethridge Reserh Repositor OPUS Theses http://opus.uleth. Arts nd Siene, Fult of 2017 Snthesis, testing nd tolerne in reversile logi Nshir, Md Asif Lethridge, Alt. : Universit of Lethridge,

More information

Linear Algebra Introduction

Linear Algebra Introduction Introdution Wht is Liner Alger out? Liner Alger is rnh of mthemtis whih emerged yers k nd ws one of the pioneer rnhes of mthemtis Though, initilly it strted with solving of the simple liner eqution x +

More information

Propositional models. Historical models of computation. Application: binary addition. Boolean functions. Implementation using switches.

Propositional models. Historical models of computation. Application: binary addition. Boolean functions. Implementation using switches. Propositionl models Historil models of omputtion Steven Lindell Hverford College USA 1/22/2010 ISLA 2010 1 Strt with fixed numer of oolen vriles lled the voulry: e.g.,,. Eh oolen vrile represents proposition,

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

Appendix C Partial discharges. 1. Relationship Between Measured and Actual Discharge Quantities

Appendix C Partial discharges. 1. Relationship Between Measured and Actual Discharge Quantities Appendi Prtil dishrges. Reltionship Between Mesured nd Atul Dishrge Quntities A dishrging smple my e simply represented y the euilent iruit in Figure. The pplied lternting oltge V is inresed until the

More information

= state, a = reading and q j

= 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 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

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

Algorithms & Data Structures Homework 8 HS 18 Exercise Class (Room & TA): Submitted by: Peer Feedback by: Points:

Algorithms & 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

For a, b, c, d positive if a b and. ac bd. Reciprocal relations for a and b positive. If a > b then a ab > b. then

For a, b, c, d positive if a b and. ac bd. Reciprocal relations for a and b positive. If a > b then a ab > b. then Slrs-7.2-ADV-.7 Improper Definite Integrls 27.. D.dox Pge of Improper Definite Integrls Before we strt the min topi we present relevnt lger nd it review. See Appendix J for more lger review. Inequlities:

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

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

Algorithm Design and Analysis

Algorithm 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 information

April 8, 2017 Math 9. Geometry. Solving vector problems. Problem. Prove that if vectors and satisfy, then.

April 8, 2017 Math 9. Geometry. Solving vector problems. Problem. Prove that if vectors and satisfy, then. pril 8, 2017 Mth 9 Geometry Solving vetor prolems Prolem Prove tht if vetors nd stisfy, then Solution 1 onsider the vetor ddition prllelogrm shown in the Figure Sine its digonls hve equl length,, the prllelogrm

More information

NEW CIRCUITS OF HIGH-VOLTAGE PULSE GENERATORS WITH INDUCTIVE-CAPACITIVE ENERGY STORAGE

NEW 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 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

Finite State Automata and Determinisation

Finite 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 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

Discrete Structures, Test 2 Monday, March 28, 2016 SOLUTIONS, VERSION α

Discrete Structures, Test 2 Monday, March 28, 2016 SOLUTIONS, VERSION α Disrete Strutures, Test 2 Mondy, Mrh 28, 2016 SOLUTIONS, VERSION α α 1. (18 pts) Short nswer. Put your nswer in the ox. No prtil redit. () Consider the reltion R on {,,, d with mtrix digrph of R.. Drw

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

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

Review of Gaussian Quadrature method

Review of Gaussian Quadrature method Review of Gussin Qudrture method Nsser M. Asi Spring 006 compiled on Sundy Decemer 1, 017 t 09:1 PM 1 The prolem To find numericl vlue for the integrl of rel vlued function of rel vrile over specific rnge

More information

Instructions. An 8.5 x 11 Cheat Sheet may also be used as an aid for this test. MUST be original handwriting.

Instructions. An 8.5 x 11 Cheat Sheet may also be used as an aid for this test. MUST be original handwriting. ID: B CSE 2021 Computer Orgniztion Midterm Test (Fll 2009) Instrutions This is losed ook, 80 minutes exm. The MIPS referene sheet my e used s n id for this test. An 8.5 x 11 Chet Sheet my lso e used s

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

Algorithm Design and Analysis

Algorithm Design and Analysis Algorithm Design nd Anlysis LECTURE 8 Mx. lteness ont d Optiml Ching Adm Smith 9/12/2008 A. Smith; sed on slides y E. Demine, C. Leiserson, S. Rskhodnikov, K. Wyne Sheduling to Minimizing Lteness Minimizing

More information

TOPIC: LINEAR ALGEBRA MATRICES

TOPIC: LINEAR ALGEBRA MATRICES Interntionl Blurete LECTUE NOTES for FUTHE MATHEMATICS Dr TOPIC: LINEA ALGEBA MATICES. DEFINITION OF A MATIX MATIX OPEATIONS.. THE DETEMINANT deta THE INVESE A -... SYSTEMS OF LINEA EQUATIONS. 8. THE AUGMENTED

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

Logic Synthesis and Verification

Logic Synthesis and Verification Logi Synthesis nd Verifition SOPs nd Inompletely Speified Funtions Jie-Hong Rolnd Jing 江介宏 Deprtment of Eletril Engineering Ntionl Tiwn University Fll 2010 Reding: Logi Synthesis in Nutshell Setion 2 most

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

8 THREE PHASE A.C. CIRCUITS

8 THREE PHASE A.C. CIRCUITS 8 THREE PHSE.. IRUITS The signls in hpter 7 were sinusoidl lternting voltges nd urrents of the so-lled single se type. n emf of suh type n e esily generted y rotting single loop of ondutor (or single winding),

More information

Logic Synthesis and Verification

Logic Synthesis and Verification Logi Synthesis nd Verifition SOPs nd Inompletely Speified Funtions Jie-Hong Rolnd Jing 江介宏 Deprtment of Eletril Engineering Ntionl Tiwn University Fll 22 Reding: Logi Synthesis in Nutshell Setion 2 most

More information

Behavior Composition in the Presence of Failure

Behavior Composition in the Presence of Failure Behvior Composition in the Presene of Filure Sestin Srdin RMIT University, Melourne, Austrli Fio Ptrizi & Giuseppe De Giomo Spienz Univ. Rom, Itly KR 08, Sept. 2008, Sydney Austrli Introdution There re

More information

Arrow s Impossibility Theorem

Arrow 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 information

y1 y2 DEMUX a b x1 x2 x3 x4 NETWORK s1 s2 z1 z2

y1 y2 DEMUX a b x1 x2 x3 x4 NETWORK s1 s2 z1 z2 BOOLEAN METHODS Giovnni De Miheli Stnford University Boolen methods Exploit Boolen properties. { Don't re onditions. Minimiztion of the lol funtions. Slower lgorithms, etter qulity results. Externl don't

More information

expression simply by forming an OR of the ANDs of all input variables for which the output is

expression simply by forming an OR of the ANDs of all input variables for which the output is 2.4 Logic Minimiztion nd Krnugh Mps As we found ove, given truth tle, it is lwys possile to write down correct logic expression simply y forming n OR of the ANDs of ll input vriles for which the output

More information

CS241 Week 6 Tutorial Solutions

CS241 Week 6 Tutorial Solutions 241 Week 6 Tutoril olutions Lnguges: nning & ontext-free Grmmrs Winter 2018 1 nning Exerises 1. 0x0x0xd HEXINT 0x0 I x0xd 2. 0xend--- HEXINT 0xe I nd ER -- MINU - 3. 1234-120x INT 1234 INT -120 I x 4.

More information

Compiler Design. Spring Lexical Analysis. Sample Exercises and Solutions. Prof. Pedro C. Diniz

Compiler Design. Spring Lexical Analysis. Sample Exercises and Solutions. Prof. Pedro C. Diniz University of Southern Cliforni Computer Siene Deprtment Compiler Design Spring 7 Lexil Anlysis Smple Exerises nd Solutions Prof. Pedro C. Diniz USC / Informtion Sienes Institute 47 Admirlty Wy, Suite

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

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

A Hierarchical Approach to Computer-Aided Design of Quantum Circuits

A Hierarchical Approach to Computer-Aided Design of Quantum Circuits A Hierrhil Approh to Computer-Aided Design of Quntum Ciruits Mrek Perkowski,+* Mrtin Luk,* Mikhil Pivtoriko,* Pwel Kerntopf, & Mihele Folgheriter *, Dongsoo Lee, + Hyungok Kim,+ Woong Hwngo, Jung-wook

More information

Hyers-Ulam stability of Pielou logistic difference equation

Hyers-Ulam stability of Pielou logistic difference equation vilble online t wwwisr-publitionsom/jns J Nonliner Si ppl, 0 (207, 35 322 Reserh rtile Journl Homepge: wwwtjnsom - wwwisr-publitionsom/jns Hyers-Ulm stbility of Pielou logisti differene eqution Soon-Mo

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

12.4 Similarity in Right Triangles

12.4 Similarity in Right Triangles Nme lss Dte 12.4 Similrit in Right Tringles Essentil Question: How does the ltitude to the hpotenuse of right tringle help ou use similr right tringles to solve prolems? Eplore Identifing Similrit in Right

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

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

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

Lesson 2: The Pythagorean Theorem and Similar Triangles. A Brief Review of the Pythagorean Theorem.

Lesson 2: The Pythagorean Theorem and Similar Triangles. A Brief Review of the Pythagorean Theorem. 27 Lesson 2: The Pythgoren Theorem nd Similr Tringles A Brief Review of the Pythgoren Theorem. Rell tht n ngle whih mesures 90º is lled right ngle. If one of the ngles of tringle is right ngle, then we

More information

Minimal DFA. minimal DFA for L starting from any other

Minimal DFA. minimal DFA for L starting from any other Miniml DFA Among the mny DFAs ccepting the sme regulr lnguge L, there is exctly one (up to renming of sttes) which hs the smllest possile numer of sttes. Moreover, it is possile to otin tht miniml DFA

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 6. CMOS Static & Dynamic Logic Gates. Static CMOS Circuit. PMOS Transistors in Series/Parallel Connection

Lecture 6. CMOS Static & Dynamic Logic Gates. Static CMOS Circuit. PMOS Transistors in Series/Parallel Connection NMOS Trnsistors in Series/Prllel onnetion Leture 6 MOS Stti & ynmi Logi Gtes Trnsistors n e thought s swith ontrolled y its gte signl NMOS swith loses when swith ontrol input is high Peter heung eprtment

More information

The Word Problem in Quandles

The Word Problem in Quandles The Word Prolem in Qundles Benjmin Fish Advisor: Ren Levitt April 5, 2013 1 1 Introdution A word over n lger A is finite sequene of elements of A, prentheses, nd opertions of A defined reursively: Given

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

Trigonometry Revision Sheet Q5 of Paper 2

Trigonometry Revision Sheet Q5 of Paper 2 Trigonometry Revision Sheet Q of Pper The Bsis - The Trigonometry setion is ll out tringles. We will normlly e given some of the sides or ngles of tringle nd we use formule nd rules to find the others.

More information

Tutorial Worksheet. 1. Find all solutions to the linear system by following the given steps. x + 2y + 3z = 2 2x + 3y + z = 4.

Tutorial Worksheet. 1. Find all solutions to the linear system by following the given steps. x + 2y + 3z = 2 2x + 3y + z = 4. Mth 5 Tutoril Week 1 - Jnury 1 1 Nme Setion Tutoril Worksheet 1. Find ll solutions to the liner system by following the given steps x + y + z = x + y + z = 4. y + z = Step 1. Write down the rgumented mtrix

More information

EECS 141 Due 04/19/02, 5pm, in 558 Cory

EECS 141 Due 04/19/02, 5pm, in 558 Cory UIVERSITY OF CALIFORIA College of Engineering Deprtment of Electricl Engineering nd Computer Sciences Lst modified on April 8, 2002 y Tufn Krlr (tufn@eecs.erkeley.edu) Jn M. Rey, Andrei Vldemirescu Homework

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

QUADRATIC EQUATION. Contents

QUADRATIC EQUATION. Contents QUADRATIC EQUATION Contents Topi Pge No. Theory 0-04 Exerise - 05-09 Exerise - 09-3 Exerise - 3 4-5 Exerise - 4 6 Answer Key 7-8 Syllus Qudrti equtions with rel oeffiients, reltions etween roots nd oeffiients,

More information

Hybrid Systems Modeling, Analysis and Control

Hybrid Systems Modeling, Analysis and Control Hyrid Systems Modeling, Anlysis nd Control Rdu Grosu Vienn University of Tehnology Leture 5 Finite Automt s Liner Systems Oservility, Rehility nd More Miniml DFA re Not Miniml NFA (Arnold, Diky nd Nivt

More information

Exercise 3 Logic Control

Exercise 3 Logic Control Exerise 3 Logi Control OBJECTIVE The ojetive of this exerise is giving n introdution to pplition of Logi Control System (LCS). Tody, LCS is implemented through Progrmmle Logi Controller (PLC) whih is lled

More information

Chapter 3. Vector Spaces. 3.1 Images and Image Arithmetic

Chapter 3. Vector Spaces. 3.1 Images and Image Arithmetic Chpter 3 Vetor Spes In Chpter 2, we sw tht the set of imges possessed numer of onvenient properties. It turns out tht ny set tht possesses similr onvenient properties n e nlyzed in similr wy. In liner

More information

Linear choosability of graphs

Linear choosability of graphs Liner hoosility of grphs Louis Esperet, Mikel Montssier, André Rspud To ite this version: Louis Esperet, Mikel Montssier, André Rspud. Liner hoosility of grphs. Stefn Felsner. 2005 Europen Conferene on

More information

THE PYTHAGOREAN THEOREM

THE PYTHAGOREAN THEOREM THE PYTHAGOREAN THEOREM The Pythgoren Theorem is one of the most well-known nd widely used theorems in mthemtis. We will first look t n informl investigtion of the Pythgoren Theorem, nd then pply this

More information

Computing data with spreadsheets. Enter the following into the corresponding cells: A1: n B1: triangle C1: sqrt

Computing data with spreadsheets. Enter the following into the corresponding cells: A1: n B1: triangle C1: sqrt Computing dt with spredsheets Exmple: Computing tringulr numers nd their squre roots. Rell, we showed 1 ` 2 ` `n npn ` 1q{2. Enter the following into the orresponding ells: A1: n B1: tringle C1: sqrt A2:

More information

System Validation (IN4387) November 2, 2012, 14:00-17:00

System Validation (IN4387) November 2, 2012, 14:00-17:00 System Vlidtion (IN4387) Novemer 2, 2012, 14:00-17:00 Importnt Notes. The exmintion omprises 5 question in 4 pges. Give omplete explntion nd do not onfine yourself to giving the finl nswer. Good luk! Exerise

More information

Generalization of 2-Corner Frequency Source Models Used in SMSIM

Generalization of 2-Corner Frequency Source Models Used in SMSIM Generliztion o 2-Corner Frequeny Soure Models Used in SMSIM Dvid M. Boore 26 Mrh 213, orreted Figure 1 nd 2 legends on 5 April 213, dditionl smll orretions on 29 My 213 Mny o the soure spetr models ville

More information

Qubit and Quantum Gates

Qubit and Quantum Gates Quit nd Quntum Gtes Shool on Quntum omputing @Ygmi Dy, Lesson 9:-:, Mrh, 5 Eisuke Ae Deprtment of Applied Physis nd Physio-Informtis, nd REST-JST, Keio University From lssil to quntum Informtion is physil

More information

Dorf, R.C., Wan, Z. T- Equivalent Networks The Electrical Engineering Handbook Ed. Richard C. Dorf Boca Raton: CRC Press LLC, 2000

Dorf, R.C., Wan, Z. T- Equivalent Networks The Electrical Engineering Handbook Ed. Richard C. Dorf Boca Raton: CRC Press LLC, 2000 orf, R.C., Wn,. T- Equivlent Networks The Eletril Engineering Hndook Ed. Rihrd C. orf Bo Rton: CRC Press LLC, 000 9 T P Equivlent Networks hen Wn University of Cliforni, vis Rihrd C. orf University of

More information

Review Topic 14: Relationships between two numerical variables

Review Topic 14: Relationships between two numerical variables Review Topi 14: Reltionships etween two numeril vriles Multiple hoie 1. Whih of the following stterplots est demonstrtes line of est fit? A B C D E 2. The regression line eqution for the following grph

More information

Implication Graphs and Logic Testing

Implication 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 information

Convert the NFA into DFA

Convert the NFA into DFA Convert the NF into F For ech NF we cn find F ccepting the sme lnguge. The numer of sttes of the F could e exponentil in the numer of sttes of the NF, ut in prctice this worst cse occurs rrely. lgorithm:

More information

(a) A partition P of [a, b] is a finite subset of [a, b] containing a and b. If Q is another partition and P Q, then Q is a refinement of P.

(a) A partition P of [a, b] is a finite subset of [a, b] containing a and b. If Q is another partition and P Q, then Q is a refinement of P. Chpter 7: The Riemnn Integrl When the derivtive is introdued, it is not hrd to see tht the it of the differene quotient should be equl to the slope of the tngent line, or when the horizontl xis is time

More information

Test Generation from Timed Input Output Automata

Test Generation from Timed Input Output Automata Chpter 8 Test Genertion from Timed Input Output Automt The purpose of this hpter is to introdue tehniques for the genertion of test dt from models of softwre sed on vrints of timed utomt. The tests generted

More information

CHENG Chun Chor Litwin The Hong Kong Institute of Education

CHENG 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 information

Line Integrals and Entire Functions

Line Integrals and Entire Functions Line Integrls nd Entire Funtions Defining n Integrl for omplex Vlued Funtions In the following setions, our min gol is to show tht every entire funtion n be represented s n everywhere onvergent power series

More information

Electromagnetism Notes, NYU Spring 2018

Electromagnetism Notes, NYU Spring 2018 Eletromgnetism Notes, NYU Spring 208 April 2, 208 Ation formultion of EM. Free field desription Let us first onsider the free EM field, i.e. in the bsene of ny hrges or urrents. To tret this s mehnil system

More information

A Hierarchical Approach to Computer-Aided Design of Quantum Circuits

A Hierarchical Approach to Computer-Aided Design of Quantum Circuits A ierrhil Approh to Computer-Aided Design of Quntum Ciruits Mrek Perkowski,+* Mrtin Luk,* Mikhil Pivtoriko,* Pwel Kerntopf, & Mihele Folgheriter ^, Dongsoo Lee, + yungok Kim,+ oong wngo, Jung-wook Kim+

More information

ANALYSIS AND MODELLING OF RAINFALL EVENTS

ANALYSIS 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 information

Math 32B Discussion Session Week 8 Notes February 28 and March 2, f(b) f(a) = f (t)dt (1)

Math 32B Discussion Session Week 8 Notes February 28 and March 2, f(b) f(a) = f (t)dt (1) Green s Theorem Mth 3B isussion Session Week 8 Notes Februry 8 nd Mrh, 7 Very shortly fter you lerned how to integrte single-vrible funtions, you lerned the Fundmentl Theorem of lulus the wy most integrtion

More information

CS103B Handout 18 Winter 2007 February 28, 2007 Finite Automata

CS103B Handout 18 Winter 2007 February 28, 2007 Finite Automata CS103B ndout 18 Winter 2007 Ferury 28, 2007 Finite Automt Initil text y Mggie Johnson. Introduction Severl childrens gmes fit the following description: Pieces re set up on plying ord; dice re thrown or

More information

Linear Inequalities. Work Sheet 1

Linear Inequalities. Work Sheet 1 Work Sheet 1 Liner Inequlities Rent--Hep, cr rentl compny,chrges $ 15 per week plus $ 0.0 per mile to rent one of their crs. Suppose you re limited y how much money you cn spend for the week : You cn spend

More information

CS 330 Formal Methods and Models Dana Richards, George Mason University, Spring 2016 Quiz Solutions

CS 330 Formal Methods and Models Dana Richards, George Mason University, Spring 2016 Quiz Solutions CS 330 Forml Methods nd Models Dn Richrds, George Mson University, Spring 2016 Quiz Solutions Quiz 1, Propositionl Logic Dte: Ferury 9 1. (4pts) ((p q) (q r)) (p r), prove tutology using truth tles. p

More information