These slides are from 2014 and contain a semi-serious error at one point in the

Size: px
Start display at page:

Download "These slides are from 2014 and contain a semi-serious error at one point in the"

Transcription

1 Hello Internet! Hello Internet! These slides re rom 2014 nd ontin semi-serious error t one point in the These slides re rom 2014 nd ontin semi-serious error t one point in the presenttion. For more up-to-dte set o slides with orretion, plese visit presenttion. For more up-to-dte set o slides with orretion, plese visit Hope this helps! Hope this helps! -Keith -Keith

2 Euler Tour Trees

3 Outline or Tody Dynmi Connetivity on Trees Mintining onnetivity in hnging environment. Euler Tour Trees A dt struture or dynmi onnetivity. The Bottlenek Pth Prolem Putting everything together.

4 The Dynmi Connetivity Prolem

5 The Connetivity Prolem The grph onnetivity prolem is the ollowing: Given n undireted grph G, preproess the grph so tht queries o the orm re nodes u nd v onneted? Using Θ(m + n) preproessing, n preproess the grph to nswer queries in time O(1)

6 Dynmi Connetivity The dynmi onnetivity prolem is the ollowing: Mintin n undireted grph G so tht edges my e inserted n deleted nd onnetivity queries my e nswered eiiently. This is muh hrder prolem!

