APPLICATION OF STRASSEN S ALGORITHM IN RHOTRIX ROW-COLUMN MULTIPLICATION

Size: px
Start display at page:

Download "APPLICATION OF STRASSEN S ALGORITHM IN RHOTRIX ROW-COLUMN MULTIPLICATION"

Transcription

1 Informtion Tehnology for People-entre Development (ITePED ) APPLIATION OF STRASSEN S ALGORITHM IN RHOTRIX ROW-OLUMN MULTIPLIATION Ezugwu E. Aslom 1, Aullhi M., Sni B. 3 n Juniu B. Shlu 4 Deprtment of Mthemtis, Ahmu Bello University, Zri-Nigeri ABSTRAT This pper presents stuy of Strssen s lgorithm n its pplition to rhotrix row-olumn multiplition. The speil se of o-size rhotries ws onsiere silly y mens of oth ping n peeling pproh. A sequentil reursive implementtion of the lgorithm using jv progrm ws one for rhotries of reltively meium sizes n lso prllel MPI frmework implementtion ws likewise moelle n presente. 1.. Keywors: Strssen s lgorithm, Rhotrix multiplition, Prllel omputing 1. INTRODUTION Rhotrix is new mthemtil prigm for mtrix theory. The stuy of rhotrix is onerne with the representtion of mthemtil rrys of rel numers in rhomoil form like strutures, s n extension of ies on mtrix-tertions n mtrix noitrets propose y (Atnssov n Shnnon, 1998). We represent the struture of n-imensionl rhotrix s follow. R n tt- t1t t-1t-1 tt1 t-t t-1t- t-1t-1 t-t-1 tt (1.1) where:, 1,..., tt enotes the min entries n, 1,..., t-1t-1 in (1.1) enotes the hert entries of the rhotrix (Sni, 4). A rhotrix woul lwys hve n o imension. It is importnt to note tht for ny n- imensionl rhotrix enote y R n will hve R 1 ( n n 1), entries (Ajie, 3) n n Z 1, thus we reiterte tht ll rhotries re of o imension. Aoringly, the 5 th n 7 th imension re given s: NIGERIA OMPUTER SOIETY (NS): 1 TH INTERNATIONAL ONFERENE JULY 5-9,

2 R n R onsequently we n efine the rows n olumns of rhotrix min entries s: t,1 t1,1 1,1... t, t1, 1,... t,3 t1,3 1, t, t t1, t 1, t n 44 1,1 1, t1 1, t,1, t1, t 3,1 3, t1 3, t t,1 t, t1 t, t while the rows of the hert entries re similrly efine (Sni, 4). Given ny two rhotrix sy Rn n Qn the set of entries ij for R n n ij for Q n multiply eh other n entries lk for R n n lk for Q n lso o likewise. Thus, the multiplition of ny two rhotries is thus efine s: ( ) ( ) = Rn Q n= i1 j1, l1k1 i j, lk t t 1 ( ), ( ) ij 1 ijij 1 lk 1 lklk 1 (1.) The multiplition proess of (1.) is similr to tht foun in mtrix, whih is given y. l 1 ij ikkj (1.3) k. BAKGROUND FROM GROUP THEOREM TO OMPLEX NUMBER The exponent of mtrix multiplition hs prove so elusive tht it hs een given nme, whih in essene is esrie s the smllest numer suh tht ( n ) multiplitions suffie for ll. Similrly, sine ll n must e prt of ny omputtion, is lerly t lest. The ro to the urrent est upper oun on ws uilt on lever ies n inresingly omplex omintoril tehniques. Mny reserhers long elieve tht the stnr, o( n 3 ) lgorithm ws the est possile. Then, in 1969, Volker Strssen stunne the reserh worl with his.81 o ( n ) lgorithm for multiplying mtries. Still sometimes use in prtie, Strssen s lgorithm is reminisent of shortut, first oserve y Guss, for multiplying omplex numers. Though fining the prout ( + i)( + i) = + ( + )i seems to require four multiplitions, Guss oserve tht it n tully e one with three multiplition,, n ( + )( + ), euse + = ( + )( + ). Let A, B [ i]/( i 1), where A ( i) n B ( i ), then AB ( ) ( ) i. This proess uses 4 multiplitions. How possile is it optimlity? ertinly y efinition: m1 ( )( ) ( ) m m3 NIGERIA OMPUTER SOIETY (NS): 1 TH INTERNATIONAL ONFERENE JULY 5-9,

