HIGH-SPEED REGULAR EXPRESSION MATCHING ENGINE USING MULTI-CHARACTER NFA

Size: px
Start display at page:

Download "HIGH-SPEED REGULAR EXPRESSION MATCHING ENGINE USING MULTI-CHARACTER NFA"

Transcription

1 HIGH-SPEED REGULAR EPRESSION MATCHING ENGINE USING MULTI-CHARACTER NFA Noro Ymgk, Rtnr Shu, Stosh Kmy Systm IP Cor Rsrh Lortors NEC Corporton Kwsk, Kngw, Jpn ml: ABSTRACT An pproh s prsnt or hgh throughput mthng o rgulr xprssons (rgxs) y rst onvrtng thm nto orrsponng Non-trmnst Fnt Automt (NFAs) whh r thn ongur onto FPGA. Th ky novl tur s thnqu tht, or ny gvn rgx, onstruts n NFA tht prosss multpl hrtrs pr lok yl. An nt lgorthm s propos tht outputs n NFA whh prosss tw th numr o hrtrs s th nput on. A thnqu s lso propos tht mplmnts th rng mth oprton (.g. [-z]) ntly. A progrm hs n wrttn tht mplmnts ov s to onvrt rgxs nto NFAs sp n struturl Hrwr Dsgn Lngug (HDL), whh r thn mpp onto FPGA. Prormn s vlut usng rl worl rgxs (Snort rulst). Th rsults monstrt th prtl utlty o th pproh. For xmpl, or st o 2,69 rgxs, whl th stnr - hrtr NFA otns throughput o.25 Gps, our 4- hrtr NFA hvs throughput o 3.63 Gps, whl rqurng only 20% mor LUTs n 6% lss lp-lops.. INTRODUCTION Ntwork nwths hv n rsng rply. At th sm tm, th rquny o ntwork ttks n spm hs n nrsng. It s lso omng mor mportnt to prov vryng Qulty o Srv (QoS) to rnt typs o tr. All ov prolms rqur pkt prossng, ky oprton o whh s srhng pkt ontnts or sp pttrns whh r typlly sp s rgulr xprssons (hnorth ll rgx ). Howvr, ong so t throughput tht mths ntwork nwth, whl rul, hs provn qut hllngng. Typlly, on mroprossors, rgx mthng [] s prorm y rst onvrtng th gvn rgx nto orrsponng NFA or Dtrmnst Fnt Automton (DFA) whh s thn us to srh nput txt hrtrs. Whl DFA n pross h hrtr n onstnt tm (.. t rqurs O() tm), th numr o DFA stts, or n * Ths work ws prtly support y Mnstry o Intrnl Ars n Communtons (MIC) n Jpn. * Th uthors knowlg th sgnnt work ssstn o Ashwn H. S. n mplmntton o th propos pproh. Appl Rsrh Group Stym Computr Srvs Lt. Bnglor, In ml: Rtnr_Shu@stym.om n hrtr rgx, n O(2 n ) [2], whh n som ss n sgnntly gr prormn. On FPGAs, on th othr hn, rgx mthng n prorm usng NFAs, gn tkng onstnt tm pr txt hrtr. An sn NFA sz s only O(n) [2], th ov prolm s vo. Whl NFAs n us on mroprossors s wll, ong so woul rqur O(n) tm pr nput txt hrtr. On FPGAs, ov tm s ru O() y xplotng th vll n-grn prlllsm whh monstrts unmntl vntg FPGAs hv ovr mroprossors or rgx mthng (or mor tls, pls s R. [3]). Whl FPGAs hv n us or smpl strng mthng [4], th ous o ths ppr s on rgx mthng. Whl th ov NFA-s pproh s qut nt n throughput otn s hgh, t s not hgh nough n th ontxt o mult-ggt wr sps xstng toy n vn str sps xpt n th nr utur. So to mprov throughput o ov pproh, som works [5][6] hv n on on onstrutng NFAs tht pross multpl hrtrs pr lok yl (hnorth ll multhrtr NFA ). Whl mprov throughput s shown or som xmpls, no prour s prov or onvrtng n rtrry rgx nto mult-hrtr NFA. Ths ppr lso proposs n pproh or onvrtng rgx nto mult-hrtr NFA, ut th pproh s rnt rom ov prvous works. Algorthms r prov to onvrt n rtrry rgx nto n NFA pl o prossng 2 k hrtrs (or sr nturl numr k) pr lok yl. Prhps s mportntly, n omprson to prvous works, th mount o tonl log rqur or mult-hrtr NFA (rltv to -hrtr NFA) s qut most. In ton, thnqu to gnrt nt rng mth log s lso prsnt. Th ov s r mplmnt n progrm tht outputs NFAs sp n struturl HDL whh n mpp onto n FPGA. Th sgnnt throughput mprovmnt otn usng th propos pproh, usng only rltvly smll mount o tonl log s monstrt y th rsults otn or w thousn rl worl rgxs xtrt rom Snort rulst [7]. Th rst o ths ppr s orgnz s ollows: Ston 2 prsnts th kgroun. Th propos pproh s sr n Ston 3, n th prormn vluton n Ston 4. Fnlly, Ston 5 onlus ths work /08/$ IEEE. 3 Authorz lns us lmt to: IEEE plor. Downlo on Mrh 4, 2009 t 03:6 rom IEEE plor. Rstrtons pply.

2 2. BACKGROUND Frst, w ous on th NFA-s rgx mthng log on FPGAs. Nxt, w suss rlt works usng multhrtr NFA so r. 2.. NFA-s Rgx Mthng Log Shu, t l. propos nw rgx mthng log sgn mthoology [3]. Thy mplmnt h stt o NFA s lp-lop, n ts vlu shows whthr th stt s tv or not. Thy lso propos thr s NFA log struturs or th mthrtrs o rgxs,, n *, n on log strutur or othr hrtrs. In th syntx tr, th nonl mthrtr nos n th l hrtr nos r rpl y th orrsponng log struturs ylng th rqur NFA log. Fgur shows n xmpl o NFAs rgx mthng log or ()*( ), whr th oxs to r hrtr omprtors. Th smpl n nt NFA log sgn nls hgh throughput. Sn log ns to rongur whn rgxs r mo, th us o rongurl v lk FPGA s rqur NFA-s Rgx Mthng Log usng Mult- Chrtr NFA In th ov rhttur, sngl txt hrtr s pross n h lok yl. On th othr hn, to mprov throughput, som works hv n unrtkn tht pross multpl hrtrs pr lok yl. Clrk, t l. [5] propos nw rhttur usng multhrtr NFAs, whos trnston ontons (lls) onsst o multpl hrtrs. In ths rgr, howvr, to tkl whrvr th hrtr strng o th ll strts n th nput strng, th sm numr o NFAs s prossng hrtrs r rqur or rgx onsrng th ost. Thror, lthough t n mprov th throughput, ts lty to o so s lmt y th somwht sgnnt nrs n log sz. Sutton [6] lso proposs nw rhttur usng th smlr mnnr to Clrk, t l., th rn ng prlll or squntl prossng o multpl hrtrs. Ths pproh mplmnts multpl hrtr omprtors twn lp-lops. Howvr, mor th hrtrs pross pr lok yl, th longr h pth twn lp-lops oms. As rsult, oprtng rquny woul rs, rung th gn n throughput. Morovr, non o th ov gvs n tv prour to onstrut multhrtr NFA or n rtrry rgx. 3. PROPOSED METHOD W propos novl log sgn mtho usng multhrtr NFAs to rlz hgh-sp rgx mthng. Th mtho pts svrl rgxs s nput, n outputs srpton o th orrsponng NFAs n HDL. Tht s, t s xut s prlmnry stp or th hrwr ongurton. Ths mtho onssts o two ky tsks; Mth Rsult Input Txt Chrtr Fg.. NFA-s rgx mthng log or ()*( ). NFA Construton: prsng o nput rgx nto th syntx tr, onvrson o th tr nto n NFA strutur, n moton o th NFA to support multpl hrtrs pr lok yl. HDL Gnrton: spton o th ov multhrtr NFA usng struturl HDL. By prormng th NFA onstruton tsk, our mtho n onvrt n nput rgx nto th NFA whh n pross multpl (powr o two) hrtrs pr lok yl. Unlk th rhttur prsnt n R. [5], our mtho onstruts sngl mult-hrtr NFA whh hs lmost th sm numr o stts s n orgnl -hrtr NFA. I only th mthng rgx n not th xt mth poston s rqur, th onstrut mult-hrtr NFA hs xtly th sm numr o stts s th orgnl NFA. In th HDL gnrton tsk, w lso propos thnqu to gnrt nt rng mth log. In ths wy, our mtho n ongur th rgx mthng log whh n pross multpl hrtrs pr lok yl, n t n xpt to mprov throughput. In th ollowng, w xpln th NFA onstruton tsk n th rng mth log sgn. 3.. NFA Construton NFA onstruton tsk onssts o two su-tsks whh r sr n th ollowng stons; Phs : Convrson o rgx n post-orr nto ts NFA grph tht prosss sngl hrtr vry lok yl. Phs 2: Convrson o th ov -hrtr NFA grph nto n NFA grph tht n pross 2 k hrtrs (or sr nturl numr k) hrtrs vry lok yl. In phs, n nput rgx n post-orr orm s us to rt th NFA grph orrsponng to th rgx. In orr to prorm ths tsk or th vrous mthrtrs, vrous grph oprtons hv n vlop. In phs 2, w propos smpl lgorthm s on th trnstv grph losur n xut numr o tms pnng on th numr o prossng hrtrs pr lok yl. Th rsultng grph rprsnts th NFA whh n pross th sr numr o hrtrs, 2 k, n prlll Phs : Rgulr Exprsson to -Chrtr NFA Th nput to th phs o NFA onstruton tsk s rgx n post-orr n th output s -hrtr NFA or th nput rgx. Th rgx n post-orr n sly otn 32 Authorz lns us lmt to: IEEE plor. Downlo on Mrh 4, 2009 t 03:6 rom IEEE plor. Rstrtons pply.