7 Dynmi Connetivity Best known dt struture: Edge insertions nd deletions tke verge time O(log 2 n) time. (Nottion: log (k) n is log log log n, k times. log k n is (log n) k. Connetivity queries tke time O(log 2 n / log log n). This is topi or lter in the qurter. The solution is not trivil. Tody, we'll look t restrited version o the prolem tht will serve uilding lok or the generl version.

8 Dynmi Connetivity in Forests Consider the ollowing speil-se o the dynmi onnetivity prolem: Mintin n undireted orest G so tht edges my e inserted n deleted nd onnetivity queries my e nswered eiiently. Eh deleted edge splits tree in two; eh dded edge joins two trees nd never loses yle.

9 Dynmi Connetivity in Forests Gol: Support these three opertions: link(u, v): Add in edge {u, v}. The ssumption is tht u nd v re in seprte trees. ut(u, v): Cut the edge {u, v}. The ssumption is tht the edge exists in the tree. is-onneted(u, v): Return whether u nd v re onneted. The dt struture we'll develop n perorm these opertions time O(log n) eh.

10 Euler Tours

11 Euler Tours In grph G, n Euler tour is pth through the grph tht visits every edge extly one. Mthemtilly ormultes the tre this igure without piking up your penil or redrwing ny lines puzzles.

12 Euler Tours on Trees In generl, trees do not hve Euler tours. d e d d d e Tehnique: reple eh edge {u, v} with two edges (u, v) nd (v, u). Resulting grph hs n Euler tour.

13 Euler Tours on Trees The dt struture we'll design tody is lled n Euler tour tree. High-level ide: Insted o storing the trees in the orest, store their Euler tours. Eh edge insertion or deletion trnsltes into set o mnipultions on the Euler tours o the trees in the orest. Cheking whether two nodes re onneted n e done y heking i they're in the sme Euler tour.

14 Properties o Euler Tours The sequene o nodes visited in n Euler tour o tree is losely onneted to the struture o the tree. d e g h i j k l g h i d d e d i j l j i h g g k g

15 Properties o Euler Tours The sequene o nodes visited in n Euler tour o tree is losely onneted to the struture o the tree. d e g h i j k l g h i d d e d i j l j i h g g k g

16 Properties o Euler Tours The sequene o nodes visited in n Euler tour o tree is losely onneted to the struture o the tree. d e g h i j k l g h i d d e d i j l j i h g g k g

17 Properties o Euler Tours The sequene o nodes visited in n Euler tour o tree is losely onneted to the struture o the tree. d e g h i j k l g h i d d e d i j l j i h g g k g

18 Properties o Euler Tours The sequene o nodes visited in n Euler tour o tree is losely onneted to the struture o the tree. Begin y direting ll edges towrd the the irst node in the tour. Clim: The sequenes o nodes visited etween the irst nd lst instne o node v gives n Euler tour o the sutree rooted t v.

19 Rerooting Tour The sutrees deined y rnges in Euler tours on trees depend on the root. In some ses, we will need to hnge the root o the tree. d e g h i j k l g h i d d e d i j l j i h g g k g

20 Rerooting Tour The sutrees deined y rnges in Euler tours on trees depend on the root. In some ses, we will need to hnge the root o the tree. d e g h i j k l g h i d d e d i j l j i h g g k g

21 Rerooting Tour The sutrees deined y rnges in Euler tours on trees depend on the root. In some ses, we will need to hnge the root o the tree. d e g h i j k l g h i d d e d i j l j i h g g k g

22 Rerooting Tour The sutrees deined y rnges in Euler tours on trees depend on the root. In some ses, we will need to hnge the root o the tree. d e g h i j k l h i d d e d i j l j i h g g k g g h

23 Rerooting Tour The sutrees deined y rnges in Euler tours on trees depend on the root. In some ses, we will need to hnge the root o the tree. d e g h i j k l h i d d e d i j l j i h g g k g g h

24 Rerooting Tour The sutrees deined y rnges in Euler tours on trees depend on the root. In some ses, we will need to hnge the root o the tree. d e g h i j k l h i d d e d i j l j i h g g k g g h

25 Rerooting Tour The sutrees deined y rnges in Euler tours on trees depend on the root. In some ses, we will need to hnge the root o the tree. d e g h i j k l h i d d e d i j l j i h g g k g g h

26 Rerooting Tour The sutrees deined y rnges in Euler tours on trees depend on the root. In some ses, we will need to hnge the root o the tree. d e g h i j k l d d e d i j l j i h g g k g g h i d

27 Rerooting Tour The sutrees deined y rnges in Euler tours on trees depend on the root. In some ses, we will need to hnge the root o the tree. d e g h i j k l d d e d i j l j i h g g k g g h i d

28 Rerooting Tour The sutrees deined y rnges in Euler tours on trees depend on the root. In some ses, we will need to hnge the root o the tree. d e g h i j k l d d e d i j l j i h g g k g g h i d

29 Rerooting Tour The sutrees deined y rnges in Euler tours on trees depend on the root. In some ses, we will need to hnge the root o the tree. d e g h i j k l d d e d i j l j i h g g k g g h i d

30 Rerooting Tour The sutrees deined y rnges in Euler tours on trees depend on the root. In some ses, we will need to hnge the root o the tree. d e g h i j k l g h i d d e d i j l j i h g g k g

31 Rerooting Tour Algorithm: Split the tour into three prts: S₁, R, nd S₂, where R onsists o the nodes etween the irst nd lst ourrene o the new root r. Delete the irst node in S₁. Contente R, S₂, S₁, {r}.

32 Euler Tours nd Dynmi Trees Given two trees T₁ nd T₂, where u T₁ nd v T₂, exeuting link(u, v) links the trees together y dding edge {u, v}. Wth wht hppens to the Euler tours: h i d e g j k d e g j k j i j g h g

33 Euler Tours nd Dynmi Trees Given two trees T₁ nd T₂, where u T₁ nd v T₂, exeuting link(u, v) links the trees together y dding edge {u, v}. Wth wht hppens to the Euler tours: h i d e g j k d e g j k j i j g h g

34 Euler Tours nd Dynmi Trees Given two trees T₁ nd T₂, where u T₁ nd v T₂, exeuting link(u, v) links the trees together y dding edge {u, v}. Wth wht hppens to the Euler tours: h i d e g j k d e g j k j i j g h g

35 Euler Tours nd Dynmi Trees Given two trees T₁ nd T₂, where u T₁ nd v T₂, exeuting link(u, v) links the trees together y dding edge {u, v}. Wth wht hppens to the Euler tours: h i d e g j k d e g j k j i j g h g

36 Euler Tours nd Dynmi Trees Given two trees T₁ nd T₂, where u T₁ nd v T₂, exeuting link(u, v) links the trees together y dding edge {u, v}. Wth wht hppens to the Euler tours: h i d e g j k e d g j k j i j g h g g

37 Euler Tours nd Dynmi Trees Given two trees T₁ nd T₂, where u T₁ nd v T₂, exeuting link(u, v) links the trees together y dding edge {u, v}. Wth wht hppens to the Euler tours: h i d e g j k e d g j k j i j g h g g

38 Euler Tours nd Dynmi Trees Given two trees T₁ nd T₂, where u T₁ nd v T₂, exeuting link(u, v) links the trees together y dding edge {u, v}. Wth wht hppens to the Euler tours: h i d e g j k e d g j k j i j g h g g

39 Euler Tours nd Dynmi Trees Given two trees T₁ nd T₂, where u T₁ nd v T₂, exeuting link(u, v) links the trees together y dding edge {u, v}. To link T₁ nd T₂ y dding {u, v}: Let E₁ nd E₂ e Euler tours o T₁ nd T₂, respetively. Rotte E₁ to root the tour t u. Rotte E₂ to root the tour t v. Contente E₁, E₂, {u}.

40 Euler Tours nd Dynmi Trees Given tree T, exeuting ut(u, v) uts the edge {u, v} rom the tree (ssuming it exists). Wth wht hppens to the Euler tour o T: h i d e g j k e d g j k j i j g h g g

41 Euler Tours nd Dynmi Trees Given tree T, exeuting ut(u, v) uts the edge {u, v} rom the tree (ssuming it exists). Wth wht hppens to the Euler tour o T: h i d e g j k e d g j k j i j g h g g

42 Euler Tours nd Dynmi Trees Given tree T, exeuting ut(u, v) uts the edge {u, v} rom the tree (ssuming it exists). Wth wht hppens to the Euler tour o T: h i d e g j k d e g j k j i j g h g g

43 Euler Tours nd Dynmi Trees Given tree T, exeuting ut(u, v) uts the edge {u, v} rom the tree (ssuming it exists). Wth wht hppens to the Euler tour o T: h i d e g j k d e g j k j i j g h g g

44 Euler Tours nd Dynmi Trees Given tree T, exeuting ut(u, v) uts the edge {u, v} rom the tree (ssuming it exists). Wth wht hppens to the Euler tour o T: h i d e g j k d g j k j i j g h g g e g

45 Euler Tours nd Dynmi Trees Given tree T, exeuting ut(u, v) uts the edge {u, v} rom the tree (ssuming it exists). Wth wht hppens to the Euler tour o T: h i d e g j k d g h g g e g j k j i j

46 Euler Tours nd Dynmi Trees Given tree T, exeuting ut(u, v) uts the edge {u, v} rom the tree (ssuming it exists). To ut T into T₁ nd T₂ y utting {u, v}: Let E e n Euler tour or T. Rotte u to the ront o E. Split E into E₁, V, E₂, where V is the spn etween the irst nd lst ourrene o v. T₁ hs the Euler tour ormed y ontenting E₁ nd E₂, deleting the extr u t the join point. T₂ hs Euler tour V.

47 The Story So Fr Gol: Implement link, ut, nd is-onneted s eiiently s possile. By representing trees vi their Euler tours, n implement link nd ut so tht only O(1) joins nd splits re neessry per opertion. Questions to nswer: How do we eiiently implement these joins nd splits? One we hve the tours, how do we nswer onnetivity queries?

48 Implementing the Struture The opertions we hve seen require us to e le to eiiently do the ollowing: Identiy the irst nd lst opy o node in sequene. Split sequene t those positions. Contente sequenes. Add new opy o node to sequene. Delete duplite opy o node rom sequene. How do we do this eiiently?

49 An Initil Ide: Linked Lists d e d e d e d e

50 An Initil Ide: Linked Lists Eh split or ontente tkes time O(1). The irst nd lst opy o node n e identiied in time O(1). A new opy o node n e ppended to the end o the sequene in time O(1). A redundnt opy o node n e deleted in time O(1). Everything sounds gret! Question: How do you test or onnetivity?

51 d e g d e g d e g d e g

52 The Story So Fr Euler tours give simple, lexile enoding o tree strutures. Using douly-linked lists, ontention nd splits tke time O(1) eh, ut testing onnetivity tkes time Θ(n) in the worst-se. Cn we do etter?

53 Using Blned Trees Clim: It is possile to represent sequenes o elements lned inry trees. These re not inry serh trees. We're using the shpe o red/lk tree to ensure lne. e d g d e g

54 Using Blned Trees Oservtion 1: Cn still store pointers to the irst nd lst ourrene o eh tree node. e d g d e g

55 Using Blned Trees Oservtion 2: I nodes store pointers to their prents, n nswer is-onneted(u, v) in time O(log n) y seeing i u nd v re in the sme tree. e d g d e g

56 Using Blned Trees Oservtion 3: Red/lk trees n e split nd joined in time O(log n) eh. e d g d e g

57 Using Blned Trees Oservtion 3: Red/lk trees n e split nd joined in time O(log n) eh. d e g d e g

58 Euler Tour Trees The dt struture: Represent eh tree s n Euler tour. Store those sequenes s lned inry trees. Eh node in the originl orest stores pointer to its irst nd lst ourrene. Eh node in the lned trees stores pointer to its prent. link, ut, nd is-onneted queries tke time only O(log n) eh.

59 Augmented Euler Tour Trees Euler tour trees re lyered top red/lk trees. We n thereore ugment Euler tour trees to store dditionl inormtion out eh tree. Exmples: Keep trk o the minimum-weight or mximumweight eh in eh tree. Keep trk o the numer o nodes in eh tree. We'll use this oth lter tody nd in ew weeks when we tlk out dynmi grph onnetivity.

60 Time-Out or Announements!

61 CS Csul Dinner Csul dinner or women studying omputer siene tomorrow night on the Gtes Fith Floor, 6PM 8PM. Everyone is welome!

62 OH Updte This week only: I'll e overing the Thursdy oie hours nd the TAs will over tody's OH right ter lss. Thursdy OH rooms TBA. We will proly e hnging Thursdy OH times in uture weeks; detils lter.

63 Your Questions

64 Could you reommend some (other) wesome CS lsses (preerly in Theory, ut doesn't hve to e)? My My Reommendtions CS143 CS143 (Compilers) (Compilers) CS343 CS343 (Dynmi (Dynmi Anlysis) Anlysis) CS154 CS154 (Automt (Automt nd nd Complexity Complexity Theory) Theory) CS181 CS181 (Computers, (Computers, Ethis, Ethis, nd nd Puli Puli Poliy) Poliy) CS261 CS261 // CS361B CS361B (Advned (Advned Algorithms) Algorithms) CS224W CS224W (Soil (Soil Network Network Anlysis) Anlysis)

65 Wht perentge o student sumitted the irst prolem set individully versus in pirs? I'm I'm going going to to hold hold o o on on nnouning this this until until Wednesdy when when we we get get n n estimte or or Prolem Set Set Two. Two. I I expet there there will will e e n n inrese.

66 I've never written Mkeile eore. Where n I ind the resoures to lern how to mke one or Assignment 2? Chek out out the the CS107 resoures pge: pge:

67 Wht's the est wy to impress everyone t oktil prty? Blning ork ork nd nd spoon spoon on on toothpik, then then setting setting the the toothpik toothpik on on ire. ire. Either Either tht tht or or wlking wlking through through sheet sheet o o pper. pper. Everyone Everyone will will ind ind you you impressive i i you you tlk tlk out out the the history history o o ood ood nd nd nutrition. nutrition. Bonus Bonus points points or or throwing throwing out out the the words words nixtmliztion nd nd orngery. Or Or just just e e nie nie nd nd good good listener. listener.

68 Bk to CS166!

69 Applition: Bottlenek Edge Queries

70 Bottlenek Pths Let G e n undireted grph where eh edge hs n ssoited, positive, relvlued pity. The ottlenek edge on pth is the edge on the pth with minimum pity. Chllenge: Find the mximumottlenek pth etween nodes u nd v.

71 Bottlenek Pths

72 Bottlenek Pths

73 Bottlenek Edge Queries The ottlenek edge query prolem is the ollowing: Given n undireted grph G with edge pities, preproess the grph so tht the ottlenek edge etween ny pir o nodes u nd v n e ound eiiently. Applitions in network routing, shipping, nd mximum low lgorithms. Like RMQ, ould solve y preomputing the ottlenek pths etween ll pirs o nodes. Cn we do etter?

74 Bottlenek Pths

75 Bottlenek Pths This This is is mximum mximum spnning spnning tree tree o o the the undireted undireted grph. grph. It's It's like like minimum 1 minimum spnning spnning tree, tree, ut ut with with the the mximum mximum possile possile weight. weight. 7 5 A mximum mximum spnning spnning tree tree in in grph grph n n e e ound ound in in time time O(m O(m + n 5 log log n). n). Detils Detils next next week! week!

76 Bottlenek Pths Clim: Clim: For For ny ny pir pir o o nodes, nodes, there there is is mximum- mximumottlenek ottlenek pth pth etween etween those those nodes nodes using using only only the the edges edges in in the the mximum mximum spnning spnning tree. tree

77 Bottlenek Pths Any Any edge edge not not in in the the tree tree n n e e repled repled y y the the edges edges in in the the yle yle it it loses loses without without lowering lowering the the ottlenek. ottlenek. Repeting Repeting this this proess proess turns turns ny ny pth pth into into pth pth using using only only tree tree edges. edges

78 Bottleneks nd Trees Beuse o the previous oservtion, we only relly need to ous on this prolem s pplied to trees. Good News: There is n elegnt reursive oservtion out this prolem on trees. 3 d 6 e g 17 h Any Any nodes nodes on on opposite opposite sides sides o o this this edge edge hve hve ottlenek ottlenek ost ost i j

79 Crtesin Trees o Trees Given tree T, the Crtesin tree o tree T is deined reursively: The root o the tree is the minimum-pity edge in T; ll tht edge {u, v}. The let sutree is the Crtesin tree o the u sutree nd the right sutree is the Crtesin tree o the v sutree. The Crtesin tree o one-node tree is tht node itsel d e e {,e} {,} {,} {d,} d {,d}

80 Crtesin Trees o Trees Crtesin trees o trees re useul or the ollowing reson: In tree T, the ottlenek etween u nd v is the lowest ommon nestor o u in v in the Crtesin tree o T d e e {,e} {,} {,} {d,} d {,d}

81 RMQ nd LCA A B D G C E F A B C B A D E D F D A G A Solving Solving RMQ RMQ on on the the Euler Euler tour tour o o tree tree gives gives solution solution to to LCA LCA on on tht tht tree. tree. LCA LCA hs hs n n O(n), O(n), O(1) O(1) solution! solution!

82 The Solution As preproessing: Compute mximum spnning tree T* in time O(m + n log n). Construt the Crtesin tree o T* in time O(n log n) (detils in seond). Construt n LCA dt struture or tht Crtesin tree in time O(n). Totl preproessing: O(m + n log n). To mke query or the ottlenek edge etween u nd v: Compute the LCA o u nd v. Totl time: O(1).

83 Summry Trees n e represented vi Euler tours. Given the Euler tours o two trees, those trees n e linked y doing O(1) ontentions nd splits. Given the Euler tour o tree, n ut tht tree y doing O(1) ontentions nd splits. Representing the Euler tours o vrious trees s lned trees gives O(log n) link, ut nd is-onneted opertions. The ottlenek edge query prolem n e solved in time O(m + n log n), O(1) using pproprite dt strutures.

84 Next Time Amortized Anlysis Cn we trde worst-se eiieny or glol eiieny? The Bnker's Method Putting redits on dt strutures. The Potentil Method Deining the potentil energy o dt struture. Amortized Eiient Dt Strutures A smpling o mortized dt strutures.

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

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

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

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

Designing Information Devices and Systems I Spring 2018 Homework 7

Designing Information Devices and Systems I Spring 2018 Homework 7 EECS 16A Designing Informtion Devices nd Systems I Spring 2018 omework 7 This homework is due Mrch 12, 2018, t 23:59. Self-grdes re due Mrch 15, 2018, t 23:59. Sumission Formt Your homework sumission should

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

Algorithm Design and Analysis

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

More information

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

Alpha Algorithm: Limitations

Alpha Algorithm: Limitations Proess Mining: Dt Siene in Ation Alph Algorithm: Limittions prof.dr.ir. Wil vn der Alst www.proessmining.org Let L e n event log over T. α(l) is defined s follows. 1. T L = { t T σ L t σ}, 2. T I = { t

More information

Data Structures (INE2011)

Data Structures (INE2011) Dt Strutures (INE2011) Eletronis nd Communition Engineering Hnyng University Hewoon Nm Leture 7 INE2011 Dt Strutures 1 Binry Tree Trversl Mny inry tree opertions re done y perorming trversl o the inry

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

Suffix Trays and Suffix Trists: Structures for Faster Text Indexing

Suffix Trays and Suffix Trists: Structures for Faster Text Indexing Suffix Trys nd Suffix Trists: Strutures for Fster Text Indexing Rihrd Cole Tsvi Kopelowitz Moshe Lewenstein rxiv:1311.1762v1 [s.ds] 7 Nov 2013 Astrt Suffix trees nd suffix rrys re two of the most widely

More information

Connected-components. Summary of lecture 9. Algorithms and Data Structures Disjoint sets. Example: connected components in graphs

Connected-components. Summary of lecture 9. Algorithms and Data Structures Disjoint sets. Example: connected components in graphs Prm University, Mth. Deprtment Summry of lecture 9 Algorithms nd Dt Structures Disjoint sets Summry of this lecture: (CLR.1-3) Dt Structures for Disjoint sets: Union opertion Find opertion Mrco Pellegrini

More information

Global alignment. Genome Rearrangements Finding preserved genes. Lecture 18

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

More information

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

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

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

More information

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

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

Generalization of 2-Corner Frequency Source Models Used in SMSIM

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

More information

Logic Synthesis and Verification

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

More information

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

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

More information

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

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

CISC 320 Introduction to Algorithms Spring 2014

CISC 320 Introduction to Algorithms Spring 2014 CISC 20 Introdution to Algorithms Spring 2014 Leture 9 Red-Blk Trees Courtes of Prof. Lio Li 1 Binr Serh Trees (BST) ke[x]: ke stored t x. left[x]: pointer to left hild of x. right[x]: pointer to right

More information

Finite State Automata and Determinisation

Finite State Automata and Determinisation Finite Stte Automt nd Deterministion Tim Dworn Jnury, 2016 Lnguges fs nf re df Deterministion 2 Outline 1 Lnguges 2 Finite Stte Automt (fs) 3 Non-deterministi Finite Stte Automt (nf) 4 Regulr Expressions

More information

Alpha Algorithm: A Process Discovery Algorithm

Alpha Algorithm: A Process Discovery Algorithm Proess Mining: Dt Siene in Ation Alph Algorithm: A Proess Disovery Algorithm prof.dr.ir. Wil vn der Alst www.proessmining.org Proess disovery = Ply-In Ply-In event log proess model Ply-Out Reply proess

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

AT100 - Introductory Algebra. Section 2.7: Inequalities. x a. x a. x < a

AT100 - Introductory Algebra. Section 2.7: Inequalities. x a. x a. x < a Section 2.7: Inequlities In this section, we will Determine if given vlue is solution to n inequlity Solve given inequlity or compound inequlity; give the solution in intervl nottion nd the solution 2.7

More information

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

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

More information

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

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

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

More information

A Differential Approach to Inference in Bayesian Networks

A Differential Approach to Inference in Bayesian Networks Dierentil pproh to Inerene in Byesin Networks esented y Ynn Shen shenyn@mi.pitt.edu Outline Introdution Oeriew o lgorithms or inerene in Byesin networks (BN) oposed new pproh How to represent BN s multi-rite

More information

CS415 Compilers. Lexical Analysis and. These slides are based on slides copyrighted by Keith Cooper, Ken Kennedy & Linda Torczon at Rice University

CS415 Compilers. Lexical Analysis and. These slides are based on slides copyrighted by Keith Cooper, Ken Kennedy & Linda Torczon at Rice University CS415 Compilers Lexicl Anlysis nd These slides re sed on slides copyrighted y Keith Cooper, Ken Kennedy & Lind Torczon t Rice University First Progrmming Project Instruction Scheduling Project hs een posted

More information

Resources. Introduction: Binding. Resource Types. Resource Sharing. The type of a resource denotes its ability to perform different operations

Resources. Introduction: Binding. Resource Types. Resource Sharing. The type of a resource denotes its ability to perform different operations Introduction: Binding Prt of 4-lecture introduction Scheduling Resource inding Are nd performnce estimtion Control unit synthesis This lecture covers Resources nd resource types Resource shring nd inding

More information

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

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

More information

332:221 Principles of Electrical Engineering I Fall Hourly Exam 2 November 6, 2006

332:221 Principles of Electrical Engineering I Fall Hourly Exam 2 November 6, 2006 2:221 Principles of Electricl Engineering I Fll 2006 Nme of the student nd ID numer: Hourly Exm 2 Novemer 6, 2006 This is closed-ook closed-notes exm. Do ll your work on these sheets. If more spce is required,

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

Intermediate Math Circles Wednesday, November 14, 2018 Finite Automata II. Nickolas Rollick a b b. a b 4

Intermediate Math Circles Wednesday, November 14, 2018 Finite Automata II. Nickolas Rollick a b b. a b 4 Intermedite Mth Circles Wednesdy, Novemer 14, 2018 Finite Automt II Nickols Rollick nrollick@uwterloo.c Regulr Lnguges Lst time, we were introduced to the ide of DFA (deterministic finite utomton), one

More information

AP CALCULUS Test #6: Unit #6 Basic Integration and Applications

AP CALCULUS Test #6: Unit #6 Basic Integration and Applications AP CALCULUS Test #6: Unit #6 Bsi Integrtion nd Applitions A GRAPHING CALCULATOR IS REQUIRED FOR SOME PROBLEMS OR PARTS OF PROBLEMS IN THIS PART OF THE EXAMINATION. () The ext numeril vlue of the orret

More information

12.4 Similarity in Right Triangles

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

More information

Part I: Study the theorem statement.

Part I: Study the theorem statement. Nme 1 Nme 2 Nme 3 A STUDY OF PYTHAGORAS THEOREM Instrutions: Together in groups of 2 or 3, fill out the following worksheet. You my lift nswers from the reding, or nswer on your own. Turn in one pket for

More information

Fast index for approximate string matching

Fast index for approximate string matching Fst index for pproximte string mthing Dekel Tsur Astrt We present n index tht stores text of length n suh tht given pttern of length m, ll the sustrings of the text tht re within Hmming distne (or edit

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

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

MAT 403 NOTES 4. f + f =

MAT 403 NOTES 4. f + f = MAT 403 NOTES 4 1. Fundmentl Theorem o Clulus We will proo more generl version o the FTC thn the textook. But just like the textook, we strt with the ollowing proposition. Let R[, ] e the set o Riemnn

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

Simplifying Algebra. Simplifying Algebra. Curriculum Ready.

Simplifying Algebra. Simplifying Algebra. Curriculum Ready. Simplifying Alger Curriculum Redy www.mthletics.com This ooklet is ll out turning complex prolems into something simple. You will e le to do something like this! ( 9- # + 4 ' ) ' ( 9- + 7-) ' ' Give this

More information

Arithmetic & Algebra. NCTM National Conference, 2017

Arithmetic & Algebra. NCTM National Conference, 2017 NCTM Ntionl Conference, 2017 Arithmetic & Algebr Hether Dlls, UCLA Mthemtics & The Curtis Center Roger Howe, Yle Mthemtics & Texs A & M School of Eduction Relted Common Core Stndrds First instnce of vrible

More information

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

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

More information

CS 188: Artificial Intelligence Spring 2007

CS 188: Artificial Intelligence Spring 2007 CS 188: Artificil Intelligence Spring 2007 Lecture 3: Queue-Bsed Serch 1/23/2007 Srini Nrynn UC Berkeley Mny slides over the course dpted from Dn Klein, Sturt Russell or Andrew Moore Announcements Assignment

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

GM1 Consolidation Worksheet

GM1 Consolidation Worksheet Cmridge Essentils Mthemtis Core 8 GM1 Consolidtion Worksheet GM1 Consolidtion Worksheet 1 Clulte the size of eh ngle mrked y letter. Give resons for your nswers. or exmple, ngles on stright line dd up

More information

Learning Partially Observable Markov Models from First Passage Times

Learning Partially Observable Markov Models from First Passage Times Lerning Prtilly Oservle Mrkov s from First Pssge s Jérôme Cllut nd Pierre Dupont Europen Conferene on Mhine Lerning (ECML) 8 Septemer 7 Outline. FPT in models nd sequenes. Prtilly Oservle Mrkov s (POMMs).

More information

CS 373, Spring Solutions to Mock midterm 1 (Based on first midterm in CS 273, Fall 2008.)

CS 373, Spring Solutions to Mock midterm 1 (Based on first midterm in CS 273, Fall 2008.) CS 373, Spring 29. Solutions to Mock midterm (sed on first midterm in CS 273, Fll 28.) Prolem : Short nswer (8 points) The nswers to these prolems should e short nd not complicted. () If n NF M ccepts

More information

Formula for Trapezoid estimate using Left and Right estimates: Trap( n) If the graph of f is decreasing on [a, b], then f ( x ) dx

Formula for Trapezoid estimate using Left and Right estimates: Trap( n) If the graph of f is decreasing on [a, b], then f ( x ) dx Fill in the Blnks for the Big Topis in Chpter 5: The Definite Integrl Estimting n integrl using Riemnn sum:. The Left rule uses the left endpoint of eh suintervl.. The Right rule uses the right endpoint

More information

Finite Automata-cont d

Finite Automata-cont d Automt Theory nd Forml Lnguges Professor Leslie Lnder Lecture # 6 Finite Automt-cont d The Pumping Lemm WEB SITE: http://ingwe.inghmton.edu/ ~lnder/cs573.html Septemer 18, 2000 Exmple 1 Consider L = {ww

More information

Arrow s Impossibility Theorem

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

More information

Graph width-parameters and algorithms

Graph width-parameters and algorithms Grph width-prmeters nd lgorithms Jisu Jeong (KAIST) joint work with Sigve Hortemo Sæther nd Jn Arne Telle (University of Bergen) 2015 KMS Annul Meeting 2015.10.24. YONSEI UNIVERSITY Grph width-prmeters

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

Lecture 2: January 27

Lecture 2: January 27 CS 684: Algorithmic Gme Theory Spring 217 Lecturer: Év Trdos Lecture 2: Jnury 27 Scrie: Alert Julius Liu 2.1 Logistics Scrie notes must e sumitted within 24 hours of the corresponding lecture for full

More information

The Minimum Label Spanning Tree Problem: Illustrating the Utility of Genetic Algorithms

The Minimum Label Spanning Tree Problem: Illustrating the Utility of Genetic Algorithms The Minimum Lel Spnning Tree Prolem: Illustrting the Utility of Genetic Algorithms Yupei Xiong, Univ. of Mrylnd Bruce Golden, Univ. of Mrylnd Edwrd Wsil, Americn Univ. Presented t BAE Systems Distinguished

More information

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

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

More information

Review Topic 14: Relationships between two numerical variables

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

More information

Time in Seconds Speed in ft/sec (a) Sketch a possible graph for this function.

Time in Seconds Speed in ft/sec (a) Sketch a possible graph for this function. 4. Are under Curve A cr is trveling so tht its speed is never decresing during 1-second intervl. The speed t vrious moments in time is listed in the tle elow. Time in Seconds 3 6 9 1 Speed in t/sec 3 37

More information

Linear Inequalities. Work Sheet 1

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

More information

Lossless Compression Lossy Compression

Lossless Compression Lossy Compression Administrivi CSE 39 Introdution to Dt Compression Spring 23 Leture : Introdution to Dt Compression Entropy Prefix Codes Instrutor Prof. Alexnder Mohr mohr@s.sunys.edu offie hours: TBA We http://mnl.s.sunys.edu/lss/se39/24-fll/

More information

PYTHAGORAS THEOREM WHAT S IN CHAPTER 1? IN THIS CHAPTER YOU WILL:

PYTHAGORAS THEOREM WHAT S IN CHAPTER 1? IN THIS CHAPTER YOU WILL: PYTHAGORAS THEOREM 1 WHAT S IN CHAPTER 1? 1 01 Squres, squre roots nd surds 1 02 Pythgors theorem 1 03 Finding the hypotenuse 1 04 Finding shorter side 1 05 Mixed prolems 1 06 Testing for right-ngled tringles

More information

Lecture 9: LTL and Büchi Automata

Lecture 9: LTL and Büchi Automata Lecture 9: LTL nd Büchi Automt 1 LTL Property Ptterns Quite often the requirements of system follow some simple ptterns. Sometimes we wnt to specify tht property should only hold in certin context, clled

More information

Green s Theorem. (2x e y ) da. (2x e y ) dx dy. x 2 xe y. (1 e y ) dy. y=1. = y e y. y=0. = 2 e

Green s Theorem. (2x e y ) da. (2x e y ) dx dy. x 2 xe y. (1 e y ) dy. y=1. = y e y. y=0. = 2 e Green s Theorem. Let be the boundry of the unit squre, y, oriented ounterlokwise, nd let F be the vetor field F, y e y +, 2 y. Find F d r. Solution. Let s write P, y e y + nd Q, y 2 y, so tht F P, Q. Let

More information

, g. Exercise 1. Generator polynomials of a convolutional code, given in binary form, are g. Solution 1.

, g. Exercise 1. Generator polynomials of a convolutional code, given in binary form, are g. Solution 1. Exerise Genertor polynomils of onvolutionl ode, given in binry form, re g, g j g. ) Sketh the enoding iruit. b) Sketh the stte digrm. ) Find the trnsfer funtion T. d) Wht is the minimum free distne of

More information

5: The Definite Integral

5: The Definite Integral 5: The Definite Integrl 5.: Estimting with Finite Sums Consider moving oject its velocity (meters per second) t ny time (seconds) is given y v t = t+. Cn we use this informtion to determine the distnce

More information

Outline. Theory-based Bayesian framework for property induction Causal structure induction

Outline. Theory-based Bayesian framework for property induction Causal structure induction Outline Theory-sed Byesin frmework for property indution Cusl struture indution Constrint-sed (ottom-up) lerning Theory-sed Byesin lerning The origins of usl knowledge Question: how do people relily ome

More information

MA123, Chapter 10: Formulas for integrals: integrals, antiderivatives, and the Fundamental Theorem of Calculus (pp.

MA123, Chapter 10: Formulas for integrals: integrals, antiderivatives, and the Fundamental Theorem of Calculus (pp. MA123, Chpter 1: Formuls for integrls: integrls, ntiderivtives, nd the Fundmentl Theorem of Clculus (pp. 27-233, Gootmn) Chpter Gols: Assignments: Understnd the sttement of the Fundmentl Theorem of Clculus.

More information

First Midterm Examination

First Midterm Examination Çnky University Deprtment of Computer Engineering 203-204 Fll Semester First Midterm Exmintion ) Design DFA for ll strings over the lphet Σ = {,, c} in which there is no, no nd no cc. 2) Wht lnguge does

More information

Chapter Gauss Quadrature Rule of Integration

Chapter Gauss Quadrature Rule of Integration Chpter 7. Guss Qudrture Rule o Integrtion Ater reding this hpter, you should e le to:. derive the Guss qudrture method or integrtion nd e le to use it to solve prolems, nd. use Guss qudrture method to

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

Infinite Geometric Series

Infinite Geometric Series Infinite Geometric Series Finite Geometric Series ( finite SUM) Let 0 < r < 1, nd let n be positive integer. Consider the finite sum It turns out there is simple lgebric expression tht is equivlent to

More information

INTEGRATION. 1 Integrals of Complex Valued functions of a REAL variable

INTEGRATION. 1 Integrals of Complex Valued functions of a REAL variable INTEGRATION NOTE: These notes re supposed to supplement Chpter 4 of the online textbook. 1 Integrls of Complex Vlued funtions of REAL vrible If I is n intervl in R (for exmple I = [, b] or I = (, b)) nd

More information

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

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

More information

Physics 1402: Lecture 7 Today s Agenda

Physics 1402: Lecture 7 Today s Agenda 1 Physics 1402: Lecture 7 Tody s gend nnouncements: Lectures posted on: www.phys.uconn.edu/~rcote/ HW ssignments, solutions etc. Homework #2: On Msterphysics tody: due Fridy Go to msteringphysics.com Ls:

More information

QUADRATIC EQUATION. Contents

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

More information

Calculus Module C21. Areas by Integration. Copyright This publication The Northern Alberta Institute of Technology All Rights Reserved.

Calculus Module C21. Areas by Integration. Copyright This publication The Northern Alberta Institute of Technology All Rights Reserved. Clculus Module C Ares Integrtion Copright This puliction The Northern Alert Institute of Technolog 7. All Rights Reserved. LAST REVISED Mrch, 9 Introduction to Ares Integrtion Sttement of Prerequisite

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

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

The Shortest Path Problem Graph Algorithms - 3

The Shortest Path Problem Graph Algorithms - 3 Algorithm Deign nd Anli Vitor Admhik C - pring Leture Feb, Crnegie Mellon Univerit The hortet Pth Problem Grph Algorithm - The hortet Pth Problem Given poitivel weighted grph G with oure verte, find the

More information

Foundations of Computer Science Comp109

Foundations of Computer Science Comp109 Reding Foundtions o Computer Siene Comp09 University o Liverpool Boris Konev konev@liverpool..uk http://www.s.liv..uk/~konev/comp09 Prt. Funtion Comp09 Foundtions o Computer Siene Disrete Mthemtis nd Its

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

6.004 Computation Structures Spring 2009

6.004 Computation Structures Spring 2009 MIT OpenCourseWre http://ocw.mit.edu 6.004 Computtion Structures Spring 009 For informtion out citing these mterils or our Terms of Use, visit: http://ocw.mit.edu/terms. Cost/Performnce Trdeoffs: cse study

More information

Chapter 2 Finite Automata

Chapter 2 Finite Automata Chpter 2 Finite Automt 28 2.1 Introduction Finite utomt: first model of the notion of effective procedure. (They lso hve mny other pplictions). The concept of finite utomton cn e derived y exmining wht

More information

Looking for All Palindromes in a String

Looking for All Palindromes in a String Looking or All Plindromes in String Shih Jng Pn nd R C T Lee Deprtment o Computer Science nd Inormtion Engineering, Ntionl Chi-Nn University, Puli, Nntou Hsien,, Tiwn, ROC sjpn@lgdoccsiencnuedutw, rctlee@ncnuedutw

More information

Bases for Vector Spaces

Bases for Vector Spaces Bses for Vector Spces 2-26-25 A set is independent if, roughly speking, there is no redundncy in the set: You cn t uild ny vector in the set s liner comintion of the others A set spns if you cn uild everything

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

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

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

More information

CS 275 Automata and Formal Language Theory

CS 275 Automata and Formal Language Theory CS 275 utomt nd Forml Lnguge Theory Course Notes Prt II: The Recognition Prolem (II) Chpter II.5.: Properties of Context Free Grmmrs (14) nton Setzer (Bsed on ook drft y J. V. Tucker nd K. Stephenson)

More information

The Word Problem in Quandles

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

More information

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

Exploring parametric representation with the TI-84 Plus CE graphing calculator

Exploring parametric representation with the TI-84 Plus CE graphing calculator Exploring prmetric representtion with the TI-84 Plus CE grphing clcultor Richrd Prr Executive Director Rice University School Mthemtics Project rprr@rice.edu Alice Fisher Director of Director of Technology

More information

Designing Information Devices and Systems I Fall 2016 Babak Ayazifar, Vladimir Stojanovic Homework 6. This homework is due October 11, 2016, at Noon.

Designing Information Devices and Systems I Fall 2016 Babak Ayazifar, Vladimir Stojanovic Homework 6. This homework is due October 11, 2016, at Noon. EECS 16A Designing Informtion Devices nd Systems I Fll 2016 Bk Ayzifr, Vldimir Stojnovic Homework 6 This homework is due Octoer 11, 2016, t Noon. 1. Homework process nd study group Who else did you work

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

1. For each of the following theorems, give a two or three sentence sketch of how the proof goes or why it is not true.

1. For each of the following theorems, give a two or three sentence sketch of how the proof goes or why it is not true. York University CSE 2 Unit 3. DFA Clsses Converting etween DFA, NFA, Regulr Expressions, nd Extended Regulr Expressions Instructor: Jeff Edmonds Don t chet y looking t these nswers premturely.. For ech

More information