3 AB ( m1 m m3 ) ( m m3 ) i Thus, omplex multiplition is omplishe with only 3 multiplitions over..1 A Review of Strssen s Algorithm In 1969, Strssen introue n lgorithm to ompute mtrix multiplitions. This lgorithm reues the numer of multiplitions require for omputing the A A1 B B1 A, B, A1 A B1 B M 1 := (A 1,1 + A, )(B 1,1 + B, ) M := (A,1 + A, )B 1,1 M 3 := A 1,1 (B 1, - B, ) M 4 := A, (B,1 - B 1,1 ) M 5 := (A 1,1 + A 1, )B, M 6 := (A,1 - A 1,1 )(B 1,1 + B 1, ) M 7 := (A 1, - A, )(B,1 + B, ) 1,1 = M1 +M4 - M5 +M7 1, = M3 +M5,1 = M +M4, = M1 - M +M3 +M6 In essene, inste of using the norml 8 multiplitions of trivil pproh, Strssen s lgorithm only uses 7. We n ontinue to pply Strssen s lgorithm reursively to hieve the time omplexity log7.87 of n = n. onsiering A i, j, B i, j, n i, j s mtries inste of slrs N llows mtrix multiplition over n size mtries to e performe using only 7 N = 7 log n = n log 7 = O(n.81 ). Whih mens it will run fster thn the onventionl lgorithm for suffiiently lrge mtries. Unless the mtrix hs imension of k you nnot pply Strssen s lgorithm iretly. A metho lle ynmi peeling is le to solve this prolem effetively (Spene n Knoi). Dynmi peeling mkes mtrix imensions even y stripping off n extr row or olumn s neee, n putting their ontriutions k to the finl result lter. This interesting feture motivte us to inorporte this lgorithm into the present reserh re. From our erlier efinition of 1 1 prout of two x mtries A n B from eight to seven, y expressing the entries of AB s liner omintions of prouts of liner omintions of the entries of A n B. This trik, pplie to four loks of n x n mtries, reues the prolem to seven multiplitions of n-1 x n-1 mtries. Let A, B, (.1) rhotries, we relte its row-olumn multiplition to e similr in every spet with tht of mtries multiplition n hene the importne of the present stuy. We elieve tht the Strssen s lgorithm n lso e pplie to the row-olumn multiplition of rhotries even though; rhotrix is lwys of o imension. Huss-Leermn pioneere the esign of n effiient n portle seril implementtion of Strssen s lgorithm lle DGEFMM (Huss-Leermn n Joson, 1996). DGEFMM is esigne to reple DGEMM n otine etter performne for ll mtrix sizes while minimizing the temporry storge. DGEMM, op( A) op( B) (IBM Engineering n Sientifi Suroutine Lirry). There re severl prllel implementttion of Strssen s lgorithm on istriute memory rhitetures. The methos typilly elong to three lsses. The first lss is to use the onventionl lgorithm t the top level (ross proessors) n Strssen s lgorithm t the ottom level (within proessor).one si pplition of this is tht of the Fox s Brost-Multiply- Roll (BMR) methos (Fox et l., 1987). Another similr implementtion pproh is foun in (Ohtki et l., 4) ut is more fouse on istriution sheme prtiulrly for heterogeneous lusters. The seon lss is to use Strssen s lgorithm t oth the top n ottom level. hou (hou et l., NIGERIA OMPUTER SOIETY (NS): 1 TH INTERNATIONAL ONFERENE JULY 5-9,

4 1995) eomposes the mtrix A into x loks of sumtries, then further eomposes eh sumtrix into four x loks (i.e., 4 x 4 loks). This wy he is le to ientify 49 multiplitions n uses 7 or 49 proessors to perform multiplition onurrently. Tle.1: Strssen s Algorithm Phse 1 T1 = A + A T6 = B + B T = A1 + A T7 = B1 B T3 = A + A1 T8 = B1 B T4 = A1 A T9 = B + B1 T5 = A1 A T1 = B1 + B Phse Q1 = T1 T6 Q5 = T3 B Q = T B Q6 = T4 T9 Q3 = A T7 Q7 = T5 T1 Q4 = A T8 Phse 3 T1 = Q1 + Q4 T3 = Q3 + Q1 T = Q5 Q7 T4 = Q Q6 Phse 4 = T1 T 1 = Q3 + Q5 1 = Q + Q4 = T3 T4 We eqully elieve tht if suh tsk n e hieve y portioning mtries into suloks of x, we n eqully exten this metho to rhotries, y wy of prtitioning the hert entries into x su-loks n then pplying the o imension tehniques of solving the Strssen s lgorithm s isusse in (Huss-Leermn et l., 1996). The lst lss is using Strssen s lgorithm t the top level n the onventionl one t the extr mtrix itions impose y Strssen s lgorithm eomes less ompre to the sve mtrix multiplition ost. Therefore Strssen s lgorithm is etter use ross proessors on the top level. Finlly, for mtries with o imensions, some tehnique must e pplie to mke the imensions even, pply Strssen's lgorithm to the ltere mtrix, n then orret the results. Originlly, Strssen suggeste ping the input mtries with extr rows n olumns of zeros, so tht the imensions of ll the mtries enountere uring the reursive lls re even. After the prout hs een ompute, the extr rows n olumns re remove to otin the esire result. We ll this pproh stti ping, sine ping ours efore ny reursive lls to Strssen's lgorithm. Alterntively, eh time Strssen's lgorithm is lle reursively, n extr row of zeros n e e to eh input with n o rowimension n n extr olumn of zeros n e e for eh input with n o olumnimension. This pproh to ping is lle ynmi ping sine ping ours throughout the exeution of Strssen's lgorithm. A version of ynmi ping is use in (Huss-Leermn n Joson, 1996). Let AB e the esire mtrix prout, n let e mtrix with n even imension, where enotes n unspeifie vlue. Then Strssen s lgorithm n e use to ompute The prout AB ppers in the upper-left lok inepenent of the vlues sustitute for the s in A n B. The sme woul e true if the zeros woul hve een ple in the ottom row of B inste of the lst olumn of A. In the ove igrm one extr row n olumn hs een inserte; however, if esire, itionl rows n olumns n e inserte so long s the resulting mtrix hs even imension. Furthermore, the extr rows n olumns oul hve een inserte in ritrry lotions so long s the olumn inex in the first mtrix mthes up with the row inex in the seon mtrix. Typilly the extr rows n olumns ontin zeros n re inserte so tht A n B re in the top-left or ottom-right loks (Dougls et l, 1994). NIGERIA OMPUTER SOIETY (NS): 1 TH INTERNATIONAL ONFERENE JULY 5-9,