3 or = to lngth(str) 2 swth(str[]) 3 s : push(pro_or(pop(), pop())) 4 s : push(pro_n(pop(), pop())) 5 s - : push(pro_rng(pop(), pop())) 6 s? : push(pro_qus(pop())) 7 s + : push(pro_plus(pop())) 8 s * : push(pro_str(pop())) 9 ult : push(pro_hr(str[])) Fg. 2. Psuo o o phs (NFA onstruton). () () () * * * G 3 G 2 G G 5 G G 9 G 6 () () () * * * Fg. 4. An xmpl o th stk n phs. G 4 G G 8 G 7 G 6 G 0 sl g ll to ntl no 2 or h nl no, nw nl no n onnt ormr to lttr y g ll 3 4 or n = h no n grph 5 or = h no hvng g to no n 6 or j = h no hvng g rom no n 7 (g (n, j) sl g t ln ) 8 nw g (, j) 9 ont. lls o gs (, n), (n, j) 0 ov ll to nw g (, j) 2 rmov th orgnl nput grph gs, n th gs nsrt t lns n 2 G G 4 G 5 G 9 G 2 G 7 G 0 G 6 G 3 G 8 Fg. 3. Psuo o o phs 2 (NFA onstruton). Fg.5. Exmpls o NFA grphs n phs. y post-orr trvrsl o ts syntx tr. For xmpl, th rgx ()*( ), n post-orr orm s *. Fgur 2 shows th lgorthm. Although ths lgorthm s ssntlly th sm s n R. [3], t hs two tonl untons or mthrtrs? n +. In Fgur 2, str s th post-orr rgx n stk s us to stor ps o th NFA grph urng prossng. For xmpl, th pro_hr unton onstruts smpl NFA grph lk th grph G n Fgur 5. In th grph G, thr r thr nos n two gs, n g ll (whh nots n rtrry hrtr) rom th ntl no to th ntrmt on, n n g ll th hrtr str[] rom th ntrmt no to th nl on. Ths untons pt on or two NFA grphs, n thy ll output n NFA grph, whos ntl no hs only output gs ll n nl no hs only nput gs. Th s NFA grphs onstrut y th untons or th mthrtrs,, n * r s on R. [2]. Sn pro_str, pro_qus, n pro_plus tk O(n) tm n th othr untons tk O() tm, whr n s th lngth o th rgx, th lgorthm rqurs O(n 2 ) tm Phs 2: -hrtr to Mult-hrtr NFA In phs 2 o NFA onstruton tsk, onstruton o NFA grph or hnlng multpl hrtrs pr lok yl s prorm. Th lgorthm pts grph or n NFA tht prosss n hrtrs pr lok yl n outputs grph or n NFA tht prosss 2n hrtrs pr lok yl. A 2 k -hrtr NFA s thus otn usng k trtons o th lgorthm. Th lgorthm s qut smlr to th stnr trnstv grph losur lgorthm. It s rmrkl tht suh smpl lgorthm nls ln wy o proung mult-hrtr NFAs or rtrry rgxs. Th lgorthm s shown n Fgur 3. It shoul not tht th gs rrr to on lns 5 n 6 r o th orgnl nput grph or thos nsrt n lns n 2 only n not ny o th nw gs onstrut y th lgorthm. Sn th lgorthm ouls th numr o nl nos, n NFA or 2 k hrtrs wll hv 2 k nl stts, h nl stt orrsponng to hrtr poston, nlng multpl mths t rnt postons n th sm lok yl to urtly rport. I only normton out whthr th nput strng mths rgx or not s rqur (w ll ths non-mth mo ), ollowng smpltons n m; () rpl ln 2 y sl g ll to th nl no, n (2) moy ln 7 to ( g (, n) sl g t ln 2 n g (n, j) sl g t ln ). In ths s, n output NFA hs th sm numr o stts s th nput NFA. Eh g o 2 k -hrtr NFA s ll wth strng o lngth 2 k. For xmpl, n Fgur 6, trnston rom n tv stt long n g ll ours only whn th rst n son nput txt hrtrs n th urrnt lok yl r n, rsptvly. As h stp tks O() tm, th lgorthm rqurs O(n 3 ) tm, n ng th numr o stts n th nput NFA Exmpl W show n xmpl o NFA onstruton or th rgx ()*( ). Th post-orr orm * s pross y phs (Fgur 2). Fgurs 4 n 5 show th stk n th NFA grphs G to G 0, rsptvly. At th n o phs, th -hrtr NFA grph G 0 n otn. 33 Authorz lns us lmt to: IEEE plor. Downlo on Mrh 4, 2009 t 03:6 rom IEEE plor. Rstrtons pply.

