Knowledge States: A Tool in Randomized Online Algorithms

Size: px
Start display at page:

Download "Knowledge States: A Tool in Randomized Online Algorithms"

Transcription

1 : A Tool in Rndomized Online Algorithms Center for the Advnced Study of Algorithms School of Computer Science University of Nevd, Ls Vegs ADS 2007 couthors: Lwrence L. Lrmore, John Nog, Rüdiger Reischuk supported by NSF grnt CCR

2 Online Problems offline: ll input dt is completely vilble before the lgorithm strts.

3 Online Problems offline: ll input dt is completely vilble before the lgorithm strts. online: input dt rrives piece t time the lgorithm must mke decision without knowledge of the entire input.

4 Online Problems offline: ll input dt is completely vilble before the lgorithm strts. online: input dt rrives piece t time the lgorithm must mke decision without knowledge of the entire input. online problems: resource lloction in operting systems, network routing, robotics, dt-structuring, distributed computing, scheduling...

5 Theme of the Tlk It is difficult to construct good rndomized online lgorithms Use of work functions in the context of rndomized online lgorithms

6 Theme of the Tlk It is difficult to construct good rndomized online lgorithms Use of work functions in the context of rndomized online lgorithms Give distributionl descriptions of lgorithms

7 Theme of the Tlk It is difficult to construct good rndomized online lgorithms Use of work functions in the context of rndomized online lgorithms Give distributionl descriptions of lgorithms Use the concept of forgiveness

8 Theme of the Tlk It is difficult to construct good rndomized online lgorithms Use of work functions in the context of rndomized online lgorithms Give distributionl descriptions of lgorithms Use the concept of forgiveness Give two new results: better thn 2-comptitive 2-server lgorithm in cross polytope spces optimlly competitive k-pging with only O(k) memory

9 Ppers Online Computtion Equitble Revisited. Bein, Lrmore, Nog, ESA 2007 A Rndomized Algorithm for Two Servers in Cross Polytope Spces. Bein, Iwm, Kwhr, Lrmore, Orvec, WAOA 2007 : A Tool for Rndomized Online Algorithms. Bein, Lrmore, Reischuk, HICSS 2008 Knowledge Stte Algorithms: Rndomiztion with Limited Informtion. Bein, Lrmore, Reischuk, Arxiv 2007 for the Cching Problem in Shred Memory Multiprocessor Systems. Bein, Lrmore, Reischuk, IJFCS, to pper Bein, Lrmore. Trckless nd Limited-Bookmrk Algorithms for Pging. Bein, Lrmore, ACM SIGACT News, 2004 Tutoril t bein/tutoril

10 Pging Online Computtion Universe of pges in slow memory Fst memory cn hold k pges Requests = r 1 r 2...r n for pges hve to be served Hit (no cost) or Miss (cost 1) Fst Memory Fst Memory b f h j k x b f j k Eject h Slow Memory Request x Slow Memory Solution cn be described s sequence of configurtions

11 The CNN Problem News crew in Mnhttn (streets nd venues) event sequence = r 1 r 2,...,r n Event cn be seen either horizontlly or verticlly Solution cn be described s sequence configurtions Gol: minimize totl movement cost 1 r

12 The CNN Problem News crew in Mnhttn (streets nd venues) event sequence = r 1 r 2,...,r n Event cn be seen either horizontlly or verticlly Solution cn be described s sequence configurtions Gol: minimize totl movement cost r 1

13 The CNN Problem News crew in Mnhttn (streets nd venues) event sequence = r 1 r 2,...,r n Event cn be seen either horizontlly or verticlly Solution cn be described s sequence configurtions Gol: minimize totl movement cost r 2

14 The CNN Problem News crew in Mnhttn (streets nd venues) event sequence = r 1 r 2,...,r n Event cn be seen either horizontlly or verticlly Solution cn be described s sequence configurtions Gol: minimize totl movement cost r 2

15 The CNN Problem News crew in Mnhttn (streets nd venues) event sequence = r 1 r 2,...,r n Event cn be seen either horizontlly or verticlly Solution cn be described s sequence configurtions Gol: minimize totl movement cost r 3

16 The CNN Problem News crew in Mnhttn (streets nd venues) event sequence = r 1 r 2,...,r n Event cn be seen either horizontlly or verticlly Solution cn be described s sequence configurtions Gol: minimize totl movement cost r 3

17 The CNN Problem News crew in Mnhttn (streets nd venues) event sequence = r 1 r 2,...,r n Event cn be seen either horizontlly or verticlly Solution cn be described s sequence configurtions Gol: minimize totl movement cost r4

18 The CNN Problem News crew in Mnhttn (streets nd venues) event sequence = r 1 r 2,...,r n Event cn be seen either horizontlly or verticlly Solution cn be described s sequence configurtions Gol: minimize totl movement cost r4

19 The 2-Server Problem 2 servers in metric spce M request sequence = r 1 r 2,...,r n online: decision must be mde before r i+1 is reveled Gol: minimize totl movement cost Server 1 Server 2

20 The 2-Server Problem 2 servers in metric spce M request sequence = r 1 r 2,...,r n online: decision must be mde before r i+1 is reveled Server 1 r 1 Server 2 Gol: minimize totl movement cost

21 The 2-Server Problem 2 servers in metric spce M request sequence = r 1 r 2,...,r n online: decision must be mde before r i+1 is reveled Gol: minimize totl movement cost Server 1 r 1 Server 2

22 The 2-Server Problem 2 servers in metric spce M request sequence = r 1 r 2,...,r n online: decision must be mde before r i+1 is reveled Gol: minimize totl movement cost Server 1 r 2 Server 2

23 The 2-Server Problem 2 servers in metric spce M request sequence = r 1 r 2,...,r n online: decision must be mde before r i+1 is reveled Gol: minimize totl movement cost Server 1 r 2 Server 2

24 The 2-Server Problem 2 servers in metric spce M request sequence = r 1 r 2,...,r n online: decision must be mde before r i+1 is reveled Gol: minimize totl movement cost Server 1 r3 Server 2

25 The 2-Server Problem 2 servers in metric spce M request sequence = r 1 r 2,...,r n online: decision must be mde before r i+1 is reveled Gol: minimize totl movement cost r3 Server 2 Server 1

26 The 2-Server Problem 2 servers in metric spce M request sequence = r 1 r 2,...,r n online: decision must be mde before r i+1 is reveled Gol: minimize totl movement cost r3 Server 2 Server 1 r 4

27 The 2-Server Problem 2 servers in metric spce M request sequence = r 1 r 2,...,r n online: decision must be mde before r i+1 is reveled Gol: minimize totl movement cost Server 1 r 4 Server 2

28 Configurtions for the 2-Server Problem the loctions of the two servers is clled configurtion solution cn be described s sequence of configurtions the movement cost is the trnsporttion distnce between configurtions Server 1 r3 r 2 r 1 Server 2 r 4

29 Configurtions for the 2-Server Problem the loctions of the two servers is clled configurtion solution cn be described s sequence of configurtions the movement cost is the trnsporttion distnce between configurtions Server 1 r3 r 2 r 1 Server 2 r 4

30 Configurtions for the 2-Server Problem the loctions of the two servers is clled configurtion solution cn be described s sequence of configurtions the movement cost is the trnsporttion distnce between configurtions Server 1 r 2 r3 Server 2 r 4

31 Configurtions for the 2-Server Problem the loctions of the two servers is clled configurtion solution cn be described s sequence of configurtions the movement cost is the trnsporttion distnce between configurtions r3 Server 2 Server 1 r 4

32 Configurtions for the 2-Server Problem the loctions of the two servers is clled configurtion solution cn be described s sequence of configurtions the movement cost is the trnsporttion distnce between configurtions Server 1 r 4 Server 2

33 Online Algorithms 1 Algorithm A is t some initil configurtion 0

34 Online Algorithms 1 Algorithm A is t some initil configurtion 0 2 Requests: = r 1,..., r n.