5 Another pproh, lle ynmi peeling, els with o imensions y stripping off the extr rows n/or olumns s neee, n ing their ontriutions to the finl result in lter roun of fixup work. The fixup is require to inlue the ontriution of the rows n olumns tht were elete. More speifilly, let A e n m x k mtrix n B e k x n mtrix. Assuming tht m, k, n n re ll o, A n B re prtitione into the lok mtries where A hs even imensions, 1 is olumn vetor, 1is row vetor, n is single element. Similrly, where B hs even imensions, 1 is olumn vetor, 1 is row vetor, n is single element. Given this seven su-mtrix prouts, we n ompute W s W = S 5 + S 6 + S 4 S = (A + D)(E + H) + (B - D)(G + H) + D(G - E) (A + B)H = AE + DE + AH + DH + BG DG + BH DH + DG DE AH BH = AE + BG Similrly we n ompute X s X = S 1 + S = A(F - H) + (A + B)H = AF AH + AH + BH = AF + BH Agin we n ompute Y s Y = S 3 + S 4 where AB is ompute using Strssen's lgorithm, n the other omputtions onstitute the fixup work. In Setion 3, we isusse how we tully pplie similr Strssen s tehnique to esign our own rhotrix multiplition lgorithm n oe its omputtions. 3. VERIFIATION OF STRAS- SEN S ALGORITHM BY DIVIDE-AND-ONQUER TEHNIQUE Interestingly, Strssen s lgorithm orgnizes rithmeti involving the surrys A through H so tht we n ompute I, J, K, n L using just seven reursive mtrix multiplitions. We n esily verify tht they work orretly. Let us ssume tht n power of two n let us prtition P, Q, n R eh into four n n mtries, so tht we n write R = PQ s W X A B E F then, Y Z DG H Let s efines seven su-mtrix prouts: S 1 = A(F - H) S = (A + B)H S 3 = ( + D)E S 4 = D(G - E) S 5 = (A + D)(E + H) S 6 = (B - D)(G + H) S 7 = (A - )(E + F) = ( + D)E + D(G - E) = E + DE + DG DE = E + DG Finlly, we n ompute Z s Z = S 1 S 7 S 3 + S 5 = A(F - H) (A - )(E + F) ( + D)E + (A + D)(E + H) = AF AH AE + E AF + F E DE + AE + DE + AH + DH + F + DH Thus, we n ompute R = PQ using seven reursive multiplitions of mtries of size n n. Similrly, if we let funtion t (n) enote the running time of the lgorithm on n input of size n, n hrterize t (n) using n eqution tht NIGERIA OMPUTER SOIETY (NS): 1 TH INTERNATIONAL ONFERENE JULY 5-9,

6 reltes t (n) to vlues of the funtion t for prolem sizes smller thn n. We get reursion eqution if n t( n) (3.1) n 7t( ) kn f n, If we use the itertive susttion metho n we ssume tht the mtrix size is firly lrge enough, then y sustituting (3.1) of the reurrene for eh ourrene of the funtion t on the right-hn sie, we n hrterize the running time t(n) s n t( n) 7t( ) kn, for some onstnt k >. Hene y the mster theorem, we hve the following: Theorem 1: we n multiply two n n 7 mtries in O( n log ) time. Thus, with fir it of itionl omputtion, we n perform the multiplition for n n mtries in time.88 O ( n ), whih is o ( n 3 ) time. 3.1 Strssen s Algorithm n Rhotrix Row-olumn Multiplition In orne with the Winogr s vrint of Strssen s lgorithm, whih uses seven mtrix multiplitions n 15 mtrix itions we exten n implement similr lgorithmi omputtion on rhotrix multiplition. It is well-known tht this is the minimum numer of multiplitions n itions possile for ny reursive mtrix multiplition lgorithm se on ivision into qurnts. The ivision of the mtries into qurnts follows eqution (.1). Our mjor iffiulty is on prtitioning rhotrix elements into x loks of qurnts knowing tht rhotrix hs n o imension. In tul sense this might seem omplite, ut we n still omine oth Strssen s lgorithm with the stnr multiplition tehnique of mtrix to hieve our gol. In this setion we o not isuss the theoretil proof ehin this lgorithm s they re overe elsewhere. The following steps illustrte the splitting proess of rhotries into min n hert entries. Definition: Sifting is the proess of seprting min entries or hert entries form the entire given entries of the rhotrix. It is emote y the symol with the min entries on the left n the hert entries on the right. The ove efinition n e illustrte y the following exmple. R Note tht the following reltions is true from the ove efinition where n Where enotes rhotrix emement n enotes rhotrix sifting. Similrly, NIGERIA OMPUTER SOIETY (NS): 1 TH INTERNATIONAL ONFERENE JULY 5-9,

7 Q 5 where n It is importnt to oserve tht the hert entries of R n n Q n from the ove extrtion re not themselves rhotries, ut represents omputtionl step mong group of steps require in performing multiplition tsks. One we re le to split this, then the next step is to fin wy of prtitioning these entries into loks of x, s require y the esire lgorithm. R n n 1 1 If the rhotries R n, Q n re not of type n x n, we hve two options, first option is to either fill the missing rows n olumns with zeros ( metho referre to s ping pproh) n prtition R n n Q n into eqully size lok mtries or we elete the unprtitione rows n olumns ( metho referre to s peeling pproh) n then lter inorporte them into the omputtion proess. But first let s onsier the ping pproh s shown elow. R n nq n NIGERIA OMPUTER SOIETY (NS): 1 TH INTERNATIONAL ONFERENE JULY 5-9,