4 () () (),, Fg. 6. Exmpls o 2-hrtr NFA grphs. Nxt, th ov -hrtr NFA s onvrt nto th mult-hrtr NFA y phs 2 (Fgur 3). Fgur 6 () shows th NFA grph otn t ln 2 n Fgur 3, whr sh gs show orgnl gs. Fgur 6 () shows th hl-onstrut NFA grph tr n = 2, whr w omt th orgnl gs. Ths tsks r prorm or ll o n, n thn th 2-hrtr NFA grph s shown n Fgur 6 () n otn, whr th rght nl stt oms tv whn mth ours t th rst poston o th two nput hrtr postons, th lt stt oms tv whn mth ours t th son hrtr poston. I mths our t oth postons, oth stts om tv. Smlrly, w n otn th 4-hrtr NFA rom ov 2-hrtr NFA. Thus, th 2 k -hrtr NFA n otn y k trtons o phs Rng Mthng Th rng mthng rgx mths rng o onsutv hrtrs. For xmpl, [0-9] mths ny sngl numr hrtr. Ent log or rng mthng s otn s ollows. Consr n n-t nput I ompos o ts x n- (MSB) to x 0 (LSB). Now onsr th Booln unton I C (C s n n-t onstnt, 0 C 2 n ) whh s or ll I C n 0 othrws. Frst, th Shnnon omposton o ny Booln unton n o n nputs s; n ( xn, x0 ) = xn gn ( () + xn hn ( I n rprsnts I C, thn xplotng th monoton ntur o n (n th truth tl output olumn, ll zros r t th ottom), w n rv; xn gn ( ( n = 0) n( xn, = (2) xn + hn ( x0 ) ( n = ) whr n- s th MSB o C. Smlrly, or th I C; xn + g n ( ( n = 0) n( xn, = (3) xn hn ( ( n = ) I 2 I 2 I Fg. 7. Log mplmntton o 2 I. Usng th ov qutons rursvly, on otns nt rng mthng log. For xmpl, or n = 4, th log or 2 I s shown n Fgur 7. For 8-t hrtrs, th ov thnqu, whh sms somwht ttr thn th on propos n R. [8], nls rng mthng log to ongur usng only v 4-nput LUTs (t most) or rtrry rngs Prototyp Implmntton W mplmnt our s s sotwr tool, nm Rgulr Exprsson to Vrlog NFA trnsltor (REVN). Its nput, on or mor rgxs, r onvrt nto -hrtr NFAs, whh r thn onvrt nto mult-hrtr NFAs, whh, sp n Vrlog-HDL, s th output. Th nput rgxs to REVN r sp n th stnr nx ormt, n onorm to Prl-Comptl RgEx (PCRE) [9]. Th mthrtrs pt r *, +,?,, (, ), [, -, ], ^, $,., \, {, n }. REVN hnls ntrvl quntrs, {n}, {n, }, n {n, m} n strghtorwr mnnr, or xmpl, {5} s onvrt to. Th hrtrs pt r ny hrtr wth ASCII o rom 0x20 (sp) to 0x7 ( ), th gnr hrtr typs, \, \D, \s, \S, \w, n \W, n th non-prntng hrtrs, \, \, \, \n, \r, \t, n \x (hrtr wth hx o). Th s nsnstv mth, n sngl ln / mult lns mth r lso support. Furthrmor, REVN hs n opton whh sps mth mo or non-mth mo, s sr n Ston Th HDL gnrton tsk ssntlly nvolvs trvrsng th onstrut NFA grph n or ts nos, gs n lls, spyng lp-lops, wrs n omntonl log rsptvly, n struturl Vrlog-HDL. To ongur nt hrwr log n trms o log sz, th hrtr omprtors r shr mong multpl trnstons. 4. PERFORMANCE EVALUATION In ths ston, th prormn o rgx mthng log onstrut y our propos mtho (usng REVN) s vlut y ongurng t onto FPGA. In ths vluton, to us mnngul rgxs, w xtrt thm rom Snort 2.4 rulst (unrgstr usr rls) [7]. Conrtly, w ous on ontnt, nos, urontnt, pr, n rgx optons, n xtrt 2,69 rgxs whh o not nlu ntrvl quntrs n tonl 357 rgxs (3,048 rgxs n ll) whh nlu thm. W slt 64, 28, 256, 52,,024, n 2,048 rgxs 34 Authorz lns us lmt to: IEEE plor. Downlo on Mrh 4, 2009 t 03:6 rom IEEE plor. Rstrtons pply.

5 Log usg o 2,69 rgxs (non-mth mo). Tl 2. -hrtr NFA 2-hrtr NFA 4-hrtr NFA 8-hrtr NFA #rgxs #hrs ALUT Rgstr ALUT Rgstr ALUT Rgstr ALUT Rgstr Us Utl. Us. Us Utl. Us. Us Utl. Us. Us Utl. Us % 908,044 % 96 (0%),54 % 932 (03%) 3,44 2% 964 (06%) 28,955,752 %,72,856 %,75 (00%) 2,524 2%,732 (0%) 5,459 4%,763 (02%) 256 3,877 3,23 2% 3,80 3,389 2% 3,90 (00%) 4,373 3% 3,204 (0%) 8,686 6% 3,237 (02%) 52 7,803 5,965 4% 5,88 6,34 4% 5,992 (02%) 8,046 6% 5,907 (00%) 9,595 4% 5,953 (0%),024 5,506,42 8%,340 2,072 8%,640 (03%) 4,765 0%,327 (00%) N/A N/A N/A 2,048 30,956 22,270 6% 22,6 22,697 6% 22,05 ( 99%) 26,943 9% 20,92 ( 94%) N/A N/A N/A 2,69 40,896 28,40 20% 28,278 29,303 20% 28,379 (00%) 34,46 24% 26,636 ( 94%) N/A N/A N/A Throughput [Gps] Fg Tl. Mxmum oprtng rquny,, n throughput, T, o 2,69 rgxs (non-mth mo). #rgxs #hrs -hrtr NFA 2-hrtr NFA 4-hrtr NFA 8-hrtr NFA [MHz] T [Gps] [MHz] T [Gps] [MHz] T [Gps] [MHz] T [Gps] (58%) (28%) (302%) 28, (8%) (245%) (306%) 256 3, (54%) (245%) (254%) 52 7, (64%) (22%) (30%),024 5, (67%) (250%) N/A N/A 2,048 30, (9%) (268%) N/A N/A 2,69 40, (84%) (290%) N/A N/A -hrtr NFA 2-hrtr NFA 4-hrtr NFA 8-hrtr NFA Num. o Chrtrs [K] Throughput o 2,69 rgxs (non-mth mo). rnomly rom th ov two rgx sts, n onstrut -, 2-, 4-, n 8-hrtr NFAs or h group. W trgt Altr Strtx II (EP2S80) FPGA [0] n us Qurtus II 7.2 SP [] wthout ny optmzton optons. 4.. Exprmntl Rsults Tls n 2 show th mxmum oprtng rquny, throughput, n th log usg or th 2,69 rgx st n non-mth mo. Fgur 8 shows th throughput or th sm rgxs. Th throughput s lult y multplyng th numr o ts n hrtrs pross vry lok yl y oprtng rquny. In Tls n 2, #hr (th numr o hrtrs) shows th totl hrtr ount o th rgxs xpt mthrtrs, whr th gnr hrtr typs, th non-prntng hrtrs, n rng mth r ount s on hrtr. Prntg wthn ( ) shows n nrs ompr to -hrtr NFA or h rgx group, n N/A shows unvll rsults us o vry long omplton tm n Qurtus II. Tl n Fgur 8 show tht lthough mult-hrtr NFA n mprov throughput, th vrg nrs s not proportonl to th numr o hrtrs pross ut pproxmtly 70%, 250%, n 290% or 2-, 4-, n 8-hrtr NFAs, rsptvly. Tl 2 shows tht th log usg nrss s th totl hrtr Log usg o 2,69 rgxs (mth mo). Tl 3. 2-hrtr NFA 4-hrtr NFA #rgxs #hrs ALUT Rgstr ALUT Rgstr Us Utl. Us. Us Utl. Us ,060 % 980 ( 64 ),568 %,24 ( 64 ) 28,955,939 %,843 ( 28 ) 2,590 2% 2,6 ( 28 ) 256 3,877 3,572 2% 3,446 ( 256 ) 4,60 3% 3,972 ( 256 ) 52 7,803 6,767 5% 6,504 ( 52 ) 8,605 6% 7,443 ( 52 ),024 5,506 2,978 9% 2,65 (,0) 6,003 % 4,40 (,028) 2,048 30,956 24,825 7% 24,50 (2,35) 29,95 2% 27,055 (2,045) 2,69 40,896 3,76 22% 30,936 (2,557) 38,29 27% 34,78 (2,75) ount s nrs. It lso nrss s th numr o hrtrs pross s nrs ut th rgstr usg s pproxmtly onstnt. Although our mtho wth nonmth mo n onstrut mult-hrtr NFA wthout hng n th numr o stts, th mult-hrtr NFA hs slghtly omplx trnston log, whh grs oprtng rquny o th onstrut mult-hrtr NFA. In prtulr, th 8-hrtr NFA log usg sms sproportontly hghr. Ths s u to th rhttur o ALUTs, sgnntly mor o whh r rqur or trnston log or 8-hrtr strngs. Shrng n trnston log ns to xplor to ru th log rqurmnts. Th slght rns n lp-lop ount r onsr to u to th optmzton on y Qurtus II. Nxt, Tl 3 shows th log usg or th sm st n mth mo. In ths mo, our mtho ouls th nl stts or h rgx orng to th numr o hrtrs pross. Illy, th numr o nrs rgstrs s lult y (m ) N r, whr m (m 2) s th numr o hrtrs pross n N r s th numr o rgxs. Eh vlu wthn ( ) shows th nrs o rgstrs pr nrs hrtrs pross ompr to th sm multhrtr NFA n non-mth mo (Tl 2). In Tl 3, th xtr rgstrs s lmost th sm s th numr o rgxs. Du to thm, th log usg nrss mor thn on n non-mth mo. Howvr, w onrm tht th throughput shows smlr rsults to non-mth mo. Tht 35 Authorz lns us lmt to: IEEE plor. Downlo on Mrh 4, 2009 t 03:6 rom IEEE plor. Rstrtons pply.

6 Throughput [Gps] hrtr NFA 2-hrtr NFA 4-hrtr NFA 8-hrtr NFA Num. o Chrtrs [K] Fg. 9. Throughput o 3,048 rgxs (non-mth mo). s, th normton o th mthng poston n otn wthout grton o throughput y usng our mtho. Fgurs 9 n 0 show th throughput n log usg or th 3,048 rgx st n non-mth mo. Du to REVN hnlng o ntrvl quntrs, ths rgx st nlus mor hrtrs thn th prvous on. In t, whl th prvous st nlus up to 40,896 hrtrs, ths st nlus up to 95,577 hrtrs. In ths s, lthough th throughput lns rply up to 20,000 hrtrs, t os not o so rom thn on. Th log usg nrss n proporton to th totl hrtr ount. In th s o 95,577 hrtrs, whl th log usg s mor thn 90% n 2- n 4- hrtr NFAs, th throughput hv s n 2 Gps rsptvly. Thror, our mtho s xpt to hv hgh-sp rgx mthng. Fnlly, w vlut ny o h mult-hrtr NFA y usng prormn [5] shown s Equton (4). Ths s mtr onsrng throughput n hrtr nsty, n log wth hghr prormn s mor nt log. Prormn = Throughput Dnsty (4) = Throughput Chrs / LEs Th numr o Log Elmnts (LEs) n Strtx II n otn s.25 tms th numr o ALUTs [0]. For 2,69 rgxs n non-mth mo, prormn o -, 2-, n 4-hrtr NFA r.44, 2.57, n 3.48 G/(s LE), rsptvly. In ton, or 3,048 rgxs n non-mth mo, thos o -, 2-hrtr NFA r.20 n 2.0 G/(s LE), rsptvly. In th othr rul groups xpt 8- hrtr NFA, smlr trns r not (8-hrtr NFA shows smlr vlus to -hrtr NFA). Thror, 4- hrtr NFA s urrntly th most nt. 5. CONCLUSION In ths ppr, w propos novl rgx mthng log sgn thnqu usng mult-hrtr NFAs. A smpl lgorthm or onstrutng suh NFAs or rtrry rgxs ws prsnt. Also, n nt rng mth log sgn thnqu s sr. Furthr, th propos s wr mplmnt n sotwr tool (REVN) n thr utlty ws tst on w thousn rl worl rgxs. Th rsults o prormn vluton show tht our mtho n sgnntly mprov ALUT Utlzton Fg % 80% 60% 40% 20% 0% -hrtr NFA 2-hrtr NFA 4-hrtr NFA 8-hrtr NFA Num. o Chrtrs [K] Log usg o 3,048 rgxs (non-mth mo). throughput t only rltvly most ost n trms o tonl log vn wthout turnng on optmztons whl prormng FPGA mppng. By turnng on som o thm, log sp s lkly to nrs. Thror, urthr throughput mprovmnt n xpt. Futur rtons to xtn th work nlu ruton o log sz y shrng th stts mong multpl NFA, shrng trnston log, mor tl prormn vlutons n vrous ss n on th tul systm, n nhnmnt o PCRE support vn urthr. 6. REFERENCES [] J. E. F. Frl, Mstrng Rgulr Exprssons: Powrul Thnqus or Prl n Othr Tools, O Rlly M, In., Jn [2] J. E. Hoprot, R. Motwn, n J. D. Ullmn, Introuton to Automt Thory, Lngugs n Computlty, 2n Eton, Ason-Wsly, Nov [3] R. Shu n V. K. Prsnn, Fst Rgulr Exprsson Mthng usng FPGAs, n Pro. 9th IEEE Symosum on Fl-Progrmml Custom Computng Mhns (FCCM 0), pp , Aprl 200. [4] I. Sours n D. Pnvmtktos, Fst, Lrg-Sl Strng Mth or 0Gps FPGA-s Ntwork Intruson Dtton Systm, n Pro. 3th Intrntonl Conrn on Fl Progrmml Log n Appltons (FPL 03), pp , Spt [5] C. R. Clrk n D. E. Shmml, Sll Pttrn Mthng or Hgh Sp Ntworks, n Pro. 2th IEEE Symposum on Fl-Progrmml Custom Computng Mhns (FCCM 04), pp , Aprl [6] P. Sutton, Prtl Chrtr Dong or Improv Rgulr Exprsson Mthng n FPGAs, n Pro IEEE Intrntonl Conrn on Fl-Progrmml Thnology (ICFPT 04), pp.25-32, D [7] [8] E. W. Sprzngl, CMOS Implmnttons o Rng Chk Crut, Dpt. o CSE, Wshngton Unv. Thnl Rport WUCSE , July, [9] [0] Strtx II Dv Hnook: Volum, vll t [] qts-nx.html 36 Authorz lns us lmt to: IEEE plor. Downlo on Mrh 4, 2009 t 03:6 rom IEEE plor. Rstrtons pply.

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

Depth First Search. Yufei Tao. Department of Computer Science and Engineering Chinese University of Hong Kong Dprtmnt o Computr Sn n Ennrn Cns Unvrsty o Hon Kon W v lry lrn rt rst sr (BFS). Toy, w wll suss ts sstr vrson : t pt rst sr (DFS) lortm. Our susson wll on n ous on rt rps, us t xtnson to unrt rps s strtorwr.

More information

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

5/1/2018. Huffman Coding Trees. Huffman Coding Trees. Huffman Coding Trees. Huffman Coding Trees. Huffman Coding Trees. Huffman Coding Trees /1/018 W usully no strns y ssnn -lnt os to ll rtrs n t lpt (or mpl, 8-t on n ASCII). Howvr, rnt rtrs our wt rnt rquns, w n sv mmory n ru trnsmttl tm y usn vrl-lnt non. T s to ssn sortr os to rtrs tt our

More information

Present state Next state Q + M N

Present state Next state Q + M N Qustion 1. An M-N lip-lop works s ollows: I MN=00, th nxt stt o th lip lop is 0. I MN=01, th nxt stt o th lip-lop is th sm s th prsnt stt I MN=10, th nxt stt o th lip-lop is th omplmnt o th prsnt stt I

More information

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

Spanning Trees. BFS, DFS spanning tree Minimum spanning tree. March 28, 2018 Cinda Heeren / Geoffrey Tien 1 Spnnn Trs BFS, DFS spnnn tr Mnmum spnnn tr Mr 28, 2018 Cn Hrn / Gory Tn 1 Dpt-rst sr Vsts vrts lon snl pt s r s t n o, n tn ktrks to t rst junton n rsums own notr pt Mr 28, 2018 Cn Hrn / Gory Tn 2 Dpt-rst

More information

Lecture 20: Minimum Spanning Trees (CLRS 23)

Lecture 20: Minimum Spanning Trees (CLRS 23) Ltur 0: Mnmum Spnnn Trs (CLRS 3) Jun, 00 Grps Lst tm w n (wt) rps (unrt/rt) n ntrou s rp voulry (vrtx,, r, pt, onnt omponnts,... ) W lso suss jny lst n jny mtrx rprsntton W wll us jny lst rprsntton unlss

More information

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

Weighted Graphs. Weighted graphs may be either directed or undirected. 1 In mny ppltons, o rp s n ssot numrl vlu, ll wt. Usully, t wts r nonntv ntrs. Wt rps my tr rt or unrt. T wt o n s otn rrr to s t "ost" o t. In ppltons, t wt my msur o t lnt o rout, t pty o ln, t nry rqur

More information

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

Improving Union. Implementation. Union-by-size Code. Union-by-Size Find Analysis. Path Compression! Improving Find find(e) POW CSE 36: Dt Struturs Top #10 T Dynm (Equvln) Duo: Unon-y-Sz & Pt Comprsson Wk!! Luk MDowll Summr Qurtr 003 M! ZING Wt s Goo Mz? Mz Construton lortm Gvn: ollton o rooms V Conntons twn t rooms (ntlly

More information

In which direction do compass needles always align? Why?

In which direction do compass needles always align? Why? AQA Trloy Unt 6.7 Mntsm n Eltromntsm - Hr 1 Complt t p ll: Mnt or s typ o or n t s stronst t t o t mnt. Tr r two typs o mnt pol: n. Wrt wt woul ppn twn t pols n o t mnt ntrtons low: Drw t mnt l lns on

More information

, each of which is a tree, and whose roots r 1. , respectively, are children of r. Data Structures & File Management

, each of which is a tree, and whose roots r 1. , respectively, are children of r. Data Structures & File Management nrl tr T is init st o on or mor nos suh tht thr is on sint no r, ll th root o T, n th rminin nos r prtition into n isjoint susts T, T,, T n, h o whih is tr, n whos roots r, r,, r n, rsptivly, r hilrn o

More information

An undirected graph G = (V, E) V a set of vertices E a set of unordered edges (v,w) where v, w in V

An undirected graph G = (V, E) V a set of vertices E a set of unordered edges (v,w) where v, w in V Unirt Grphs An unirt grph G = (V, E) V st o vrtis E st o unorr gs (v,w) whr v, w in V USE: to mol symmtri rltionships twn ntitis vrtis v n w r jnt i thr is n g (v,w) [or (w,v)] th g (v,w) is inint upon

More information

Planar Upward Drawings

Planar Upward Drawings C.S. 252 Pro. Rorto Tmssi Computtionl Gomtry Sm. II, 1992 1993 Dt: My 3, 1993 Sri: Shmsi Moussvi Plnr Upwr Drwings 1 Thorm: G is yli i n only i it hs upwr rwing. Proo: 1. An upwr rwing is yli. Follow th

More information

(Minimum) Spanning Trees

(Minimum) Spanning Trees (Mnmum) Spnnn Trs Spnnn trs Kruskl's lortm Novmr 23, 2017 Cn Hrn / Gory Tn 1 Spnnn trs Gvn G = V, E, spnnn tr o G s onnt surp o G wt xtly V 1 s mnml sust o s tt onnts ll t vrts o G G = Spnnn trs Novmr

More information

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

Cycles and Simple Cycles. Paths and Simple Paths. Trees. Problem: There is No Completely Standard Terminology! Outlin Computr Sin 331, Spnnin, n Surphs Mik Joson Dprtmnt o Computr Sin Univrsity o Clry Ltur #30 1 Introution 2 3 Dinition 4 Spnnin 5 6 Mik Joson (Univrsity o Clry) Computr Sin 331 Ltur #30 1 / 20 Mik

More information

ECE COMBINATIONAL BUILDING BLOCKS - INVEST 13 DECODERS AND ENCODERS

ECE COMBINATIONAL BUILDING BLOCKS - INVEST 13 DECODERS AND ENCODERS C 24 - COMBINATIONAL BUILDING BLOCKS - INVST 3 DCODS AND NCODS FALL 23 AP FLZ To o "wll" on this invstition you must not only t th riht nswrs ut must lso o nt, omplt n onis writups tht mk ovious wht h

More information

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

Platform Controls. 1-1 Joystick Controllers. Boom Up/Down Controller Adjustments Ston 7 - Rpr Prours Srv Mnul - Son Eton Pltorm Controls 1-1 Joystk Controllrs Mntnn oystk ontrollrs t t propr sttns s ssntl to s mn oprton. Evry oystk ontrollr soul oprt smootly n prov proportonl sp ontrol

More information

The University of Sydney MATH 2009

The University of Sydney MATH 2009 T Unvrsty o Syny MATH 2009 APH THEOY Tutorl 7 Solutons 2004 1. Lt t sonnt plnr rp sown. Drw ts ul, n t ul o t ul ( ). Sow tt s sonnt plnr rp, tn s onnt. Du tt ( ) s not somorp to. ( ) A onnt rp s on n

More information

CS September 2018

CS September 2018 Loil los Distriut Systms 06. Loil los Assin squn numrs to msss All ooprtin prosss n r on orr o vnts vs. physil los: rport tim o y Assum no ntrl tim sour Eh systm mintins its own lol lo No totl orrin o

More information

Constructive Geometric Constraint Solving

Constructive Geometric Constraint Solving Construtiv Gomtri Constrint Solving Antoni Soto i Rir Dprtmnt Llngutgs i Sistms Inormàtis Univrsitt Politèni Ctluny Brlon, Sptmr 2002 CGCS p.1/37 Prliminris CGCS p.2/37 Gomtri onstrint prolm C 2 D L BC

More information

Outline. 1 Introduction. 2 Min-Cost Spanning Trees. 4 Example

Outline. 1 Introduction. 2 Min-Cost Spanning Trees. 4 Example Outlin Computr Sin 33 Computtion o Minimum-Cost Spnnin Trs Prim's Alorithm Introution Mik Joson Dprtmnt o Computr Sin Univrsity o Clry Ltur #33 3 Alorithm Gnrl Constrution Mik Joson (Univrsity o Clry)

More information

Minimum Spanning Trees (CLRS 23)

Minimum Spanning Trees (CLRS 23) Mnmum Spnnn Trs (CLRS 3) T prolm Rll t nton o spnnn tr: Gvn onnt, unrt rp G = (V, E), sust o s o G su tt ty onnt ll vrts n G n orm no yls s ll spnnn tr (ST) o G. Any unrt, onnt rp s spnnn tr. Atully, rp

More information

b.) v d =? Example 2 l = 50 m, D = 1.0 mm, E = 6 V, " = 1.72 #10 $8 % & m, and r = 0.5 % a.) R =? c.) V ab =? a.) R eq =?

b.) v d =? Example 2 l = 50 m, D = 1.0 mm, E = 6 V,  = 1.72 #10 $8 % & m, and r = 0.5 % a.) R =? c.) V ab =? a.) R eq =? xmpl : An 8-gug oppr wr hs nomnl mtr o. mm. Ths wr rrs onstnt urrnt o.67 A to W lmp. Th nsty o r ltrons s 8.5 x 8 ltrons pr u mtr. Fn th mgntu o. th urrnt nsty. th rt vloty xmpl D. mm,.67 A, n N 8.5" 8

More information

Graphs. Graphs. Graphs: Basic Terminology. Directed Graphs. Dr Papalaskari 1

Graphs. Graphs. Graphs: Basic Terminology. Directed Graphs. Dr Papalaskari 1 CSC 00 Disrt Struturs : Introuon to Grph Thory Grphs Grphs CSC 00 Disrt Struturs Villnov Univrsity Grphs r isrt struturs onsisng o vrs n gs tht onnt ths vrs. Grphs n us to mol: omputr systms/ntworks mthml

More information

1 Introduction to Modulo 7 Arithmetic

1 Introduction to Modulo 7 Arithmetic 1 Introution to Moulo 7 Arithmti Bor w try our hn t solvin som hr Moulr KnKns, lt s tk los look t on moulr rithmti, mo 7 rithmti. You ll s in this sminr tht rithmti moulo prim is quit irnt rom th ons w

More information

SAMPLE CSc 340 EXAM QUESTIONS WITH SOLUTIONS: part 2

SAMPLE CSc 340 EXAM QUESTIONS WITH SOLUTIONS: part 2 AMPLE C EXAM UETION WITH OLUTION: prt. It n sown tt l / wr.7888l. I Φ nots orul or pprotng t vlu o tn t n sown tt t trunton rror o ts pproton s o t or or so onstnts ; tt s Not tt / L Φ L.. Φ.. /. /.. Φ..787.

More information

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

CMPS 2200 Fall Graphs. Carola Wenk. Slides courtesy of Charles Leiserson with changes and additions by Carola Wenk CMPS 2200 Fll 2017 Grps Crol Wnk Sls ourtsy o Crls Lsrson wt ns n tons y Crol Wnk 10/23/17 CMPS 2200 Intro. to Alortms 1 Grps Dnton. A rt rp (rp) G = (V, E) s n orr pr onsstn o st V o vrts (snulr: vrtx),

More information

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

4.1 Interval Scheduling. Chapter 4. Greedy Algorithms. Interval Scheduling: Greedy Algorithms. Interval Scheduling. Interval scheduling. Cptr 4 4 Intrvl Suln Gry Alortms Sls y Kvn Wyn Copyrt 005 Prson-Ason Wsly All rts rsrv Intrvl Suln Intrvl Suln: Gry Alortms Intrvl suln! Jo strts t s n nss t! Two os omptl ty on't ovrlp! Gol: n mxmum sust

More information

Seven-Segment Display Driver

Seven-Segment Display Driver 7-Smnt Disply Drivr, Ron s in 7-Smnt Disply Drivr, Ron s in Prolm 62. 00 0 0 00 0000 000 00 000 0 000 00 0 00 00 0 0 0 000 00 0 00 BCD Diits in inry Dsin Drivr Loi 4 inputs, 7 outputs 7 mps, h with 6 on

More information

Using the Printable Sticker Function. Using the Edit Screen. Computer. Tablet. ScanNCutCanvas

Using the Printable Sticker Function. Using the Edit Screen. Computer. Tablet. ScanNCutCanvas SnNCutCnvs Using th Printl Stikr Funtion On-o--kin stikrs n sily rt y using your inkjt printr n th Dirt Cut untion o th SnNCut mhin. For inormtion on si oprtions o th SnNCutCnvs, rr to th Hlp. To viw th

More information

CSC Design and Analysis of Algorithms. Example: Change-Making Problem

CSC Design and Analysis of Algorithms. Example: Change-Making Problem CSC 801- Dsign n Anlysis of Algorithms Ltur 11 Gry Thniqu Exmpl: Chng-Mking Prolm Givn unlimit mounts of oins of nomintions 1 > > m, giv hng for mount n with th lst numr of oins Exmpl: 1 = 25, 2 =10, =

More information

CSE 373: AVL trees. Warmup: Warmup. Interlude: Exploring the balance invariant. AVL Trees: Invariants. AVL tree invariants review

CSE 373: AVL trees. Warmup: Warmup. Interlude: Exploring the balance invariant. AVL Trees: Invariants. AVL tree invariants review rmup CSE 7: AVL trs rmup: ht is n invrint? Mihl L Friy, Jn 9, 0 ht r th AVL tr invrints, xtly? Disuss with your nighor. AVL Trs: Invrints Intrlu: Exploring th ln invrint Cor i: xtr invrint to BSTs tht

More information

(2) If we multiplied a row of B by λ, then the value is also multiplied by λ(here lambda could be 0). namely

(2) If we multiplied a row of B by λ, then the value is also multiplied by λ(here lambda could be 0). namely . DETERMINANT.. Dtrminnt. Introution:I you think row vtor o mtrix s oorint o vtors in sp, thn th gomtri mning o th rnk o th mtrix is th imnsion o th prlllppi spnn y thm. But w r not only r out th imnsion,

More information

The R-Tree. Yufei Tao. ITEE University of Queensland. INFS4205/7205, Uni of Queensland

The R-Tree. Yufei Tao. ITEE University of Queensland. INFS4205/7205, Uni of Queensland Yu To ITEE Unvrsty o Qunsln W wll stuy nw strutur ll t R-tr, w n tout o s mult-mnsonl xtnson o t B-tr. T R-tr supports ntly vrty o qurs (s w wll n out ltr n t ours), n s mplmnt n numrous ts systms. Our

More information

CSE 373: More on graphs; DFS and BFS. Michael Lee Wednesday, Feb 14, 2018

CSE 373: More on graphs; DFS and BFS. Michael Lee Wednesday, Feb 14, 2018 CSE 373: Mor on grphs; DFS n BFS Mihl L Wnsy, F 14, 2018 1 Wrmup Wrmup: Disuss with your nighor: Rmin your nighor: wht is simpl grph? Suppos w hv simpl, irt grph with x nos. Wht is th mximum numr of gs

More information

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

Graph Search (6A) Young Won Lim 5/18/18 Grp Sr (6A) Youn Won Lm Copyrt () 2015 2018 Youn W. Lm. Prmon rnt to opy, trut n/or moy t oumnt unr t trm o t GNU Fr Doumntton Ln, Vron 1.2 or ny ltr vron pul y t Fr Sotwr Founton; wt no Invrnt Ston, no

More information

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

Having a glimpse of some of the possibilities for solutions of linear systems, we move to methods of finding these solutions. The basic idea we shall Hvn lps o so o t posslts or solutons o lnr systs, w ov to tos o nn ts solutons. T s w sll us s to try to sply t syst y lntn so o t vrls n so ts qutons. Tus, w rr to t to s lnton. T prry oprton nvolv s

More information

V={A,B,C,D,E} E={ (A,D),(A,E),(B,D), (B,E),(C,D),(C,E)}

V={A,B,C,D,E} E={ (A,D),(A,E),(B,D), (B,E),(C,D),(C,E)} s s of s Computr Sin & Enginring 423/823 Dsign n Anlysis of Ltur 03 (Chptr 22) Stphn Sott (Apt from Vinohnrn N. Vriym) s of s s r strt t typs tht r pplil to numrous prolms Cn ptur ntitis, rltionships twn

More information

CSE 373. Graphs 1: Concepts, Depth/Breadth-First Search reading: Weiss Ch. 9. slides created by Marty Stepp

CSE 373. Graphs 1: Concepts, Depth/Breadth-First Search reading: Weiss Ch. 9. slides created by Marty Stepp CSE 373 Grphs 1: Conpts, Dpth/Brth-First Srh ring: Wiss Ch. 9 slis rt y Mrty Stpp http://www.s.wshington.u/373/ Univrsity o Wshington, ll rights rsrv. 1 Wht is grph? 56 Tokyo Sttl Soul 128 16 30 181 140

More information

Graphs. CSC 1300 Discrete Structures Villanova University. Villanova CSC Dr Papalaskari

Graphs. CSC 1300 Discrete Structures Villanova University. Villanova CSC Dr Papalaskari Grphs CSC 1300 Disrt Struturs Villnov Univrsity Grphs Grphs r isrt struturs onsis?ng of vr?s n gs tht onnt ths vr?s. Grphs n us to mol: omputr systms/ntworks mthm?l rl?ons logi iruit lyout jos/prosss f

More information

Scheduling for Synthesizing Portable System with Energy Harvesting and Storage

Scheduling for Synthesizing Portable System with Energy Harvesting and Storage Shulng or Synthszng Portl Systm wth Enrgy Hrvstng n Storg Hsn-Ho Hung n Youn-Long Ln Dprtmnt o Computr Sn Ntonl Tsng Hu Unvrsty, TAIWAN s986@m98.nthu.u.tw; yln@s.nthu.u.tw Astrt Shulng s on o th most mportnt

More information

Outline. Computer Science 331. Computation of Min-Cost Spanning Trees. Costs of Spanning Trees in Weighted Graphs

Outline. Computer Science 331. Computation of Min-Cost Spanning Trees. Costs of Spanning Trees in Weighted Graphs Outlin Computr Sin 33 Computtion o Minimum-Cost Spnnin Trs Prim s Mik Joson Dprtmnt o Computr Sin Univrsity o Clry Ltur #34 Introution Min-Cost Spnnin Trs 3 Gnrl Constrution 4 5 Trmintion n Eiiny 6 Aitionl

More information

COMPLEXITY OF COUNTING PLANAR TILINGS BY TWO BARS

COMPLEXITY OF COUNTING PLANAR TILINGS BY TWO BARS OMPLXITY O OUNTING PLNR TILINGS Y TWO RS KYL MYR strt. W show tht th prolm o trmining th numr o wys o tiling plnr igur with horizontl n vrtil r is #P-omplt. W uil o o th rsults o uquir, Nivt, Rmil, n Roson

More information

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

Divided. diamonds. Mimic the look of facets in a bracelet that s deceptively deep RIGHT-ANGLE WEAVE. designed by Peggy Brinkman Matteliano RIGHT-ANGLE WEAVE Dv mons Mm t look o ts n rlt tt s ptvly p sn y Py Brnkmn Mttlno Dv your mons nto trnls o two or our olors. FCT-SCON0216_BNB66 2012 Klm Pulsn Co. Ts mtrl my not rprou n ny orm wtout prmsson

More information

Problem solving by search

Problem solving by search Prolm solving y srh Tomáš voo Dprtmnt o Cyrntis, Vision or Roots n Autonomous ystms Mrh 5, 208 / 3 Outlin rh prolm. tt sp grphs. rh trs. trtgis, whih tr rnhs to hoos? trtgy/algorithm proprtis? Progrmming

More information

Lecture II: Minimium Spanning Tree Algorithms

Lecture II: Minimium Spanning Tree Algorithms Ltur II: Mnmum Spnnn Tr Alortms Dr Krn T. Hrly Dprtmnt o Computr Sn Unvrsty Coll Cork Aprl 0 KH (/0/) Ltur II: Mnmum Spnnn Tr Alortms Aprl 0 / 5 Mnmum Spnnn Trs Mnmum Spnnn Trs Spnnn Tr tr orm rom rp s

More information

FSA. CmSc 365 Theory of Computation. Finite State Automata and Regular Expressions (Chapter 2, Section 2.3) ALPHABET operations: U, concatenation, *

FSA. CmSc 365 Theory of Computation. Finite State Automata and Regular Expressions (Chapter 2, Section 2.3) ALPHABET operations: U, concatenation, * CmSc 365 Thory of Computtion Finit Stt Automt nd Rgulr Exprssions (Chptr 2, Sction 2.3) ALPHABET oprtions: U, conctntion, * otin otin Strings Form Rgulr xprssions dscri Closd undr U, conctntion nd * (if

More information

QUESTIONS BEGIN HERE!

QUESTIONS BEGIN HERE! Points miss: Stunt's Nm: Totl sor: /100 points Est Tnnss Stt Univrsity Dprtmnt o Computr n Inormtion Sins CSCI 2710 (Trno) Disrt Struturs TEST or Sprin Smstr, 2005 R this or strtin! This tst is los ook

More information

Minimum Spanning Trees (CLRS 23)

Minimum Spanning Trees (CLRS 23) Mnmum Spnnn Trs (CLRS 3) T prolm Gvn onnt, unrt rp G = (V, E), sust o s o G su tt ty onnt ll vrts n G n orm no yls s ll spnnn tr (ST) o G. Clm: Any unrt, onnt rp s spnnn tr (n nrl rp my v mny spnnn trs).

More information

Why the Junction Tree Algorithm? The Junction Tree Algorithm. Clique Potential Representation. Overview. Chris Williams 1.

Why the Junction Tree Algorithm? The Junction Tree Algorithm. Clique Potential Representation. Overview. Chris Williams 1. Why th Juntion Tr lgorithm? Th Juntion Tr lgorithm hris Willims 1 Shool of Informtis, Univrsity of Einurgh Otor 2009 Th JT is gnrl-purpos lgorithm for omputing (onitionl) mrginls on grphs. It os this y

More information

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

CS61B Lecture #33. Administrivia: Autograder will run this evening. Today s Readings: Graph Structures: DSIJ, Chapter 12 Aministrivi: CS61B Ltur #33 Autogrr will run this vning. Toy s Rings: Grph Struturs: DSIJ, Chptr 12 Lst moifi: W Nov 8 00:39:28 2017 CS61B: Ltur #33 1 Why Grphs? For xprssing non-hirrhilly rlt itms Exmpls:

More information

V={A,B,C,D,E} E={ (A,D),(A,E),(B,D), (B,E),(C,D),(C,E)}

V={A,B,C,D,E} E={ (A,D),(A,E),(B,D), (B,E),(C,D),(C,E)} Introution Computr Sin & Enginring 423/823 Dsign n Anlysis of Algorithms Ltur 03 Elmntry Grph Algorithms (Chptr 22) Stphn Sott (Apt from Vinohnrn N. Vriym) I Grphs r strt t typs tht r pplil to numrous

More information

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

CMSC 451: Lecture 4 Bridges and 2-Edge Connectivity Thursday, Sep 7, 2017 Rn: Not ovr n or rns. CMSC 451: Ltr 4 Brs n 2-E Conntvty Trsy, Sp 7, 2017 Hr-Orr Grp Conntvty: (T ollown mtrl ppls only to nrt rps!) Lt G = (V, E) n onnt nrt rp. W otn ssm tt or rps r onnt, t somtms t

More information

Extension Formulas of Lauricella s Functions by Applications of Dixon s Summation Theorem

Extension Formulas of Lauricella s Functions by Applications of Dixon s Summation Theorem Avll t http:pvu.u Appl. Appl. Mth. ISSN: 9-9466 Vol. 0 Issu Dr 05 pp. 007-08 Appltos Appl Mthts: A Itrtol Jourl AAM Etso oruls of Lurll s utos Appltos of Do s Suto Thor Ah Al Atsh Dprtt of Mthts A Uvrst

More information

Designing A Concrete Arch Bridge

Designing A Concrete Arch Bridge This is th mous Shwnh ri in Switzrln, sin y Rort Millrt in 1933. It spns 37.4 mtrs (122 t) n ws sin usin th sm rphil mths tht will monstrt in this lsson. To pro with this lsson, lik on th Nxt utton hr

More information

Algorithmic and NP-Completeness Aspects of a Total Lict Domination Number of a Graph

Algorithmic and NP-Completeness Aspects of a Total Lict Domination Number of a Graph Intrntionl J.Mth. Comin. Vol.1(2014), 80-86 Algorithmi n NP-Compltnss Aspts of Totl Lit Domintion Numr of Grph Girish.V.R. (PES Institut of Thnology(South Cmpus), Bnglor, Krntk Stt, Ini) P.Ush (Dprtmnt

More information

CS 241 Analysis of Algorithms

CS 241 Analysis of Algorithms CS 241 Anlysis o Algorithms Prossor Eri Aron Ltur T Th 9:00m Ltur Mting Lotion: OLB 205 Businss HW6 u lry HW7 out tr Thnksgiving Ring: Ch. 22.1-22.3 1 Grphs (S S. B.4) Grphs ommonly rprsnt onntions mong

More information

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

12/3/12. Outline. Part 10. Graphs. Circuits. Euler paths/circuits. Euler s bridge problem (Bridges of Konigsberg Problem) 12/3/12 Outlin Prt 10. Grphs CS 200 Algorithms n Dt Struturs Introution Trminology Implmnting Grphs Grph Trvrsls Topologil Sorting Shortst Pths Spnning Trs Minimum Spnning Trs Ciruits 1 Ciruits Cyl 2 Eulr

More information

Module graph.py. 1 Introduction. 2 Graph basics. 3 Module graph.py. 3.1 Objects. CS 231 Naomi Nishimura

Module graph.py. 1 Introduction. 2 Graph basics. 3 Module graph.py. 3.1 Objects. CS 231 Naomi Nishimura Moul grph.py CS 231 Nomi Nishimur 1 Introution Just lik th Python list n th Python itionry provi wys of storing, ssing, n moifying t, grph n viw s wy of storing, ssing, n moifying t. Bus Python os not

More information

# 1 ' 10 ' 100. Decimal point = 4 hundred. = 6 tens (or sixty) = 5 ones (or five) = 2 tenths. = 7 hundredths.

# 1 ' 10 ' 100. Decimal point = 4 hundred. = 6 tens (or sixty) = 5 ones (or five) = 2 tenths. = 7 hundredths. How os it work? Pl vlu o imls rprsnt prts o whol numr or ojt # 0 000 Tns o thousns # 000 # 00 Thousns Hunrs Tns Ons # 0 Diml point st iml pl: ' 0 # 0 on tnth n iml pl: ' 0 # 00 on hunrth r iml pl: ' 0

More information

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

COMP 250. Lecture 29. graph traversal. Nov. 15/16, 2017 COMP 250 Ltur 29 rp trvrsl Nov. 15/16, 2017 1 Toy Rursv rp trvrsl pt rst Non-rursv rp trvrsl pt rst rt rst 2 Hs up! Tr wr w mstks n t sls or S. 001 or toy s ltur. So you r ollown t ltur rorns n usn ts

More information

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

5/9/13. Part 10. Graphs. Outline. Circuits. Introduction Terminology Implementing Graphs Prt 10. Grphs CS 200 Algorithms n Dt Struturs 1 Introution Trminology Implmnting Grphs Outlin Grph Trvrsls Topologil Sorting Shortst Pths Spnning Trs Minimum Spnning Trs Ciruits 2 Ciruits Cyl A spil yl

More information

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

Math 61 : Discrete Structures Final Exam Instructor: Ciprian Manolescu. You have 180 minutes. Nm: UCA ID Numr: Stion lttr: th 61 : Disrt Struturs Finl Exm Instrutor: Ciprin nolsu You hv 180 minuts. No ooks, nots or lultors r llow. Do not us your own srth ppr. 1. (2 points h) Tru/Fls: Cirl th right

More information

Exam 1 Solution. CS 542 Advanced Data Structures and Algorithms 2/14/2013

Exam 1 Solution. CS 542 Advanced Data Structures and Algorithms 2/14/2013 CS Avn Dt Struturs n Algorithms Exm Solution Jon Turnr //. ( points) Suppos you r givn grph G=(V,E) with g wights w() n minimum spnning tr T o G. Now, suppos nw g {u,v} is to G. Dsri (in wors) mtho or

More information

Paths. Connectivity. Euler and Hamilton Paths. Planar graphs.

Paths. Connectivity. Euler and Hamilton Paths. Planar graphs. Pths.. Eulr n Hmilton Pths.. Pth D. A pth rom s to t is squn o gs {x 0, x 1 }, {x 1, x 2 },... {x n 1, x n }, whr x 0 = s, n x n = t. D. Th lngth o pth is th numr o gs in it. {, } {, } {, } {, } {, } {,

More information

More Foundations. Undirected Graphs. Degree. A Theorem. Graphs, Products, & Relations

More Foundations. Undirected Graphs. Degree. A Theorem. Graphs, Products, & Relations Mr Funtins Grphs, Pruts, & Rltins Unirt Grphs An unirt grph is pir f 1. A st f ns 2. A st f gs (whr n g is st f tw ns*) Friy, Sptmr 2, 2011 Ring: Sipsr 0.2 ginning f 0.4; Stughtn 1.1.5 ({,,,,}, {{,}, {,},

More information

Decimals DECIMALS.

Decimals DECIMALS. Dimls DECIMALS www.mthltis.o.uk ow os it work? Solutions Dimls P qustions Pl vlu o imls 0 000 00 000 0 000 00 0 000 00 0 000 00 0 000 tnths or 0 thousnths or 000 hunrths or 00 hunrths or 00 0 tn thousnths

More information

Multipoint Alternate Marking method for passive and hybrid performance monitoring

Multipoint Alternate Marking method for passive and hybrid performance monitoring Multipoint Altrnt Mrkin mtho or pssiv n hyri prormn monitorin rt-iool-ippm-multipoint-lt-mrk-00 Pru, Jul 2017, IETF 99 Giuspp Fiool (Tlom Itli) Muro Coilio (Tlom Itli) Amo Spio (Politnio i Torino) Riro

More information

12. Traffic engineering

12. Traffic engineering lt2.ppt S-38. Introution to Tltrffi Thory Spring 200 2 Topology Pths A tlommunition ntwork onsists of nos n links Lt N not th st of nos in with n Lt J not th st of nos in with j N = {,,,,} J = {,2,3,,2}

More information

EE1000 Project 4 Digital Volt Meter

EE1000 Project 4 Digital Volt Meter Ovrviw EE1000 Projt 4 Diitl Volt Mtr In this projt, w mk vi tht n msur volts in th rn o 0 to 4 Volts with on iit o ury. Th input is n nlo volt n th output is sinl 7-smnt iit tht tlls us wht tht input s

More information

QUESTIONS BEGIN HERE!

QUESTIONS BEGIN HERE! Points miss: Stunt's Nm: Totl sor: /100 points Est Tnnss Stt Univrsity Dprtmnt of Computr n Informtion Sins CSCI 710 (Trnoff) Disrt Struturs TEST for Fll Smstr, 00 R this for strtin! This tst is los ook

More information

Integration Continued. Integration by Parts Solving Definite Integrals: Area Under a Curve Improper Integrals

Integration Continued. Integration by Parts Solving Definite Integrals: Area Under a Curve Improper Integrals Intgrtion Continud Intgrtion y Prts Solving Dinit Intgrls: Ar Undr Curv Impropr Intgrls Intgrtion y Prts Prticulrly usul whn you r trying to tk th intgrl o som unction tht is th product o n lgric prssion

More information

Filter Design Techniques

Filter Design Techniques Fltr Dsgn chnqus Fltr Fltr s systm tht psss crtn frquncy componnts n totlly rcts ll othrs Stgs of th sgn fltr Spcfcton of th sr proprts of th systm ppromton of th spcfcton usng cusl scrt-tm systm Rlzton

More information

Graph Isomorphism. Graphs - II. Cayley s Formula. Planar Graphs. Outline. Is K 5 planar? The number of labeled trees on n nodes is n n-2

Graph Isomorphism. Graphs - II. Cayley s Formula. Planar Graphs. Outline. Is K 5 planar? The number of labeled trees on n nodes is n n-2 Grt Thortil Is In Computr Sin Vitor Amhik CS 15-251 Ltur 9 Grphs - II Crngi Mllon Univrsity Grph Isomorphism finition. Two simpl grphs G n H r isomorphi G H if thr is vrtx ijtion V H ->V G tht prsrvs jny

More information

0.1. Exercise 1: the distances between four points in a graph

0.1. Exercise 1: the distances between four points in a graph Mth 707 Spring 2017 (Drij Grinrg): mitrm 3 pg 1 Mth 707 Spring 2017 (Drij Grinrg): mitrm 3 u: W, 3 My 2017, in lss or y mil (grinr@umn.u) or lss S th wsit or rlvnt mtril. Rsults provn in th nots, or in

More information

Minimum Spanning Trees

Minimum Spanning Trees Mnmum Spnnng Trs Spnnng Tr A tr (.., connctd, cyclc grph) whch contns ll th vrtcs of th grph Mnmum Spnnng Tr Spnnng tr wth th mnmum sum of wghts 1 1 Spnnng forst If grph s not connctd, thn thr s spnnng

More information

Applications of trees

Applications of trees Trs Apptons o trs Orgnzton rts Attk trs to syst Anyss o tr ntworks Prsng xprssons Trs (rtrv o norton) Don-n strutur Mutstng Dstnton-s orwrng Trnsprnt swts Forwrng ts o prxs t routrs Struturs or nt pntton

More information

Solutions to Homework 5

Solutions to Homework 5 Solutions to Homwork 5 Pro. Silvia Frnánz Disrt Mathmatis Math 53A, Fall 2008. [3.4 #] (a) Thr ar x olor hois or vrtx an x or ah o th othr thr vrtis. So th hromati polynomial is P (G, x) =x (x ) 3. ()

More information

CSE303 - Introduction to the Theory of Computing Sample Solutions for Exercises on Finite Automata

CSE303 - Introduction to the Theory of Computing Sample Solutions for Exercises on Finite Automata CSE303 - Introduction to th Thory of Computing Smpl Solutions for Exrciss on Finit Automt Exrcis 2.1.1 A dtrministic finit utomton M ccpts th mpty string (i.., L(M)) if nd only if its initil stt is finl

More information

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

Exam 2 Solutions. Jonathan Turner 4/2/2012. CS 542 Advanced Data Structures and Algorithms CS 542 Avn Dt Stutu n Alotm Exm 2 Soluton Jontn Tun 4/2/202. (5 ont) Con n oton on t tton t tutu n w t n t 2 no. Wt t mllt num o no tt t tton t tutu oul ontn. Exln you nw. Sn n mut n you o u t n t, t n

More information

a b c cat CAT A B C Aa Bb Cc cat cat Lesson 1 (Part 1) Verbal lesson: Capital Letters Make The Same Sound Lesson 1 (Part 1) continued...

a b c cat CAT A B C Aa Bb Cc cat cat Lesson 1 (Part 1) Verbal lesson: Capital Letters Make The Same Sound Lesson 1 (Part 1) continued... Progrssiv Printing T.M. CPITLS g 4½+ Th sy, fun (n FR!) wy to tch cpitl lttrs. ook : C o - For Kinrgrtn or First Gr (not for pr-school). - Tchs tht cpitl lttrs mk th sm souns s th littl lttrs. - Tchs th

More information

CS 461, Lecture 17. Today s Outline. Example Run

CS 461, Lecture 17. Today s Outline. Example Run Prim s Algorithm CS 461, Ltur 17 Jr Si Univrsity o Nw Mxio In Prim s lgorithm, th st A mintin y th lgorithm orms singl tr. Th tr strts rom n ritrry root vrtx n grows until it spns ll th vrtis in V At h

More information

The University of Sydney MATH2969/2069. Graph Theory Tutorial 5 (Week 12) Solutions 2008

The University of Sydney MATH2969/2069. Graph Theory Tutorial 5 (Week 12) Solutions 2008 Th Univrsity o Syny MATH2969/2069 Grph Thory Tutoril 5 (Wk 12) Solutions 2008 1. (i) Lt G th isonnt plnr grph shown. Drw its ul G, n th ul o th ul (G ). (ii) Show tht i G is isonnt plnr grph, thn G is

More information

The Plan. Honey, I Shrunk the Data. Why Compress. Data Compression Concepts. Braille Example. Braille. x y xˆ

The Plan. Honey, I Shrunk the Data. Why Compress. Data Compression Concepts. Braille Example. Braille. x y xˆ h ln ony, hrunk th t ihr nr omputr in n nginring nivrsity of shington t omprssion onpts ossy t omprssion osslss t omprssion rfix os uffmn os th y 24 2 t omprssion onpts originl omprss o x y xˆ nor or omprss

More information

A 4-state solution to the Firing Squad Synchronization Problem based on hybrid rule 60 and 102 cellular automata

A 4-state solution to the Firing Squad Synchronization Problem based on hybrid rule 60 and 102 cellular automata A 4-stt solution to th Firing Squ Synhroniztion Prolm s on hyri rul 60 n 102 llulr utomt LI Ning 1, LIANG Shi-li 1*, CUI Shung 1, XU Mi-ling 1, ZHANG Ling 2 (1. Dprtmnt o Physis, Northst Norml Univrsity,

More information

Appendix. In the absence of default risk, the benefit of the tax shield due to debt financing by the firm is 1 C E C

Appendix. In the absence of default risk, the benefit of the tax shield due to debt financing by the firm is 1 C E C nx. Dvon o h n wh In h sn o ul sk h n o h x shl u o nnng y h m s s h ol ouon s h num o ssus s h oo nom x s h sonl nom x n s h v x on quy whh s wgh vg o vn n l gns x s. In hs s h o sonl nom xs on h x shl

More information

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

Outline. Circuits. Euler paths/circuits 4/25/12. Part 10. Graphs. Euler s bridge problem (Bridges of Konigsberg Problem) 4/25/12 Outlin Prt 10. Grphs CS 200 Algorithms n Dt Struturs Introution Trminology Implmnting Grphs Grph Trvrsls Topologil Sorting Shortst Pths Spnning Trs Minimum Spnning Trs Ciruits 1 2 Eulr s rig prolm

More information

b. How many ternary words of length 23 with eight 0 s, nine 1 s and six 2 s?

b. How many ternary words of length 23 with eight 0 s, nine 1 s and six 2 s? MATH 3012 Finl Exm, My 4, 2006, WTT Stunt Nm n ID Numr 1. All our prts o this prolm r onrn with trnry strings o lngth n, i.., wors o lngth n with lttrs rom th lpht {0, 1, 2}.. How mny trnry wors o lngth

More information

Strongly connected components. Finding strongly-connected components

Strongly connected components. Finding strongly-connected components Stronly onnt omponnts Fnn stronly-onnt omponnts Tylr Moor stronly onnt omponnt s t mxml sust o rp wt rt pt twn ny two vrts SE 3353, SMU, Dlls, TX Ltur 9 Som sls rt y or pt rom Dr. Kvn Wyn. For mor normton

More information

ECE 407 Computer Aided Design for Electronic Systems. Circuit Modeling and Basic Graph Concepts/Algorithms. Instructor: Maria K. Michael.

ECE 407 Computer Aided Design for Electronic Systems. Circuit Modeling and Basic Graph Concepts/Algorithms. Instructor: Maria K. Michael. 0 Computr i Dsign or Eltroni Systms Ciruit Moling n si Grph Conptslgorithms Instrutor: Mri K. Mihl MKM - Ovrviw hviorl vs. Struturl mols Extrnl vs. Intrnl rprsnttions Funtionl moling t Logi lvl Struturl

More information

COMP108 Algorithmic Foundations

COMP108 Algorithmic Foundations Grdy mthods Prudn Wong http://www.s.liv..uk/~pwong/thing/omp108/01617 Coin Chng Prolm Suppos w hv 3 typs of oins 10p 0p 50p Minimum numr of oins to mk 0.8, 1.0, 1.? Grdy mthod Lrning outoms Undrstnd wht

More information

Aquauno Video 6 Plus Page 1

Aquauno Video 6 Plus Page 1 Connt th timr to th tp. Aquuno Vio 6 Plus Pg 1 Usr mnul 3 lik! For Aquuno Vio 6 (p/n): 8456 For Aquuno Vio 6 Plus (p/n): 8413 Opn th timr unit y prssing th two uttons on th sis, n fit 9V lklin ttry. Whn

More information

Garnir Polynomial and their Properties

Garnir Polynomial and their Properties Univrsity of Cliforni, Dvis Dprtmnt of Mthmtis Grnir Polynomil n thir Proprtis Author: Yu Wng Suprvisor: Prof. Gorsky Eugny My 8, 07 Grnir Polynomil n thir Proprtis Yu Wng mil: uywng@uvis.u. In this ppr,

More information

Numbering Boundary Nodes

Numbering Boundary Nodes Numring Bounry Nos Lh MBri Empori Stt Univrsity August 10, 2001 1 Introution Th purpos of this ppr is to xplor how numring ltril rsistor ntworks ffts thir rspons mtrix, Λ. Morovr, wht n lrn from Λ out

More information

MATERIAL SEE BOM ANGLES = 2 FINISH N/A

MATERIAL SEE BOM ANGLES = 2 FINISH N/A 9 NOTS:. SSML N NSPT PR SOP 0-9... NSTLL K STKR N X L STKR TO NS O SROU WT TP. 3. PR-PK LNR RNS WT P (XTRM PRSSUR NL R ) RS OR NNRN PPROV QUVLNT. 4. OLOR TT Y T SLS ORR. RRN T MNS OM OR OMPONNTS ONTNN

More information

Analysis for Balloon Modeling Structure based on Graph Theory

Analysis for Balloon Modeling Structure based on Graph Theory Anlysis for lloon Moling Strutur bs on Grph Thory Abstrt Mshiro Ur* Msshi Ym** Mmoru no** Shiny Miyzki** Tkmi Ysu* *Grut Shool of Informtion Sin, Ngoy Univrsity **Shool of Informtion Sin n Thnology, hukyo

More information

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

d e c b a d c b a d e c b a a c a d c c e b FLAT PEYOTE STITCH Bin y mkin stoppr -- sw trou n pull it lon t tr until it is out 6 rom t n. Sw trou t in witout splittin t tr. You soul l to sli it up n own t tr ut it will sty in pl wn lt lon. Evn-Count

More information

Copyright 2000, Kevin Wayne 1

Copyright 2000, Kevin Wayne 1 Chptr. Intrvl Shulng Gry Algorthms Sls y Kvn Wyn. Copyrght 005 Prson-Ason Wsly. All rghts rsrv. Intrvl Shulng Intrvl Shulng: Gry Algorthms Intrvl shulng. Jo strts t s n fnshs t f. Two os omptl f thy on't

More information

Similarity Search. The Binary Branch Distance. Nikolaus Augsten.

Similarity Search. The Binary Branch Distance. Nikolaus Augsten. Similrity Srh Th Binry Brnh Distn Nikolus Augstn nikolus.ugstn@sg..t Dpt. of Computr Sins Univrsity of Slzurg http://rsrh.uni-slzurg.t Vrsion Jnury 11, 2017 Wintrsmstr 2016/2017 Augstn (Univ. Slzurg) Similrity

More information

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

PR D NT N n TR T F R 6 pr l 8 Th Pr d nt Th h t H h n t n, D D r r. Pr d nt: n J n r f th r d t r v th tr t d rn z t n pr r f th n t d t t. n R P RT F TH PR D NT N N TR T F R N V R T F NN T V D 0 0 : R PR P R JT..P.. D 2 PR L 8 8 J PR D NT N n TR T F R 6 pr l 8 Th Pr d nt Th h t H h n t n, D.. 20 00 D r r. Pr d nt: n J n r f th r d t r v th

More information

Preview. Graph. Graph. Graph. Graph Representation. Graph Representation 12/3/2018. Graph Graph Representation Graph Search Algorithms

Preview. Graph. Graph. Graph. Graph Representation. Graph Representation 12/3/2018. Graph Graph Representation Graph Search Algorithms /3/0 Prvw Grph Grph Rprsntton Grph Srch Algorthms Brdth Frst Srch Corrctnss of BFS Dpth Frst Srch Mnmum Spnnng Tr Kruskl s lgorthm Grph Drctd grph (or dgrph) G = (V, E) V: St of vrt (nod) E: St of dgs

More information

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

n r t d n :4 T P bl D n, l d t z d   th tr t. r pd l n r t d n 20 20 :4 T P bl D n, l d t z d http:.h th tr t. r pd l 2 0 x pt n f t v t, f f d, b th n nd th P r n h h, th r h v n t b n p d f r nt r. Th t v v d pr n, h v r, p n th pl v t r, d b p t r b R

More information