35 Online Algorithms 1 Algorithm A is t some initil configurtion 0 2 Requests: = r 1,..., r n. 3 At time (t 1), A is t configurtion t 1.

36 Online Algorithms 1 Algorithm A is t some initil configurtion 0 2 Requests: = r 1,..., r n. 3 At time (t 1), A is t configurtion t 1. 4 A hs to serve r t not knowing r t+1,...

37 Online Algorithms 1 Algorithm A is t some initil configurtion 0 2 Requests: = r 1,..., r n. 3 At time (t 1), A is t configurtion t 1. 4 A hs to serve r t not knowing r t+1,... 5 A chooses configurtion t.

38 Online Algorithms 1 Algorithm A is t some initil configurtion 0 2 Requests: = r 1,..., r n. 3 At time (t 1), A is t configurtion t 1. 4 A hs to serve r t not knowing r t+1,... 5 A chooses configurtion t. 6 A incurs cost( t 1, r t, t ).

39 Online Algorithms 1 Algorithm A is t some initil configurtion 0 2 Requests: = r 1,..., r n. 3 At time (t 1), A is t configurtion t 1. 4 A hs to serve r t not knowing r t+1,... 5 A chooses configurtion t. 6 A incurs cost( t 1, r t, t ). If A uses rndomiztion in bullet 5 then A is clled rndomized online lgorithm.

40 2-Server Exmple Exmple: k = 2 nd = xyxyz y 2 1 z x 2 y z x y z x cost = 7 x y x y z Work Function Algorithm (WFA) y x y x y x z z z

41 The Adversry: Optiml Cost Function on configurtions: Dynmic progrmming The optiml cost of being there then y 2 x x 1 y x optcost = 4 = min lst workfunction Given request sequence ρ z z y x 2 x y 2 y ω ρ () = min cost of serving ρ nd ending in configurtion X 1 4 z z y x z y 2 x y x z z

42 Support of Work Functions ω({y, z}) ω({x, z}) ω({x, y}) initil request x request y request x request y request z S X supports ω if for ny b X there exists some S such tht ω(b) = ω() +, b.

43 Support of Work Functions ω({y, z}) ω({x, z}) ω({x, y}) initil request x request y request x request y request z S X supports ω if for ny b X there exists some S such tht ω(b) = ω() +, b. A resonble lgorithm will move to configurtions in the support.

44 Support of Work Functions ω({y, z}) ω({x, z}) ω({x, y}) initil request x request y request x request y request z S X supports ω if for ny b X there exists some S such tht ω(b) = ω() +, b. A resonble lgorithm will move to configurtions in the support. WFA moves for request r from configurtion to configurtion b such tht, b + ω(b) is minimized.

45 Competitiveness For request sequence = r 1, r 2,... consider cost A ( ): the cost on chieved by A cost opt ( ): the cost on chieved by opt We sy tht A is C-competitive if for ech sequence we hve Ecost A ( ) C cost opt ( ) + K - Exmple: cost WFA (xyxyz) = 7 WFA is 2-competitive cost opt (xyxyz) 4

46 The Distributionl Model A rndomized lgorithm cn be viewed s determistic lgorithm on distributions. X = ll configurtions π is distribution on X. Algorithm A is t some initil configurtion 0.

47 The Distributionl Model A rndomized lgorithm cn be viewed s determistic lgorithm on distributions. X = ll configurtions π is distribution on X. Algorithm A is t some initil configurtion 0. Requests: = r 1,..., r n.

48 The Distributionl Model A rndomized lgorithm cn be viewed s determistic lgorithm on distributions. X = ll configurtions π is distribution on X. Algorithm A is t some initil configurtion 0. Requests: = r 1,..., r n. At time (t 1), A is t distribution π t 1.

49 The Distributionl Model A rndomized lgorithm cn be viewed s determistic lgorithm on distributions. X = ll configurtions π is distribution on X. Algorithm A is t some initil configurtion 0. Requests: = r 1,..., r n. At time (t 1), A is t distribution π t 1. A hs to serve r t not knowing r t+1,...

50 The Distributionl Model A rndomized lgorithm cn be viewed s determistic lgorithm on distributions. X = ll configurtions π is distribution on X. Algorithm A is t some initil configurtion 0. Requests: = r 1,..., r n. At time (t 1), A is t distribution π t 1. A hs to serve r t not knowing r t+1,... A chooses deterministiclly distribution π t.

51 Cost in the Distributionl Model 1 2 y x z cost 0, 1/4trnsport cost 2, 1/4 trnsport x y x z y x z cost 2, 1/4 trnsport y x z z 3 4 Totl cost: 1 Trnsportion Cost = 1 The cost incured by moving from one distribution to the next is clculted by moving mss long trnsportion problem. The trnsporttion problem hs the Monge property.

52 Work Function Guided 1 b c _ 1 2 _ 1 2 b 3 d c 3 3 b 4 e d c b Problem: The support grows without bound.

53 Forgiveness Online Computtion Lower the work function on selective configurtions

54 Forgiveness Online Computtion Lower the work function on selective configurtions d 3 c 3 3 b 4 e d c b 1 e d c b

55 Forgiveness Online Computtion Lower the work function on selective configurtions d 3 c 3 3 b 4 e d c b e 1 d c Work functions re now estimtors b

56 Ls Vegs Online Computtion Algorithm is constructed using the mixed model of online computtion b c _ 1 2 _ b d c c 3 3 d 1 1 b d c b _ 2_ 3 0 b 1 d c b

57 The Rndomized 2-Server Problem Best: RANDOM SLACK 2-competitive [Coppersmith, Doyle, Rghvn, Snir, 90]

58 The Rndomized 2-Server Problem Best: RANDOM SLACK 2-competitive [Coppersmith, Doyle, Rghvn, Snir, 90] Not known to be best possible.

59 The Rndomized 2-Server Problem Best: RANDOM SLACK 2-competitive [Coppersmith, Doyle, Rghvn, Snir, 90] Not known to be best possible. Lower Bound: 1 + e [Chrobk, Lrmore, Lund, Reingold, 97]

60 The Rndomized 2-Server Problem Best: RANDOM SLACK 2-competitive [Coppersmith, Doyle, Rghvn, Snir, 90] Not known to be best possible. Lower Bound: 1 + e [Chrobk, Lrmore, Lund, Reingold, 97] Line: [Brtl, Chrobk, Lrmore, 98]

61 2-Server Problem: M 24 M 24 consists of ll metric spces such tht All distnces re 1 or 2. d(x, y) + d(x, z) + d(y, z) 4

62 Why M 24? Online Computtion A step in the direction of the gol (better thn 2-competitive rndomized lgorithm for the 2-server problem).

63 Why M 24? Online Computtion A step in the direction of the gol (better thn 2-competitive rndomized lgorithm for the 2-server problem). Allows simple exmple of the knowledge stte method.

64 Why M 24? Online Computtion A step in the direction of the gol (better thn 2-competitive rndomized lgorithm for the 2-server problem). Allows simple exmple of the knowledge stte method. An interesting clss in its own right, generlizing the octhedron.

65 Exctly Three Infinite Fmilies of Convex Regulr Polytopes (Ludwig Schläfli, 1852) Infinite Fmily of Regulr Polytopes Grph Clss Metric Spce Clss 3 d 4 d Regulr Simplices Complete Grphs Uniform Spces Cross Polytopes Circulnt Grphs = Orthoplices Ci 1,...,n 1 (2n) M 24 Hypercubes Hypercubes Hmming Metric Spces

66 Wht is Knowledge Stte? Knowledge stte k = (ω, π): ω : X R is the estimtor. π is distribution on X. 7/8 0 x z 1/8 1/2 y π(x, y) is the probbility we re t {x, y}. ω(x, y) is the estimted unpid cost of the dversry if it is t {x, y}.