8 A 1 1, A1 3, A 3 n A 1 B 1 1, A1 3, A 3 n A 1 n 1 1, 1 3, 1 3 n with A i, j, B i, j n i, j n 1 1 n then 1,1 = A 1,1 B 1,1 + A 1, B,1 1, = A 1,1 B 1, + A 1, B,,1 = A,1 B 1,1 + A, B,1, = A,1 B 1, + A, B, With this onstrution we hve not reue the numer of multiplitions. We still nee 8 multiplitions to lulte the i,j mtries, the sme numer of multiplitions we nee when using stnr mtrix multiplition. Now omes the importnt prt. We efine new mtries M 1 := (A 1,1 + A, )(B 1,1 + B, ) M := (A,1 + A, )B 1,1 M 3 := A 1,1 (B 1, - B, ) M 4 := A, (B,1 - B 1,1 ) M 5 := (A 1,1 + A 1, )B, M 6 := (A,1 - A 1,1 )(B 1,1 + B 1, ) M 7 := (A 1, - A, )(B,1 + B, ) whih re then use to express the i,j in terms of M k. Beuse of our efinition of the M k we n eliminte one mtrix multiplition n reue the numer of multiplitions to 7 (one multiplition for eh M k ) n express the i,j s 1,1 = M1 +M4 - M5 +M7 1, = M3 +M5,1 = M +M4, = M1 - M +M3 +M6 We iterte this ivision proess n times until the su mtries egenerte into numers (elements of the ring ). At the en of the reursive omputtion we now o wy with the zeros e to ugments the missing rows n olumns to get k our rhotrix. Alterntively we onsier one of the key pprohes to eling with mtries with o imension, the peeling metho isusse in (Huss-Leermn et l., 1996). The peeling pprohe isusse n e use to pply Strssen s lgorithm to smller rhotries otine y eleting rows n olumns. In this se, fter pplying the Strssen s lgorithm, still we nee to o some itionl work, referre to s fixup. The fixup hs to e tken into onsiertion in other to inlue the ontriution of the initil rhotrix s rows n olumns tht were elete erlier on. The peeling pproh orrespons to loking methos foun in nnon s lgorithm n is stritly pplie to only the rhotrix min entries whose imension is usully o, n not to the hert entries whose imension woul lwys e even. The input rhotries re prtitione into loks, possily of ifferent sizes, suh tht the rhotrix prouts is omptile with the imensions of the loks, tht is, if A is the ij -lok of the rhotrix R (A) n B jk is the jk -loks of the rhotrix Q (B), then the olumn imension of Aij must e equl to the row imension of B jk for ll i, j, n k. If the imensions of the loks re omptile in this sense, then ik, the ik- ij NIGERIA OMPUTER SOIETY (NS): 1 TH INTERNATIONAL ONFERENE JULY 5-9,

9 lok of AB, is equl to i, k n k1 k, j where j runs over the loks in the i-th olumns of the lok rhotrix otine y prtitioning A. After prtitioning the input rhotries into loks, Strssen s lgorithm n then e pplie to ompute the lok prouts of rhotries whose imensions re even. The fixup work inlues the lok prouts tht re not ompute with Strssen s lgorithm n the work require to omine the lok prouts. One prtitioning sheme hooses the upper left-hn lok to e the lrgest surhotrix, with even imensions, ontining the element in the upper left-hn orner. In this sheme there n e t most four lok, whih ours when oth the row n olumn imension re o. In this se R( A) 1 3 if we ssume 1 A then where Ais n (m - 1) x (k - 1) mtrix, 1 is (m - 1) x 1 mtrix, 1 is 1 x (k - 1) mtrix, is 1 x 1 mtrix 3 A 3 NIGERIA OMPUTER SOIETY (NS): 1 TH INTERNATIONAL ONFERENE JULY 5-9,

10 R( B) if we ssume,, 3 1 n, 3 1 then, B B 3 n B is n (k - 1) x (n - 1) mtrix, 1 is (k - 1) x 1 mtrix, 1is 1 x (n- 1) mtrix, is 1 x 1 mtrix. The prout R AB is ompute s r 1 R r r 1 B 1 1 A B A 1 1 The ove peeling pproh for whih we pplie to solve for the rhotrix min entries s stte efore o not pply to the hert elements with even imension, hene the goo news is tht we n iretly pply the loks: R R 1 R R 1 where, 1, 1, n re (m - 1) x (k-1) mtries n D, D 1, D1 n D re (k - 1) x (n - 1) mtries respetively. 3. Strssen s Algorithm omputtion Approh The omputtion proess n e ivie into two mjor prts; the first prt hnles the reursive omputtion of x lokle mtries with even imensions while the ltter prts hnles the fixup ( i.e., multiplition resulting from the reursive omputtion with the peele off row n 1 1 D 1 D D Strssen s lgorithm for the omputtion of the hert entries s shown elow. The lgorithm silly esries how to perform single level reursion on D 1 olumn) se resulting from the erlier peeling proesses rrie out. For the first prt, the omputtion n proees s shown in Tle 3.1 for oth rhotrix min entries n hert entries. Figure 3.1 n 3.1 shows the omputtion grph for the Winogr vrint of Strssen s lgorithm. The su-loks rhotries A n B, n n D re the initil inputs, shown lelling the verties t the top of the two grphs. All eges re irete from inputs, higher verties to lower ones elow. Tle 3.1: Strssen s Algorithm for Rhotrix Multiplition NIGERIA OMPUTER SOIETY (NS): 1 TH INTERNATIONAL ONFERENE JULY 5-9,

11 omputtion for rhotrix min entries omputtion for rhotrix hert entries Phse 1 n Phse 1 n S1 = A1 + A T1 = B1 B S1 = 1 + A T1 = D1 D S = S1 + A T = B T1 S = S1 + T = D T1 S3 = A A1 T3 = B B1 S3 = 1 T3 = D D1 S4 = A1 S T4 = B1 T S4 = 1 S T4 = D1 T Phse 3 Phse 3 P1 = A B P5 = S3 T3 P1 = D P5 = S3 T3 P = A1 B1 P6 = S4 B P = 1 D1 P6 = S4 D P3 = S1 T1 P7 = A T4 P3 = S1 T1 P7 = T4 P4 = S T P4 = S T Phse 4 Phse 4 R = U1 = P1 + P U = P1 + P4 U3 = U + P5 R1 = U4 = U3 + P7 R = U4 = U3 + P7 U6 = U + P3 R1 = U7 = U6 + P6 R = U1 = P1 + P U = P1 + P4 U3 = U + P5 R1 = U4 = U3 + P7 R = U4 = U3 + P7 U6 = U + P3 R1 = U7 = U6 + P6 Thus, for exmple, in figure 3.1, A n A1 re initil inputs, whih re omine to proue S3. S3 is susequently omine with T3 to proue P5, n so on, until the finl results, su-loks of R, re proue t the ottom level. A A1 A1 A B B1 B1 B S3 S1 T1 T3 S T S4 T4 P1 P P3 P4 P5 P6 P7 U U6 U3 R R1 R1 R Figure 3.1: Depeneny grph for Winogr s vrint of Strssen s Algorithm [Huss-Leermn] 3.3 Strssen s Algorithm Fixup se NIGERIA OMPUTER SOIETY (NS): 1 TH INTERNATIONAL ONFERENE JULY 5-9,

12 The seon prt of our omputtion els with the ynmi peeling pproh expline erlier on, se on the previous nlysis, it hs een shown tht the ynmi peeling oul e useful metho, ut it hs not een previously teste through tul implementtion for rhotries. We wrote jv progrm to implement the essentilly t-riven omputtion n presente frmework moel for the prllel MPI implementtion. After omining opertions, there re potentilly three fixup steps: Step1: R 1 1 R, Step: A r 1, 1 r1 1 Step3: r 1 r 1 1 The three steps n e ompute using the stnr rhotrix multiplition metho. It shoul e note tht, An B re the result otine from our initil reursive omputtion for even imensione lokle rhotries n 1, 1,, 1, 1 n re the peele off row n olumn elements. 4. PROGRAM TASK GRAPH FOR STRASSEN S ALGORITHM It is strightforwr to represent Strssen s lgorithm in tsk grph. A tsk grph is irete grph whose eges represent epenene reltionship n noes represent tsks (either sequentil or prllel progrms). The noe lote t the r til shoul e exeute efore the noe t the r he. Figure 3. isplys the orresponing tsk grph of one-level reursion of Strssen s lgorithm. Winogr s vrint of Strssen s lgorithm uses the require 7 multiplitions n miniml numer of 15 itions/sutrtions. This is simplifie into the following 4 stges of omputtions. Stges (1) n () B 1 r 1 r. S1 = A1 + A, S = S1 A = A1 + A A, S3 = A A1, S4 = A1 S = A1 A1 - A + A, T1 = B1 B, T = B T1 = B B1 + B, T3 = B B1, T4 = B1 T = B1 B + B1 B. Stges (3) ompute the seven prouts P1 = AB, P = A1B1, P3 = S1T1, P4 = ST, P5 = S3T3, P6 = S4B, P7 = AT4, An stge (4) omputes U1 = P1 + P, U = P1 + P4, U3 = U + P5, U4 = U3 + P7, U5 = U3 + P3, U6 = U + P3, U7 = U6 + P6. Hene we n esily verify tht R= U1, R1 = U7, R1 = U4, n R = U5. We n now pply the ove tsk nottion to proue simplifie tsk grph s shown elow. S3 S1 Strt S S4 T1 T3 T T4 P1 P P3 P4 P5 P6 P7 R R1 R1 R Stop Figure 3.: Tsk grph for Winogr s vrint of Strssen s Algorithm NIGERIA OMPUTER SOIETY (NS): 1 TH INTERNATIONAL ONFERENE JULY 5-9,