67 A Closer Look Online Computtion 0 1 1/ /8 0 x 0 3/2 1/8 1/2 y Bxyz z The estimtor nd distribution re defined for ll configurtions but chrcterized by their vlues only on the support If X S, then π() = 0. ω() = min b S {ω(b) +, b }

68 for the 2-Server Problem 7_ 6 1_ 0 4 z 1_ 0 4 z x Axz x y 0 2 x _ z Dxyz _5 1 1_ x 1 z 7 12 _ Gxz 1_ 0 2 x z 1_ 2 0 _ x _ y Bxyz 5 12 _ z Exz 7_ 4 1_ 4 Hxz z Cz 5 12 _ 19 _ 24 0 z z x _ _ x Fxz 5 _ 3 24 _ z x x 8 _3 0 Up to symmetry, there re 8 knowledge sttes of competitive lgorithm for M 2,4. z _ z 10

69 There re Numerous Moves. Here is One. z _7 6 x 4 0 y 0 4 _ z Dxyz 0 2 _ x Intermedite Stte W _ 1 _ _ x _ 1 y _ 1 z _ _ z _ x 1_ 3 1_ 3 1_ 3 z _ x _ Gzx _ z 0 2 _ x 0 y 4 _7 6 z 0 4 _ Dyzx 2 0 x _7 6 _ x y _ z 4 0 Dyzx x

70 One Move of the Algorithm Strt t stndrd knowledge stte over (x, y, z).

71 One Move of the Algorithm Strt t stndrd knowledge stte over (x, y, z). Red request r.

72 One Move of the Algorithm Strt t stndrd knowledge stte over (x, y, z). Red request r. Updte the estimtor.

73 One Move of the Algorithm Strt t stndrd knowledge stte over (x, y, z). Red request r. Updte the estimtor. Move the distribution.

74 One Move of the Algorithm Strt t stndrd knowledge stte over (x, y, z). Red request r. Updte the estimtor. Move the distribution. Ls Vegs. Rndomly pick subsequent.

75 One Move of the Algorithm Strt t stndrd knowledge stte over (x, y, z). Red request r. Updte the estimtor. Move the distribution. Ls Vegs. Rndomly pick subsequent. We re t stndrd knowledge stte over (x, y, r), (y, x, r), (x, z, r), (z, x, r), (y, z, r), or (z, y, r).

76 Behviorl Version: The Wirefrme Algorithm dxyz x z y _ z dyzx _ z x y _ z dyzx _ z x y _ z request x z x y dyzx z z x y dyzx z _ x _ x _ x _ x

77 Results for the 2-Server Problem in M 2,4 2-Server Problem on M 2,4, C = 7 4

78 Results for the 2-Server Problem in M 2,4 2-Server Problem on M 2,4, C = Server Problem on M 2,4, C =

79 Results for the 2-Server Problem in M 2,4 2-Server Problem on M 2,4, C = Server Problem on M 2,4, C = This is optiml for M 2,4.

80 Results for the 2-Server Problem in M 2,4 2-Server Problem on M 2,4, C = Server Problem on M 2,4, C = This is optiml for M 2,4. Uniform spces i.e. pging, the optiml competitiveness is C = 1.5.

81 Results for the 2-Server Problem in M 2,4 2-Server Problem on M 2,4, C = Server Problem on M 2,4, C = This is optiml for M 2,4. Uniform spces i.e. pging, the optiml competitiveness is C = 1.5. Open: better thn 2-competitive rndomized lgorithm for 2 servers in generl spces.

82 Pging Online Computtion Pging: k-server problem in uniform spces CNN Amzon Yhoo..requesting NYTimes UNLV Sndi

83 History of k-pging [Fit, Krp, Luby, McGeoch, Sletor, Young, 1991] Lower bound, H k = k i=1 1/i (2H k 1)-competitive lgorithm RMARK RMARK uses O(n) memory

84 History of k-pging [Fit, Krp, Luby, McGeoch, Sletor, Young, 1991] Lower bound, H k = k i=1 1/i (2H k 1)-competitive lgorithm RMARK RMARK uses O(n) memory [McGeoch, Sletor, 1991] H k -competitive lgorithm PARTITION unbounded memory

85 History of k-pging [Fit, Krp, Luby, McGeoch, Sletor, Young, 1991] Lower bound, H k = k i=1 1/i (2H k 1)-competitive lgorithm RMARK RMARK uses O(n) memory [McGeoch, Sletor, 1991] H k -competitive lgorithm PARTITION unbounded memory [Achliopts, Chrobk, Nog, 2000] H k -competitive lgorithm EQUITABLE O(k 2 log k) memory

86 History of k-pging [Fit, Krp, Luby, McGeoch, Sletor, Young, 1991] Lower bound, H k = k i=1 1/i (2H k 1)-competitive lgorithm RMARK RMARK uses O(n) memory [McGeoch, Sletor, 1991] H k -competitive lgorithm PARTITION unbounded memory [Achliopts, Chrobk, Nog, 2000] H k -competitive lgorithm EQUITABLE O(k 2 log k) memory [Bein, Lrmore, Nog, 2007] H k -competitive lgorithm EQUITABLE2 O(k) memory

87 Bookmrks Online Computtion A b b c 1_ 2 B cb c b c b b A cb bookmrked A trckless lgorithm (i.e. n lgorithm tht does not use ny bookmrks) cnnot hve optiml competitiveness. [Bein, Fleischer, Lrmore, 00] _ 1 2

88 An Optimlly Competitive Algorithm for 2-Pging Algorithm K 2 : 1 c b c 2 b b c 1 c b 2 b b c d d d b b b c Competitiveness: C K2 = 3 2

89 Models of Online Computtion Behviorl Distributionl b 1_ c 1_ 2 2 c c 1 b 1_ 2 c b c b 1 1 c c c 1_ 2 1 b b

90 Work Functions nd Offset Functions d d c 0 c d c 2 2 b b 1 c b c b c b d 0 d c d c offset 1 offset b c b c b

91 Offset Function Guided Algorithm EQUITABLE [Achliopts, Chrobk, Nog, 2000] The lgorithm is descibed using the distributionl model The lgorithm s distribution mss is only on the support of the work funtion b 1 c _ 2 1 _ 2 1 b 3 d c 3 3 b 4 e d c d 3 c 3 3 b b 4 e d c b 1 e d b c

92 Ls Vegs Online Computtion Algorithm is constructed using the mixed model of online computtion b c _ 1 2 _ b d c c 3 3 d 1 1 b d c b _ 2_ 3 0 b 1 d c b

93 Behviorl Trnsltion _ 2 1 _ 2 1 c b d c b d c b c b d 1 d b c 1 d c b d b c 1 d c b d c b _ _2 3

94 Knowledge Stte Description of K 2 Work functions re denoted using the br nottion. A tuple T is in the support: t lest i members of T re to the left of the i th br. 0 A b 1, 1 new (c) 1/2 B c b new (d) 1/3, 1 C d bc 1/3 1/3 1/3 0 0 A d A d b 0 A d c

95 The Cse k = 3 0 A 5/6 B 5/3 1/5, 1 1, 1 1, 1 D new new new b c bcd bcde b, c or d 0, 1/3 b, c, d or e c 0, 1/2 1/2 C 0, 1/2 d or e b cd new 0, 3/4 b cde 0, 1 E 1 Ls Vegs Step c or d 0, 1/2 e or d 0, 3/4 5/4 F new 1, 1 bc de c or b 0, 1/4 new 1/ 6, 1 Ls Vegs Step Ls Vegs Step 0 1/2 P bcdef +6/5 0 Q bc def +1 R bcd ef+5/6 1/10 1/10 1/10 1/6 1/6 1/6 1 A b c A b d A e f C C b cd b cf C c df A b c 1/2 1/2 1/2 0

96 Equitble, Equitble2 For generl k: EQUITABLE forgives to cone fter O(k 2 log k) bookmrks