13 5. A FRAMEWORK OF TASK- PARALLEL APPROAH USING MPI We n use strightforwr metho to prllelize Strssen s lgorithm. Bse on the lgorithm, there exist seven mtrix multiplitions (i.e., P1-P7). If we employ seven proesses to ompute the multiplitions, the progrm esign eomes very simple. The si ie is tht we ivie the tsk grph in Figure 3. into seven prts n eh prt is hnle y proess. Figure 3.3 epits the tsk prtitioning ross the seven proesses. Noes with the sme olour elong to single proess. It is importnt to note tht the positions of noes in Figure 3.3 re ientil to those in Figure 3. were omputtions re rrie out for step 1 n of S n T, step 3 of U n step 4 of R. Sine Figure 4 iretly reflets our progrm esign moel, it is strightforwr to write n MPI progrm se on the grph. For instne, proess P3 performs omputtions of S1, T1, U4 n R1 whih orrespon to the rown noes on the right. Str P4 P P3 P5 P P4 P3 P6 P P1 P P3 P4 P5 P6 P P P3 P4 P Figure 3.3: A moel of MPI tsk proesses grph to implement Strssen s lgorithm. 6. ONLUSION We hve esrie theoretil omputtionl moel for rhotrix multiplition using the Strssen s lgorithm, in whih se we were le to implement sequentil version of the lgorithm n t the sme time presente prllel frmework for the MPI implementtion on istriute memory systems. This metho we elieve is slle n portle to other pltforms euse most of the esire lle suroutines lrey exist in stnr lirry. Hene it is worthwhile to put more effort into this metho so tht the si opertion of rhotrix multiplition oul e improves further. 7. REFERENES Ajie A.O. (3). The onept of Rhotrix in Mthemtil Enrihment, Interntionl Journl of Mthemtil Eution in Siene n Tehnology, Atnssov K.T. n Shnnon A.G. (1998). Interntionl Journl of Mthemtis Eution in Siene n Tehnology, 9, hou., Deng Y., Li G. n Wng Y. (1995). Prllelizing Strssen s Metho for Mtrix Multiplition on Distriute-Memory MIMD Arhitetures, omputers for Mthemtis with Applitions, 3():49. Desprez F. n Suter.Mixe F. (1). Prllel Implementtion of the Top Level Step of Strssen n Winogr Mtrix Multiplition Algorithms, Proeeings of the 15 th Interntionl Prllel n Distriute Proessing Symposium (IPDPS 1), Sn Frniso. Dougls., M. Heroux, G. Slishmn n R. M. Smith. (1994). A portle level 3 BLAS Winogr vrint of Strssen s mtrix-mtrix multiply lgorithm. GEMMW: Journl of omputtionl Physis, :1-1. Fisher P.. n Proert R.L. (1974). Effiient Proeures for using Mtrix Algorithms in Automtion Lnguges n Progrmming, Numer 14 in NIGERIA OMPUTER SOIETY (NS): 1 TH INTERNATIONAL ONFERENE JULY 5-9,

14 Leture Notes in omputer Siene, Pge Springer-Verlg. Fox G.., Hey A.I n Otto S. (1987). Mtrix Algorithms on the Hyperue I: Mtrix Multiplition, Prllel omputing 4:17-. Huss-Leermn S. n Joson E. (1996). Implementtion of Strssen s Algorithm for Mtrix Multiplition, Proeeings of the 1996 AM/IEEE onferene on Superomputing, Pittsurgh. IBM Engineering n Sientifi Suroutine Lirry Version 3 Relese 3 Guie n Referene. Doument Numer SA- 77-4, IBM. Joson S.E.M., Johnson J.R., Tso A. n Turnull T. (1996). Strssen's lgorithm for mtrix multiplition: Moeling, nlysis, n implementtion. Tehnil report, enter for omputing Sienes. Tehnil Report S-TR Ohtki Y., Tkhshi D., Boku T. n Sto M. (4). Prllel Implementtion of Strssen s Mtrix Multiplition Algorithm for Heterogeneous lusters, Proeeings of the 18th Interntionl Prllel n Distriute Proessing Symposium (IPDPS 4), Snt Fe. Sni B. (4). The Row-olumn Multiplition of High Dimensionl Rhotries, Interntionl Journl of Mthemtil Eution in Siene n Tehnology, Spene M. n Knoi V. Effiient Implementtion of Strssen s Algorithm for Mtrix Multiplition, Tehnil Report, Rie University. Strssen V. (1969). Gussin Elimintion is not Optim Numer. Mt: NIGERIA OMPUTER SOIETY (NS): 1 TH INTERNATIONAL ONFERENE JULY 5-9,

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

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

I 3 2 = I I 4 = 2A

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

More information

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

Section 2.3. Matrix Inverses

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

More information

Lecture 8: Abstract Algebra

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

More information

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

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

More information

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

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

More information

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

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

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

Lecture 2: Cayley Graphs

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

More information

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

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

More information

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

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

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

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

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

More information

Now we must transform the original model so we can use the new parameters. = S max. Recruits

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

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

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

More information

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

A Primer on Continuous-time Economic Dynamics

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

More information

The DOACROSS statement

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

More information

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

Generalized Kronecker Product and Its Application

Generalized Kronecker Product and Its Application Vol. 1, No. 1 ISSN: 1916-9795 Generlize Kroneker Prout n Its Applition Xingxing Liu Shool of mthemtis n omputer Siene Ynn University Shnxi 716000, Chin E-mil: lxx6407@163.om Astrt In this pper, we promote

More information

Powering a number. More Divide & Conquer

Powering a number. More Divide & Conquer CS 4 -- Spring 29 Powering numer Prolem: Compute n, where n N. Nive lgorithm: Θ(n). ore Divide & Conquer Crol Wenk Slides ourtesy of Chrles Leiserson with smll hnges y Crol Wenk 2//9 CS 4 nlysis of lgorithms

More information

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

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

More information

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

Eigenvectors and Eigenvalues

Eigenvectors and Eigenvalues MTB 050 1 ORIGIN 1 Eigenvets n Eigenvlues This wksheet esries the lger use to lulte "prinipl" "hrteristi" iretions lle Eigenvets n the "prinipl" "hrteristi" vlues lle Eigenvlues ssoite with these iretions.

More information

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

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

More information

Factorising FACTORISING.

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

More information

F / x everywhere in some domain containing R. Then, + ). (10.4.1)

F / 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 information

CSC2542 State-Space Planning

CSC2542 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 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 360 Exam 2 Fall 2014 Name

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

More information

Particle Physics. Michaelmas Term 2011 Prof Mark Thomson. Handout 3 : Interaction by Particle Exchange and QED. Recap

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

SOME COPLANAR POINTS IN TETRAHEDRON

SOME COPLANAR POINTS IN TETRAHEDRON Journl of Pure n Applie Mthemtis: Avnes n Applitions Volume 16, Numer 2, 2016, Pges 109-114 Aville t http://sientifivnes.o.in DOI: http://x.oi.org/10.18642/jpm_7100121752 SOME COPLANAR POINTS IN TETRAHEDRON

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

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

MCH T 111 Handout Triangle Review Page 1 of 3

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

More information

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

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

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

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

More information

Lesson 55 - Inverse of Matrices & Determinants

Lesson 55 - Inverse of Matrices & Determinants // () Review Lesson - nverse of Mtries & Determinnts Mth Honors - Sntowski - t this stge of stuying mtries, we know how to, subtrt n multiply mtries i.e. if Then evlute: () + B (b) - () B () B (e) B n

More information

Matrix- System of rows and columns each position in a matrix has a purpose. 5 Ex: 5. Ex:

Matrix- System of rows and columns each position in a matrix has a purpose. 5 Ex: 5. Ex: Mtries Prelulus Mtri- Sstem of rows n olumns eh position in mtri hs purpose. Element- Eh vlue in the mtri mens the element in the n row, r olumn Dimensions- How mn rows b number of olumns Ientif the element:

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

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

SOME INTEGRAL INEQUALITIES FOR HARMONICALLY CONVEX STOCHASTIC PROCESSES ON THE CO-ORDINATES

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

Algebra 2 Semester 1 Practice Final

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

More information

Technology Mapping Method for Low Power Consumption and High Performance in General-Synchronous Framework

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

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

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

MATRIX INVERSE ON CONNEX PARALLEL ARCHITECTURE

MATRIX INVERSE ON CONNEX PARALLEL ARCHITECTURE U.P.B. Si. Bull., Series C, Vol. 75, Iss. 2, ISSN 86 354 MATRIX INVERSE ON CONNEX PARALLEL ARCHITECTURE An-Mri CALFA, Gheorghe ŞTEFAN 2 Designed for emedded omputtion in system on hip design, the Connex

More information

6. Suppose lim = constant> 0. Which of the following does not hold?

6. Suppose lim = constant> 0. Which of the following does not hold? CSE 0-00 Nme Test 00 points UTA Stuent ID # Multiple Choie Write your nswer to the LEFT of eh prolem 5 points eh The k lrgest numers in file of n numers n e foun using Θ(k) memory in Θ(n lg k) time using

More information

Position Analysis: Review (Chapter 2) Objective: Given the geometry of a mechanism and the input motion, find the output motion