97 Equitble, Equitble2 For generl k: EQUITABLE forgives to cone fter O(k 2 log k) bookmrks EQUITABLE forgives to work function with smll support (but not cone) fter O(k) bookmrks

98 Further Reserch The 2-server problem for generl spces

99 Further Reserch The 2-server problem for generl spces CNN: Deterministic: lower bound: [Koutsoupis, Tylor, 2005] Deterministic: upper bound: 10 5, 879 [Sitters Stougie 2005] Rndomized: Open

A Randomized Algorithm for Two Servers in Cross Polytope S

A Randomized Algorithm for Two Servers in Cross Polytope S A Randomied Algorithm for Two Servers in Cross Polytope Spaces Center for the Advanced Study of Algorithms School of Computer Science University of Nevada, Las Vegas WAOA 2007 coauthors: Kauo Iwama, Jun

More information

CSEP 573 Artificial Intelligence Winter 2016

CSEP 573 Artificial Intelligence Winter 2016 CSEP 573 Artificil Intelligence Winter 2016 Luke Zettlemoyer Problem Spces nd Serch slides from Dn Klein, Sturt Russell, Andrew Moore, Dn Weld, Pieter Abbeel, Ali Frhdi Outline Agents tht Pln Ahed Serch

More information

CS 221: Artificial Intelligence Fall 2011

CS 221: Artificial Intelligence Fall 2011 CS 221: Artificil Intelligence Fll 2011 Lecture 2: Serch (Slides from Dn Klein, with help from Sturt Russell, Andrew Moore, Teg Grenger, Peter Norvig) Problem types! Fully observble, deterministic! single-belief-stte

More information

Announcements. CS 188: Artificial Intelligence Fall Recap: Search. Today. Example: Pancake Problem. Example: Pancake Problem

Announcements. CS 188: Artificial Intelligence Fall Recap: Search. Today. Example: Pancake Problem. Example: Pancake Problem Announcements Project : erch It s live! Due 9/. trt erly nd sk questions. It s longer thn most! Need prtner? Come up fter clss or try Pizz ections: cn go to ny, ut hve priority in your own C 88: Artificil

More information

Today. Search Problems. Uninformed Search Methods. Depth-First Search Breadth-First Search Uniform-Cost Search