Position Analysis: Review (Chapter 2) Objective: Given the geometry of a mechanism and the input motion, find the output motion Position Anlysis: Review (Chpter Ojetive: Given the geometry of mehnism n the input motion, fin the output motion Grphil pproh Algeri position nlysis Exmple of grphil nlysis of linges, four r linge. Given

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

Compression of Palindromes and Regularity.

Compression of Palindromes and Regularity. Compression of Plinromes n Regulrity. Kyoko Shikishim-Tsuji Center for Lierl Arts Eution n Reserh Tenri University 1 Introution In [1], property of likstrem t t view of tse is isusse n it is shown tht

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

Analysis of Temporal Interactions with Link Streams and Stream Graphs

Analysis of Temporal Interactions with Link Streams and Stream Graphs Anlysis of Temporl Intertions with n Strem Grphs, Tiphine Vir, Clémene Mgnien http:// ltpy@ LIP6 CNRS n Soronne Université Pris, Frne 1/23 intertions over time 0 2 4 6 8,,, n for 10 time units time 2/23

More information

Common intervals of genomes. Mathieu Raffinot CNRS LIAFA

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

More information

A Short Introduction to Self-similar Groups

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

50 AMC Lectures Problem Book 2 (36) Substitution Method

50 AMC Lectures Problem Book 2 (36) Substitution Method 0 AMC Letures Prolem Book Sustitution Metho PROBLEMS Prolem : Solve for rel : 9 + 99 + 9 = Prolem : Solve for rel : 0 9 8 8 Prolem : Show tht if 8 Prolem : Show tht + + if rel numers,, n stisf + + = Prolem

More information

If we have a function f(x) which is well-defined for some a x b, its integral over those two values is defined as

If we have a function f(x) which is well-defined for some a x b, its integral over those two values is defined as Y. D. Chong (26) MH28: Complex Methos for the Sciences 2. Integrls If we hve function f(x) which is well-efine for some x, its integrl over those two vlues is efine s N ( ) f(x) = lim x f(x n ) where x

More information

Subsequence Automata with Default Transitions

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

Mathematical Proofs Table of Contents

Mathematical Proofs Table of Contents Mthemtil Proofs Tle of Contents Proof Stnr Pge(s) Are of Trpezoi 7MG. Geometry 8.0 Are of Cirle 6MG., 9 6MG. 7MG. Geometry 8.0 Volume of Right Cirulr Cyliner 6MG. 4 7MG. Geometry 8.0 Volume of Sphere Geometry

More information

COMPUTING THE QUARTET DISTANCE BETWEEN EVOLUTIONARY TREES OF BOUNDED DEGREE

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

More information

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

Separable discrete functions: recognition and sufficient conditions

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

More information

Computing all-terminal reliability of stochastic networks with Binary Decision Diagrams

Computing all-terminal reliability of stochastic networks with Binary Decision Diagrams Computing ll-terminl reliility of stohsti networks with Binry Deision Digrms Gry Hry 1, Corinne Luet 1, n Nikolos Limnios 2 1 LRIA, FRE 2733, 5 rue u Moulin Neuf 80000 AMIENS emil:(orinne.luet, gry.hry)@u-pirie.fr

More information

Equivalent fractions have the same value but they have different denominators. This means they have been divided into a different number of parts.

Equivalent fractions have the same value but they have different denominators. This means they have been divided into a different number of parts. Frtions equivlent frtions Equivlent frtions hve the sme vlue ut they hve ifferent enomintors. This mens they hve een ivie into ifferent numer of prts. Use the wll to fin the equivlent frtions: Wht frtions

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

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

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

More information

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

SEMI-EXCIRCLE OF QUADRILATERAL

SEMI-EXCIRCLE OF QUADRILATERAL JP Journl of Mthemtil Sienes Volume 5, Issue &, 05, Pges - 05 Ishn Pulishing House This pper is ville online t http://wwwiphsiom SEMI-EXCIRCLE OF QUADRILATERAL MASHADI, SRI GEMAWATI, HASRIATI AND HESY

More information

Section 2.1 Special Right Triangles

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

More information

Momentum and Energy Review

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

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

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

More information

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

Spacetime and the Quantum World Questions Fall 2010

Spacetime and the Quantum World Questions Fall 2010 Spetime nd the Quntum World Questions Fll 2010 1. Cliker Questions from Clss: (1) In toss of two die, wht is the proility tht the sum of the outomes is 6? () P (x 1 + x 2 = 6) = 1 36 - out 3% () P (x 1

More information

Matrix Algebra. Matrix Addition, Scalar Multiplication and Transposition. Linear Algebra I 24

Matrix Algebra. Matrix Addition, Scalar Multiplication and Transposition. Linear Algebra I 24 Mtrix lger Mtrix ddition, Sclr Multipliction nd rnsposition Mtrix lger Section.. Mtrix ddition, Sclr Multipliction nd rnsposition rectngulr rry of numers is clled mtrix ( the plurl is mtrices ) nd the

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

A Disambiguation Algorithm for Finite Automata and Functional Transducers

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

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

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

More information

How do we solve these things, especially when they get complicated? How do we know when a system has a solution, and when is it unique?

How do we solve these things, especially when they get complicated? How do we know when a system has a solution, and when is it unique? XII. LINEAR ALGEBRA: SOLVING SYSTEMS OF EQUATIONS Tody we re going to tlk out solving systems of liner equtions. These re prolems tht give couple of equtions with couple of unknowns, like: 6= x + x 7=

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

CIT 596 Theory of Computation 1. Graphs and Digraphs

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

More information

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

Solutions to Problem Set #1

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

More information

Symmetrical Components 1

Symmetrical Components 1 Symmetril Components. Introdution These notes should e red together with Setion. of your text. When performing stedy-stte nlysis of high voltge trnsmission systems, we mke use of the per-phse equivlent

More information

Welcome. Balanced search trees. Balanced Search Trees. Inge Li Gørtz

Welcome. 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 information

SECTION A STUDENT MATERIAL. Part 1. What and Why.?

SECTION A STUDENT MATERIAL. Part 1. What and Why.? SECTION A STUDENT MATERIAL Prt Wht nd Wh.? Student Mteril Prt Prolem n > 0 n > 0 Is the onverse true? Prolem If n is even then n is even. If n is even then n is even. Wht nd Wh? Eploring Pure Mths Are

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

Lecture 11 Binary Decision Diagrams (BDDs)

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

New centroid index for ordering fuzzy numbers

New centroid index for ordering fuzzy numbers Interntionl Sientifi Journl Journl of Mmtis http://mmtissientifi-journlom New entroi inex for orering numers Tyee Hjjri Deprtment of Mmtis, Firoozkooh Brnh, Islmi z University, Firoozkooh, Irn Emil: tyeehjjri@yhooom

More information

Identifying and Classifying 2-D Shapes

Identifying and Classifying 2-D Shapes Ientifying n Clssifying -D Shpes Wht is your sign? The shpe n olour of trffi signs let motorists know importnt informtion suh s: when to stop onstrution res. Some si shpes use in trffi signs re illustrte

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

EE 108A Lecture 2 (c) W. J. Dally and P. Levis 2

EE 108A Lecture 2 (c) W. J. Dally and P. Levis 2 EE08A Leture 2: Comintionl Logi Design EE 08A Leture 2 () 2005-2008 W. J. Dlly n P. Levis Announements Prof. Levis will hve no offie hours on Friy, Jn 8. Ls n setions hve een ssigne - see the we pge Register

More information