Today. Search Problems. Uninformed Search Methods. Depth-First Search Breadth-First Search Uniform-Cost Search Uninformed Serch [These slides were creted by Dn Klein nd Pieter Abbeel for CS188 Intro to AI t UC Berkeley. All CS188 mterils re vilble t http://i.berkeley.edu.] Tody Serch Problems Uninformed Serch Methods

More information

Today. CS 188: Artificial Intelligence Fall Recap: Search. Example: Pancake Problem. Example: Pancake Problem. General Tree Search.

Today. CS 188: Artificial Intelligence Fall Recap: Search. Example: Pancake Problem. Example: Pancake Problem. General Tree Search. CS 88: Artificil Intelligence Fll 00 Lecture : A* Serch 9//00 A* Serch rph Serch Tody Heuristic Design Dn Klein UC Berkeley Multiple slides from Sturt Russell or Andrew Moore Recp: Serch Exmple: Pncke

More information

Solving Problems by Searching. CS 486/686: Introduction to Artificial Intelligence Winter 2016

Solving Problems by Searching. CS 486/686: Introduction to Artificial Intelligence Winter 2016 Solving Prolems y Serching CS 486/686: Introduction to Artificil Intelligence Winter 2016 1 Introduction Serch ws one of the first topics studied in AI - Newell nd Simon (1961) Generl Prolem Solver Centrl

More information

Deterministic. Finite Automata. And Regular Languages. Fall 2018 Costas Busch - RPI 1

Deterministic. Finite Automata. And Regular Languages. Fall 2018 Costas Busch - RPI 1 Deterministic Finite Automt And Regulr Lnguges Fll 2018 Costs Busch - RPI 1 Deterministic Finite Automton (DFA) Input Tpe String Finite Automton Output Accept or Reject Fll 2018 Costs Busch - RPI 2 Trnsition

More information

9 Graph Cutting Procedures

9 Graph Cutting Procedures 9 Grph Cutting Procedures Lst clss we begn looking t how to embed rbitrry metrics into distributions of trees, nd proved the following theorem due to Brtl (1996): Theorem 9.1 (Brtl (1996)) Given metric

More information

CSCI 446: Artificial Intelligence

CSCI 446: Artificial Intelligence CSCI 446: Artificil Intelligence Serch Instructor: Michele Vn Dyne [These slides were creted by Dn Klein nd Pieter Abbeel for CS188 Intro to AI t UC Berkeley. All CS188 mterils re vilble t http://i.berkeley.edu.]

More information

Midterm 2 Sample solution

Midterm 2 Sample solution Nme: Instructions Midterm 2 Smple solution CMSC 430 Introduction to Compilers Fll 2012 November 28, 2012 This exm contins 9 pges, including this one. Mke sure you hve ll the pges. Write your nme on the

More information

AI Adjacent Fields. This slide deck courtesy of Dan Klein at UC Berkeley

AI Adjacent Fields. This slide deck courtesy of Dan Klein at UC Berkeley AI Adjcent Fields Philosophy: Logic, methods of resoning Mind s physicl system Foundtions of lerning, lnguge, rtionlity Mthemtics Forml representtion nd proof Algorithms, computtion, (un)decidility, (in)trctility

More information

Regular Expression Matching with Multi-Strings and Intervals. Philip Bille Mikkel Thorup

Regular Expression Matching with Multi-Strings and Intervals. Philip Bille Mikkel Thorup Regulr Expression Mtching with Multi-Strings nd Intervls Philip Bille Mikkel Thorup Outline Definition Applictions Previous work Two new problems: Multi-strings nd chrcter clss intervls Algorithms Thompson

More information

Dynamic Programming. Andreas Klappenecker. [partially based on slides by Prof. Welch] Monday, September 24, 2012

Dynamic Programming. Andreas Klappenecker. [partially based on slides by Prof. Welch] Monday, September 24, 2012 Dynmic Progrmming Andres Klppenecker [prtilly bsed on slides by Prof. Welch] 1 Dynmic Progrmming Optiml substructure An optiml solution to the problem contins within it optiml solutions to subproblems.

More information

In the last lecture, we discussed how valid tokens may be specified by regular expressions.

In the last lecture, we discussed how valid tokens may be specified by regular expressions. LECTURE 5 Scnning SYNTAX ANALYSIS We know from our previous lectures tht the process of verifying the syntx of the progrm is performed in two stges: Scnning: Identifying nd verifying tokens in progrm.

More information

Announcements. CS 188: Artificial Intelligence Fall Recap: Search. Today. General Tree Search. Uniform Cost. Lecture 3: A* Search 9/4/2007

Announcements. CS 188: Artificial Intelligence Fall Recap: Search. Today. General Tree Search. Uniform Cost. Lecture 3: A* Search 9/4/2007 CS 88: Artificil Intelligence Fll 2007 Lecture : A* Serch 9/4/2007 Dn Klein UC Berkeley Mny slides over the course dpted from either Sturt Russell or Andrew Moore Announcements Sections: New section 06:

More information

Solving Problems by Searching. CS 486/686: Introduction to Artificial Intelligence

Solving Problems by Searching. CS 486/686: Introduction to Artificial Intelligence Solving Prolems y Serching CS 486/686: Introduction to Artificil Intelligence 1 Introduction Serch ws one of the first topics studied in AI - Newell nd Simon (1961) Generl Prolem Solver Centrl component

More information

Allocator Basics. Dynamic Memory Allocation in the Heap (malloc and free) Allocator Goals: malloc/free. Internal Fragmentation

Allocator Basics. Dynamic Memory Allocation in the Heap (malloc and free) Allocator Goals: malloc/free. Internal Fragmentation Alloctor Bsics Dynmic Memory Alloction in the Hep (mlloc nd free) Pges too corse-grined for llocting individul objects. Insted: flexible-sized, word-ligned blocks. Allocted block (4 words) Free block (3

More information

MA1008. Calculus and Linear Algebra for Engineers. Course Notes for Section B. Stephen Wills. Department of Mathematics. University College Cork

MA1008. Calculus and Linear Algebra for Engineers. Course Notes for Section B. Stephen Wills. Department of Mathematics. University College Cork MA1008 Clculus nd Liner Algebr for Engineers Course Notes for Section B Stephen Wills Deprtment of Mthemtics University College Cork s.wills@ucc.ie http://euclid.ucc.ie/pges/stff/wills/teching/m1008/ma1008.html

More information

Theory of Computation CSE 105

Theory of Computation CSE 105 $ $ $ Theory of Computtion CSE 105 Regulr Lnguges Study Guide nd Homework I Homework I: Solutions to the following problems should be turned in clss on July 1, 1999. Instructions: Write your nswers clerly

More information

UNIT 11. Query Optimization

UNIT 11. Query Optimization UNIT Query Optimiztion Contents Introduction to Query Optimiztion 2 The Optimiztion Process: An Overview 3 Optimiztion in System R 4 Optimiztion in INGRES 5 Implementing the Join Opertors Wei-Png Yng,

More information

A Transportation Problem Analysed by a New Ranking Method

A Transportation Problem Analysed by a New Ranking Method (IJIRSE) Interntionl Journl of Innovtive Reserch in Science & Engineering ISSN (Online) 7-07 A Trnsporttion Problem Anlysed by New Rnking Method Dr. A. Shy Sudh P. Chinthiy Associte Professor PG Scholr

More information

P(r)dr = probability of generating a random number in the interval dr near r. For this probability idea to make sense we must have

P(r)dr = probability of generating a random number in the interval dr near r. For this probability idea to make sense we must have Rndom Numers nd Monte Crlo Methods Rndom Numer Methods The integrtion methods discussed so fr ll re sed upon mking polynomil pproximtions to the integrnd. Another clss of numericl methods relies upon using

More information

Fig.25: the Role of LEX

Fig.25: the Role of LEX The Lnguge for Specifying Lexicl Anlyzer We shll now study how to uild lexicl nlyzer from specifiction of tokens in the form of list of regulr expressions The discussion centers round the design of n existing

More information

ΕΠΛ323 - Θεωρία και Πρακτική Μεταγλωττιστών

ΕΠΛ323 - Θεωρία και Πρακτική Μεταγλωττιστών ΕΠΛ323 - Θωρία και Πρακτική Μταγλωττιστών Lecture 3 Lexicl Anlysis Elis Athnsopoulos elisthn@cs.ucy.c.cy Recognition of Tokens if expressions nd reltionl opertors if è if then è then else è else relop

More information

CMSC 331 First Midterm Exam

CMSC 331 First Midterm Exam 0 00/ 1 20/ 2 05/ 3 15/ 4 15/ 5 15/ 6 20/ 7 30/ 8 30/ 150/ 331 First Midterm Exm 7 October 2003 CMC 331 First Midterm Exm Nme: mple Answers tudent ID#: You will hve seventy-five (75) minutes to complete

More information

5 Regular 4-Sided Composition

5 Regular 4-Sided Composition Xilinx-Lv User Guide 5 Regulr 4-Sided Composition This tutoril shows how regulr circuits with 4-sided elements cn be described in Lv. The type of regulr circuits tht re discussed in this tutoril re those

More information

such that the S i cover S, or equivalently S

such that the S i cover S, or equivalently S MATH 55 Triple Integrls Fll 16 1. Definition Given solid in spce, prtition of consists of finite set of solis = { 1,, n } such tht the i cover, or equivlently n i. Furthermore, for ech i, intersects i

More information

Introduction to Integration

Introduction to Integration Introduction to Integrtion Definite integrls of piecewise constnt functions A constnt function is function of the form Integrtion is two things t the sme time: A form of summtion. The opposite of differentition.

More information

LECT-10, S-1 FP2P08, Javed I.

LECT-10, S-1 FP2P08, Javed I. A Course on Foundtions of Peer-to-Peer Systems & Applictions LECT-10, S-1 CS /799 Foundtion of Peer-to-Peer Applictions & Systems Kent Stte University Dept. of Computer Science www.cs.kent.edu/~jved/clss-p2p08

More information

Tries. Yufei Tao KAIST. April 9, Y. Tao, April 9, 2013 Tries

Tries. Yufei Tao KAIST. April 9, Y. Tao, April 9, 2013 Tries Tries Yufei To KAIST April 9, 2013 Y. To, April 9, 2013 Tries In this lecture, we will discuss the following exct mtching prolem on strings. Prolem Let S e set of strings, ech of which hs unique integer

More information

Complete Coverage Path Planning of Mobile Robot Based on Dynamic Programming Algorithm Peng Zhou, Zhong-min Wang, Zhen-nan Li, Yang Li

Complete Coverage Path Planning of Mobile Robot Based on Dynamic Programming Algorithm Peng Zhou, Zhong-min Wang, Zhen-nan Li, Yang Li 2nd Interntionl Conference on Electronic & Mechnicl Engineering nd Informtion Technology (EMEIT-212) Complete Coverge Pth Plnning of Mobile Robot Bsed on Dynmic Progrmming Algorithm Peng Zhou, Zhong-min

More information

Definition of Regular Expression

Definition of Regular Expression Definition of Regulr Expression After the definition of the string nd lnguges, we re redy to descrie regulr expressions, the nottion we shll use to define the clss of lnguges known s regulr sets. Recll

More information

Presentation Martin Randers

Presentation Martin Randers Presenttion Mrtin Rnders Outline Introduction Algorithms Implementtion nd experiments Memory consumption Summry Introduction Introduction Evolution of species cn e modelled in trees Trees consist of nodes

More information

Fall 2018 Midterm 1 October 11, ˆ You may not ask questions about the exam except for language clarifications.

Fall 2018 Midterm 1 October 11, ˆ You may not ask questions about the exam except for language clarifications. 15-112 Fll 2018 Midterm 1 October 11, 2018 Nme: Andrew ID: Recittion Section: ˆ You my not use ny books, notes, extr pper, or electronic devices during this exm. There should be nothing on your desk or

More information

CS321 Languages and Compiler Design I. Winter 2012 Lecture 5

CS321 Languages and Compiler Design I. Winter 2012 Lecture 5 CS321 Lnguges nd Compiler Design I Winter 2012 Lecture 5 1 FINITE AUTOMATA A non-deterministic finite utomton (NFA) consists of: An input lphet Σ, e.g. Σ =,. A set of sttes S, e.g. S = {1, 3, 5, 7, 11,

More information

Stained Glass Design. Teaching Goals:

Stained Glass Design. Teaching Goals: Stined Glss Design Time required 45-90 minutes Teching Gols: 1. Students pply grphic methods to design vrious shpes on the plne.. Students pply geometric trnsformtions of grphs of functions in order to

More information

Journal of Graph Algorithms and Applications

Journal of Graph Algorithms and Applications Journl of Grph Algorithms nd Applictions http://www.cs.brown.edu/publictions/jg/ vol. 5, no. 5, pp. 17 38 (2001) New Bounds for Oblivious Mesh Routing Kzuo Iwm School of Informtics Kyoto University Kyoto

More information

2 Computing all Intersections of a Set of Segments Line Segment Intersection

2 Computing all Intersections of a Set of Segments Line Segment Intersection 15-451/651: Design & Anlysis of Algorithms Novemer 14, 2016 Lecture #21 Sweep-Line nd Segment Intersection lst chnged: Novemer 8, 2017 1 Preliminries The sweep-line prdigm is very powerful lgorithmic design

More information

CS481: Bioinformatics Algorithms

CS481: Bioinformatics Algorithms CS481: Bioinformtics Algorithms Cn Alkn EA509 clkn@cs.ilkent.edu.tr http://www.cs.ilkent.edu.tr/~clkn/teching/cs481/ EXACT STRING MATCHING Fingerprint ide Assume: We cn compute fingerprint f(p) of P in

More information

CS201 Discussion 10 DRAWTREE + TRIES

CS201 Discussion 10 DRAWTREE + TRIES CS201 Discussion 10 DRAWTREE + TRIES DrwTree First instinct: recursion As very generic structure, we could tckle this problem s follows: drw(): Find the root drw(root) drw(root): Write the line for the

More information

If you are at the university, either physically or via the VPN, you can download the chapters of this book as PDFs.

If you are at the university, either physically or via the VPN, you can download the chapters of this book as PDFs. Lecture 5 Wlks, Trils, Pths nd Connectedness Reding: Some of the mteril in this lecture comes from Section 1.2 of Dieter Jungnickel (2008), Grphs, Networks nd Algorithms, 3rd edition, which is ville online

More information

Dr. D.M. Akbar Hussain

Dr. D.M. Akbar Hussain Dr. D.M. Akr Hussin Lexicl Anlysis. Bsic Ide: Red the source code nd generte tokens, it is similr wht humns will do to red in; just tking on the input nd reking it down in pieces. Ech token is sequence

More information

Unit #9 : Definite Integral Properties, Fundamental Theorem of Calculus

Unit #9 : Definite Integral Properties, Fundamental Theorem of Calculus Unit #9 : Definite Integrl Properties, Fundmentl Theorem of Clculus Gols: Identify properties of definite integrls Define odd nd even functions, nd reltionship to integrl vlues Introduce the Fundmentl

More information

ECE 468/573 Midterm 1 September 28, 2012

ECE 468/573 Midterm 1 September 28, 2012 ECE 468/573 Midterm 1 September 28, 2012 Nme:! Purdue emil:! Plese sign the following: I ffirm tht the nswers given on this test re mine nd mine lone. I did not receive help from ny person or mteril (other

More information

Phylogeny and Molecular Evolution

Phylogeny and Molecular Evolution Phylogeny nd Moleculr Evolution Chrcter Bsed Phylogeny 1/50 Credit Ron Shmir s lecture notes Notes by Nir Friedmn Dn Geiger, Shlomo Morn, Sgi Snir nd Ron Shmir Durbin et l. Jones nd Pevzner s presenttion

More information

Objective: Students will understand what it means to describe, graph and write the equation of a parabola. Parabolas

Objective: Students will understand what it means to describe, graph and write the equation of a parabola. Parabolas Pge 1 of 8 Ojective: Students will understnd wht it mens to descrie, grph nd write the eqution of prol. Prols Prol: collection of ll points P in plne tht re the sme distnce from fixed point, the focus

More information

Looking up objects in Pastry

Looking up objects in Pastry Review: Pstry routing tbles 0 1 2 3 4 7 8 9 b c d e f 0 1 2 3 4 7 8 9 b c d e f 0 1 2 3 4 7 8 9 b c d e f 0 2 3 4 7 8 9 b c d e f Row0 Row 1 Row 2 Row 3 Routing tble of node with ID i =1fc s - For ech

More information

10.5 Graphing Quadratic Functions

10.5 Graphing Quadratic Functions 0.5 Grphing Qudrtic Functions Now tht we cn solve qudrtic equtions, we wnt to lern how to grph the function ssocited with the qudrtic eqution. We cll this the qudrtic function. Grphs of Qudrtic Functions

More information

EECS 281: Homework #4 Due: Thursday, October 7, 2004

EECS 281: Homework #4 Due: Thursday, October 7, 2004 EECS 28: Homework #4 Due: Thursdy, October 7, 24 Nme: Emil:. Convert the 24-bit number x44243 to mime bse64: QUJD First, set is to brek 8-bit blocks into 6-bit blocks, nd then convert: x44243 b b 6 2 9

More information

MA 124 (Calculus II) Lecture 2: January 24, 2019 Section A3. Professor Jennifer Balakrishnan,

MA 124 (Calculus II) Lecture 2: January 24, 2019 Section A3. Professor Jennifer Balakrishnan, Wht is on tody Professor Jennifer Blkrishnn, jbl@bu.edu 1 Velocity nd net chnge 1 2 Regions between curves 3 1 Velocity nd net chnge Briggs-Cochrn-Gillett 6.1 pp. 398-46 Suppose you re driving long stright

More information

Compression Outline :Algorithms in the Real World. Lempel-Ziv Algorithms. LZ77: Sliding Window Lempel-Ziv

Compression Outline :Algorithms in the Real World. Lempel-Ziv Algorithms. LZ77: Sliding Window Lempel-Ziv Compression Outline 15-853:Algorithms in the Rel World Dt Compression III Introduction: Lossy vs. Lossless, Benchmrks, Informtion Theory: Entropy, etc. Proility Coding: Huffmn + Arithmetic Coding Applictions

More information

A REINFORCEMENT LEARNING APPROACH TO SCHEDULING DUAL-ARMED CLUSTER TOOLS WITH TIME VARIATIONS

A REINFORCEMENT LEARNING APPROACH TO SCHEDULING DUAL-ARMED CLUSTER TOOLS WITH TIME VARIATIONS A REINFORCEMENT LEARNING APPROACH TO SCHEDULING DUAL-ARMED CLUSTER TOOLS WITH TIME VARIATIONS Ji-Eun Roh (), Te-Eog Lee (b) (),(b) Deprtment of Industril nd Systems Engineering, Kore Advnced Institute

More information

On the Detection of Step Edges in Algorithms Based on Gradient Vector Analysis

On the Detection of Step Edges in Algorithms Based on Gradient Vector Analysis On the Detection of Step Edges in Algorithms Bsed on Grdient Vector Anlysis A. Lrr6, E. Montseny Computer Engineering Dept. Universitt Rovir i Virgili Crreter de Slou sin 43006 Trrgon, Spin Emil: lrre@etse.urv.es

More information

What are suffix trees?

What are suffix trees? Suffix Trees 1 Wht re suffix trees? Allow lgorithm designers to store very lrge mount of informtion out strings while still keeping within liner spce Allow users to serch for new strings in the originl

More information

Ma/CS 6b Class 1: Graph Recap

Ma/CS 6b Class 1: Graph Recap M/CS 6 Clss 1: Grph Recp By Adm Sheffer Course Detils Adm Sheffer. Office hour: Tuesdys 4pm. dmsh@cltech.edu TA: Victor Kstkin. Office hour: Tuesdys 7pm. 1:00 Mondy, Wednesdy, nd Fridy. http://www.mth.cltech.edu/~2014-15/2term/m006/

More information

Welch Allyn CardioPerfect Workstation Installation Guide

Welch Allyn CardioPerfect Workstation Installation Guide Welch Allyn CrdioPerfect Worksttion Instlltion Guide INSTALLING CARDIOPERFECT WORKSTATION SOFTWARE & ACCESSORIES ON A SINGLE PC For softwre version 1.6.6 or lter For network instlltion, plese refer to

More information

style type="text/css".wpb_animate_when_almost_visible { opacity: 1; }/style

style type=text/css.wpb_animate_when_almost_visible { opacity: 1; }/style style type="text/css".wpb_nimte_when_lmost_vible { opcity: 1; }/style You cn chrome homepge for internet explorer quickly chrome homepge for internet explorer get chrome homepge for internet explorer every

More information

Engineer To Engineer Note

Engineer To Engineer Note Engineer To Engineer Note EE-169 Technicl Notes on using Anlog Devices' DSP components nd development tools Contct our technicl support by phone: (800) ANALOG-D or e-mil: dsp.support@nlog.com Or visit

More information

MTH 146 Conics Supplement

MTH 146 Conics Supplement 105- Review of Conics MTH 146 Conics Supplement In this section we review conics If ou ne more detils thn re present in the notes, r through section 105 of the ook Definition: A prol is the set of points

More information

Hyperbolas. Definition of Hyperbola

Hyperbolas. Definition of Hyperbola CHAT Pre-Clculus Hyperols The third type of conic is clled hyperol. For n ellipse, the sum of the distnces from the foci nd point on the ellipse is fixed numer. For hyperol, the difference of the distnces

More information

Slides for Data Mining by I. H. Witten and E. Frank

Slides for Data Mining by I. H. Witten and E. Frank Slides for Dt Mining y I. H. Witten nd E. Frnk Simplicity first Simple lgorithms often work very well! There re mny kinds of simple structure, eg: One ttriute does ll the work All ttriutes contriute eqully

More information

MATH 2530: WORKSHEET 7. x 2 y dz dy dx =

MATH 2530: WORKSHEET 7. x 2 y dz dy dx = MATH 253: WORKSHT 7 () Wrm-up: () Review: polr coordintes, integrls involving polr coordintes, triple Riemnn sums, triple integrls, the pplictions of triple integrls (especilly to volume), nd cylindricl

More information

License Manager Installation and Setup

License Manager Installation and Setup The Network License (concurrent-user) version of e-dpp hs hrdwre key plugged to the computer running the License Mnger softwre. In the e-dpp terminology, this computer is clled the License Mnger Server.

More information

A New Learning Algorithm for the MAXQ Hierarchical Reinforcement Learning Method

A New Learning Algorithm for the MAXQ Hierarchical Reinforcement Learning Method A New Lerning Algorithm for the MAXQ Hierrchicl Reinforcement Lerning Method Frzneh Mirzzdeh 1, Bbk Behsz 2, nd Hmid Beigy 1 1 Deprtment of Computer Engineering, Shrif University of Technology, Tehrn,

More information

Topic 2: Lexing and Flexing

Topic 2: Lexing and Flexing Topic 2: Lexing nd Flexing COS 320 Compiling Techniques Princeton University Spring 2016 Lennrt Beringer 1 2 The Compiler Lexicl Anlysis Gol: rek strem of ASCII chrcters (source/input) into sequence of

More information

DQL: A New Updating Strategy for Reinforcement Learning Based on Q-Learning

DQL: A New Updating Strategy for Reinforcement Learning Based on Q-Learning DQL: A New Updting Strtegy for Reinforcement Lerning Bsed on Q-Lerning Crlos E. Mrino 1 nd Edurdo F. Morles 2 1 Instituto Mexicno de Tecnologí del Agu, Pseo Cuhunáhuc 8532, Jiutepec, Morelos, 6255, MEXICO

More information

The Math Learning Center PO Box 12929, Salem, Oregon Math Learning Center

The Math Learning Center PO Box 12929, Salem, Oregon Math Learning Center Resource Overview Quntile Mesure: Skill or Concept: 80Q Multiply two frctions or frction nd whole numer. (QT N ) Excerpted from: The Mth Lerning Center PO Box 99, Slem, Oregon 9709 099 www.mthlerningcenter.org

More information

Lexical Analysis: Constructing a Scanner from Regular Expressions

Lexical Analysis: Constructing a Scanner from Regular Expressions Lexicl Anlysis: Constructing Scnner from Regulr Expressions Gol Show how to construct FA to recognize ny RE This Lecture Convert RE to n nondeterministic finite utomton (NFA) Use Thompson s construction

More information

Network Interconnection: Bridging CS 571 Fall Kenneth L. Calvert All rights reserved

Network Interconnection: Bridging CS 571 Fall Kenneth L. Calvert All rights reserved Network Interconnection: Bridging CS 57 Fll 6 6 Kenneth L. Clvert All rights reserved The Prolem We know how to uild (rodcst) LANs Wnt to connect severl LANs together to overcome scling limits Recll: speed

More information

Geometric transformations

Geometric transformations Geometric trnsformtions Computer Grphics Some slides re bsed on Shy Shlom slides from TAU mn n n m m T A,,,,,, 2 1 2 22 12 1 21 11 Rows become columns nd columns become rows nm n n m m A,,,,,, 1 1 2 22

More information

Math 464 Fall 2012 Notes on Marginal and Conditional Densities October 18, 2012

Math 464 Fall 2012 Notes on Marginal and Conditional Densities October 18, 2012 Mth 464 Fll 2012 Notes on Mrginl nd Conditionl Densities klin@mth.rizon.edu October 18, 2012 Mrginl densities. Suppose you hve 3 continuous rndom vribles X, Y, nd Z, with joint density f(x,y,z. The mrginl

More information

Network Layer: Routing Classifications; Shortest Path Routing

Network Layer: Routing Classifications; Shortest Path Routing igitl ommuniction in the Modern World : Routing lssifictions; Shortest Pth Routing s min prolem: To get efficiently from one point to the other in dynmic environment http://.cs.huji.c.il/~com com@cs.huji.c.il

More information

AVolumePreservingMapfromCubetoOctahedron

AVolumePreservingMapfromCubetoOctahedron Globl Journl of Science Frontier Reserch: F Mthemtics nd Decision Sciences Volume 18 Issue 1 Version 1.0 er 018 Type: Double Blind Peer Reviewed Interntionl Reserch Journl Publisher: Globl Journls Online

More information

Unit 5 Vocabulary. A function is a special relationship where each input has a single output.

Unit 5 Vocabulary. A function is a special relationship where each input has a single output. MODULE 3 Terms Definition Picture/Exmple/Nottion 1 Function Nottion Function nottion is n efficient nd effective wy to write functions of ll types. This nottion llows you to identify the input vlue with

More information

MATH 25 CLASS 5 NOTES, SEP

MATH 25 CLASS 5 NOTES, SEP MATH 25 CLASS 5 NOTES, SEP 30 2011 Contents 1. A brief diversion: reltively prime numbers 1 2. Lest common multiples 3 3. Finding ll solutions to x + by = c 4 Quick links to definitions/theorems Euclid

More information

Exam #1 for Computer Simulation Spring 2005

Exam #1 for Computer Simulation Spring 2005 Exm # for Computer Simultion Spring 005 >>> SOLUTION

More information

TO REGULAR EXPRESSIONS

TO REGULAR EXPRESSIONS Suject :- Computer Science Course Nme :- Theory Of Computtion DA TO REGULAR EXPRESSIONS Report Sumitted y:- Ajy Singh Meen 07000505 jysmeen@cse.iit.c.in BASIC DEINITIONS DA:- A finite stte mchine where

More information

Mid-term exam. Scores. Fall term 2012 KAIST EE209 Programming Structures for EE. Thursday Oct 25, Student's name: Student ID:

Mid-term exam. Scores. Fall term 2012 KAIST EE209 Programming Structures for EE. Thursday Oct 25, Student's name: Student ID: Fll term 2012 KAIST EE209 Progrmming Structures for EE Mid-term exm Thursdy Oct 25, 2012 Student's nme: Student ID: The exm is closed book nd notes. Red the questions crefully nd focus your nswers on wht

More information

How to Design REST API? Written Date : March 23, 2015

How to Design REST API? Written Date : March 23, 2015 Visul Prdigm How Design REST API? Turil How Design REST API? Written Dte : Mrch 23, 2015 REpresenttionl Stte Trnsfer, n rchitecturl style tht cn be used in building networked pplictions, is becoming incresingly

More information

ΕΠΛ323 - Θεωρία και Πρακτική Μεταγλωττιστών. Lecture 3b Lexical Analysis Elias Athanasopoulos

ΕΠΛ323 - Θεωρία και Πρακτική Μεταγλωττιστών. Lecture 3b Lexical Analysis Elias Athanasopoulos ΕΠΛ323 - Θωρία και Πρακτική Μταγλωττιστών Lecture 3 Lexicl Anlysis Elis Athnsopoulos elisthn@cs.ucy.c.cy RecogniNon of Tokens if expressions nd relnonl opertors if è if then è then else è else relop è

More information

CS143 Handout 07 Summer 2011 June 24 th, 2011 Written Set 1: Lexical Analysis

CS143 Handout 07 Summer 2011 June 24 th, 2011 Written Set 1: Lexical Analysis CS143 Hndout 07 Summer 2011 June 24 th, 2011 Written Set 1: Lexicl Anlysis In this first written ssignment, you'll get the chnce to ply round with the vrious constructions tht come up when doing lexicl

More information

The Fundamental Theorem of Calculus

The Fundamental Theorem of Calculus MATH 6 The Fundmentl Theorem of Clculus The Fundmentl Theorem of Clculus (FTC) gives method of finding the signed re etween the grph of f nd the x-xis on the intervl [, ]. The theorem is: FTC: If f is

More information

Stack. A list whose end points are pointed by top and bottom

Stack. A list whose end points are pointed by top and bottom 4. Stck Stck A list whose end points re pointed by top nd bottom Insertion nd deletion tke plce t the top (cf: Wht is the difference between Stck nd Arry?) Bottom is constnt, but top grows nd shrinks!

More information

Double Integrals. MATH 375 Numerical Analysis. J. Robert Buchanan. Fall Department of Mathematics. J. Robert Buchanan Double Integrals

Double Integrals. MATH 375 Numerical Analysis. J. Robert Buchanan. Fall Department of Mathematics. J. Robert Buchanan Double Integrals Double Integrls MATH 375 Numericl Anlysis J. Robert Buchnn Deprtment of Mthemtics Fll 2013 J. Robert Buchnn Double Integrls Objectives Now tht we hve discussed severl methods for pproximting definite integrls

More information

PARALLEL AND DISTRIBUTED COMPUTING

PARALLEL AND DISTRIBUTED COMPUTING PARALLEL AND DISTRIBUTED COMPUTING 2009/2010 1 st Semester Teste Jnury 9, 2010 Durtion: 2h00 - No extr mteril llowed. This includes notes, scrtch pper, clcultor, etc. - Give your nswers in the ville spce

More information

Uninformed Search. Hal Daumé III. Computer Science University of Maryland CS 421: Introduction to Artificial Intelligence 31 Jan 2012

Uninformed Search. Hal Daumé III. Computer Science University of Maryland CS 421: Introduction to Artificial Intelligence 31 Jan 2012 1 Hl Dumé III (me@hl3.nme) Uninformed Serch Hl Dumé III Comuter Science University of Mrylnd me@hl3.nme CS 421: Introduction to Artificil Intelligence 31 Jn 2012 Mny slides courtesy of Dn Klein, Sturt

More information

Lecture 10 Evolutionary Computation: Evolution strategies and genetic programming

Lecture 10 Evolutionary Computation: Evolution strategies and genetic programming Lecture 10 Evolutionry Computtion: Evolution strtegies nd genetic progrmming Evolution strtegies Genetic progrmming Summry Negnevitsky, Person Eduction, 2011 1 Evolution Strtegies Another pproch to simulting

More information

1. SEQUENCES INVOLVING EXPONENTIAL GROWTH (GEOMETRIC SEQUENCES)

1. SEQUENCES INVOLVING EXPONENTIAL GROWTH (GEOMETRIC SEQUENCES) Numbers nd Opertions, Algebr, nd Functions 45. SEQUENCES INVOLVING EXPONENTIAL GROWTH (GEOMETRIC SEQUENCES) In sequence of terms involving eponentil growth, which the testing service lso clls geometric

More information

a < a+ x < a+2 x < < a+n x = b, n A i n f(x i ) x. i=1 i=1

a < a+ x < a+2 x < < a+n x = b, n A i n f(x i ) x. i=1 i=1 Mth 33 Volume Stewrt 5.2 Geometry of integrls. In this section, we will lern how to compute volumes using integrls defined by slice nlysis. First, we recll from Clculus I how to compute res. Given the

More information

The Distributed Data Access Schemes in Lambda Grid Networks

The Distributed Data Access Schemes in Lambda Grid Networks The Distributed Dt Access Schemes in Lmbd Grid Networks Ryot Usui, Hiroyuki Miygi, Yutk Arkw, Storu Okmoto, nd Noki Ymnk Grdute School of Science for Open nd Environmentl Systems, Keio University, Jpn

More information

If f(x, y) is a surface that lies above r(t), we can think about the area between the surface and the curve.

If f(x, y) is a surface that lies above r(t), we can think about the area between the surface and the curve. Line Integrls The ide of line integrl is very similr to tht of single integrls. If the function f(x) is bove the x-xis on the intervl [, b], then the integrl of f(x) over [, b] is the re under f over the

More information

Physics 208: Electricity and Magnetism Exam 1, Secs Feb IMPORTANT. Read these directions carefully:

Physics 208: Electricity and Magnetism Exam 1, Secs Feb IMPORTANT. Read these directions carefully: Physics 208: Electricity nd Mgnetism Exm 1, Secs. 506 510 11 Feb. 2004 Instructor: Dr. George R. Welch, 415 Engineering-Physics, 845-7737 Print your nme netly: Lst nme: First nme: Sign your nme: Plese

More information

Section 3.1: Sequences and Series

Section 3.1: Sequences and Series Section.: Sequences d Series Sequences Let s strt out with the definition of sequence: sequence: ordered list of numbers, often with definite pttern Recll tht in set, order doesn t mtter so this is one

More information

Homework. Context Free Languages III. Languages. Plan for today. Context Free Languages. CFLs and Regular Languages. Homework #5 (due 10/22)

Homework. Context Free Languages III. Languages. Plan for today. Context Free Languages. CFLs and Regular Languages. Homework #5 (due 10/22) Homework Context Free Lnguges III Prse Trees nd Homework #5 (due 10/22) From textbook 6.4,b 6.5b 6.9b,c 6.13 6.22 Pln for tody Context Free Lnguges Next clss of lnguges in our quest! Lnguges Recll. Wht

More information

Representation of Numbers. Number Representation. Representation of Numbers. 32-bit Unsigned Integers 3/24/2014. Fixed point Integer Representation

Representation of Numbers. Number Representation. Representation of Numbers. 32-bit Unsigned Integers 3/24/2014. Fixed point Integer Representation Representtion of Numbers Number Representtion Computer represent ll numbers, other thn integers nd some frctions with imprecision. Numbers re stored in some pproximtion which cn be represented by fixed

More information

Ma/CS 6b Class 1: Graph Recap

Ma/CS 6b Class 1: Graph Recap M/CS 6 Clss 1: Grph Recp By Adm Sheffer Course Detils Instructor: Adm Sheffer. TA: Cosmin Pohot. 1pm Mondys, Wednesdys, nd Fridys. http://mth.cltech.edu/~2015-16/2term/m006/ Min ook: Introduction to Grph

More information

What do all those bits mean now? Number Systems and Arithmetic. Introduction to Binary Numbers. Questions About Numbers

What do all those bits mean now? Number Systems and Arithmetic. Introduction to Binary Numbers. Questions About Numbers Wht do ll those bits men now? bits (...) Number Systems nd Arithmetic or Computers go to elementry school instruction R-formt I-formt... integer dt number text chrs... floting point signed unsigned single

More information

CS311H: Discrete Mathematics. Graph Theory IV. A Non-planar Graph. Regions of a Planar Graph. Euler s Formula. Instructor: Işıl Dillig

CS311H: Discrete Mathematics. Graph Theory IV. A Non-planar Graph. Regions of a Planar Graph. Euler s Formula. Instructor: Işıl Dillig CS311H: Discrete Mthemtics Grph Theory IV Instructor: Işıl Dillig Instructor: Işıl Dillig, CS311H: Discrete Mthemtics Grph Theory IV 1/25 A Non-plnr Grph Regions of Plnr Grph The plnr representtion of

More information

Ray surface intersections

Ray surface intersections Ry surfce intersections Some primitives Finite primitives: polygons spheres, cylinders, cones prts of generl qudrics Infinite primitives: plnes infinite cylinders nd cones generl qudrics A finite primitive

More information