Problems and Solutions

Size: px
Start display at page:

Download "Problems and Solutions"

Transcription

1 Problems ad Solutos Let P be a problem ad S be the set of all solutos to the problem. Deso Problem: Is S empty? Coutg Problem: What s the sze of S? Searh Problem: fd a elemet of S Eumerato Problem: fd S Lous D. Nel 007 COMP 40 Aalyss of Algorthms

2 Problem Populatos ad Searhg Let P be a problem that a be desrbed by a populato of thgs, ad S be the set of all solutos to the problem. Lear Searh: fd those elemets of the populato that satsfy some property. e.g. fd all the studets the lass whose frst ame s Joh Subset Searh: fd those subsets of the populato that satsfy some property. e.g. fd all the subsets of studets the lass who have bee a vehle together at the same tme. Combato Searh: fd those ordergs of the populato that satsfy some property. e.g. fd all the ordergs of studets the lass suh that o two adjaet studets have the same frst ame. Lous D. Nel 007 COMP 40 Aalyss of Algorthms

3 Exhaustve Searhes Problems o populatos of sze a usually be solved wth a exhaustve searh. Lear Searh: fd those elemets of the populato that satsfy some property. e.g. fd all the studets the lass whose frst ame s Joh There are ombatos to searh lear searh Subset Searh: fd those subsets of the populato that satsfy some property. e.g. fd all the subsets of studets the lass who have bee a vehle together at the same tme. There are ombatos to searh Combato Searh: fd those ordergs of the populato that satsfy some property. e.g. fd all the ordergs of studets the lass suh that o two adjaet studets have the same frst ame. There are! ombatos to searh Lous D. Nel 007 COMP 40 Aalyss of Algorthms 3

4 Effey Here are three possble deftos of solvg a problem effetly Solvg the problem wthout u-eessary waste Solvg the problem faster tha a exhaustve searh ould. Solvg the problem polyomal-tme: a amout of tme that a be bouded by some polyomal of the populatos sze. e.g. T the tme to solve a problem of sze s at most p for some polyomal p a a - - a - -. a 0 Sgfae s that ths would be faster tha exhaustve searh of subsets or ordergs! Lous D. Nel 007 COMP 40 Aalyss of Algorthms 4

5 Bg Oh Notato Let T be the tme t taes a algorthm to solve a problem of sze. T s Of f there exsts ostats ad 0 suh that for > 0. T f I other words: f s a upper boud o the tme requred to solve problems of sze greater tha 0. Lous D. Nel 007 COMP 40 Aalyss of Algorthms 5

6 Bg Omega Notato Let T be the tme t taes a algorthm to solve a problem of sze. T s Ωf f there exsts ostats ad 0 suh that for > 0. T f I other words: f s a lower boud o the tme requred to solve problems of sze greater tha 0. Lower bouds are muh harder to prove tha upper bouds Lous D. Nel 007 COMP 40 Aalyss of Algorthms 6

7 Bg Oh Notato -Goals We wat to get the tghtest upper boud we a. We would ot say T s O f we a say, or prove, that T s Olog or eve better T s O. We wat to always gve the smplest boud we a. We would ot say T s O beause s O. Proof: < so < for some, >. hee s O Whe we say T s Of we mea the worst ase tme to solve ay problem of sze, eve though there may be some problems of sze that are easer to solve. Oh-otato gves a pessmst upper boud. Lous D. Nel 007 COMP 40 Aalyss of Algorthms 7

8 Bg Oh Notato -Goals We are usually terested determg f T s oe of the followg. O Olog O Olog O O ostat tme logarthm tme lear tme super lear tme quadrat tme polyomal tme O expoetal tme O! super-expoetal tme Lous D. Nel 007 COMP 40 Aalyss of Algorthms 8

9 Bg Omega Notato -Goals We wat to get the tghtest lower boud we a. We would ot say T s Ω f we a say, or prove, that T s Ωlog or eve better T s Ω. We wat to always gve the smplest boud we a. We would ot say T s Ω beause s Ω. Proof: > so > for some, >. hee s Ω Whe we say T s Ωf we mea that some problems of sze wll requre at least f tme to solve, though there mght be some problems of sze that a be solved more quly. Lous D. Nel 007 COMP 40 Aalyss of Algorthms 9

10 Mathematal Rules for Bg Oh otato f s Oaf for ay ostat a > 0. If f g ad g s Oh, the f s Oh. If f s Og ad g s Oh, the f s Oh. f g s Omaxf,g. If g s Oh, the fg s Of h. If g s Oh, the fg s Ofh. If f s a polyomal of degree d.e. f a 0 a... a d d, the f s O d. x s Oa for ay fxed x > 0 ad a >. log x s Olog for ay fxed x > 0. logx s O y for ay fxed ostats x > 0 ad y > 0. Lous D. Nel 007 COMP 40 Aalyss of Algorthms 0

11 Useful Log ad Expoetato Idettes log log b b b a / log a a b a b log a log a log log b a log a b b b b log a a a a b b a a b b / b b a log b log log b a b a log a /log b b b Lous D. Nel 007 COMP 40 Aalyss of Algorthms

12 Useful Summato Seres / / / 3 3 / 6 0 a a / a for a > log log log 0 log 0 a / a for 0 < a < 0 Useful Growth Futos: log! s O log ad Ω log Lous D. Nel 007 COMP 40 Aalyss of Algorthms

13 Bubble Sort Java t umbers[] { 43, 5, 67, 3,, 54, 89, 345, 45, 4, 67, 45, 457, 0; //Dsplay the put fort 0; <umbers.legth; System.out.prtumbers[] ", "; System.out.prtl""; //Bubble Sort fort 0; <umbers.legth-; fort j 0; j< umbers.legth--; j fumbers[j] > umbers[j]{ t temp umbers[j]; umbers[j] umbers[j]; umbers[j] temp; //Dsplay the result fort 0; <umbers.legth; System.out.prtumbers[] ", "; System.out.prtl""; 43, 5, 67, 3,, 54, 89, 345, 45, 4, 67, 45, 457, 0, 0, 3, 4, 5,, 43, 45, 45, 54, 67, 67, 89, 345, 457, Press ay ey to otue... Lous D. Nel 007 COMP 40 Aalyss of Algorthms 3

14 4 Aalyss of Algorthms COMP 40 Lous D. Nel 007 Bubble Sort Aalyss 0 0 j T / O s T So For >

15 Bg Oh of a Polyomal Futo Let 3 T a b d For teger values a,b,,d Clam: T s O 3 Proof: 3 T < a b d < a b d a b d 3 3 for > whh s, by defto O 3 Ths a be geeralzed to a polyomal of ay degree Lous D. Nel 007 COMP 40 Aalyss of Algorthms 5

16 publ lass Mystery { Mystery Method Java publ stat vod mysteryt[][][] a{ fort 0; <a.legth-; fort j ; j< a.legth; j fort 0; < j; { a[][j][] *j*; System.out.prtl "," j "," ": " a[][j][]; publ stat vod mastrg args[] { t umbers[][][]; t 0; // s problem sze. 0 s just a example umbers ew t[][][]; mysteryumbers; //ed ma Lous D. Nel 007 COMP 40 Aalyss of Algorthms 6

17 7 Aalyss of Algorthms COMP 40 Lous D. Nel 007 Aalyss of Mystery Java 0 0 j j C T //Based o des java ode 0 j j C T se 0 j j j C j j C T j j [ C T C T [ ] 6 3 [ 3 C T

18 Aalyss of Mystery Java T C [ ] C [ ] C 3 [ ] 3 3 C 3 [ C 3 [ 3 ] whh s 6 O 3 ] Lous D. Nel 007 COMP 40 Aalyss of Algorthms 8

19 Bary Searh Java prvate stat boolea searht[] array, t elemet, t start, t ed{ //searh for elemet sorted array a betwee start dex ad ed dex //bass ase: fstart > ed retur false; fstart ed retur array[start] elemet; //reursve ase t mdpot start ed/; farray[mdpot] elemet retur true; farray[mdpot] < elemet retur searharray, elemet, mdpot, ed; else retur searharray,elemet, start, mdpot-; publ stat boolea searht [] array, t elemet{ //searh for elemet the sorted array a retur searharray, elemet, 0, array.legth-; Lous D. Nel 007 COMP 40 Aalyss of Algorthms 9

20 Aalyss of Bary Searh T T T T 4 Fxed amout of wor plus ew problem half as bg T T T... T log log T log log 0 for > So T s Olog Lous D. Nel 007 COMP 40 Aalyss of Algorthms 0

21 Lear Reurso Java prvate stat t sumt[] array, t start, t ed{ //sum the elemets from start to ed //bass ase: fstart > ed retur 0; //reursve ase retur array[start] sumarray, start, ed; publ stat t sumt [] array{ //sum the elemets of array retur sumarray, 0, array.legth; Lous D. Nel 007 COMP 40 Aalyss of Algorthms

22 Aalyss of Lear Reurso T T T T Fxed amout of wor plus ew problem oe smaller T T 3 T... T 0 T 0 Bass ase s problem of sze 0 for > So T s O Lous D. Nel 007 COMP 40 Aalyss of Algorthms

23 Paldrome Test publ stat boolea spaldromestrg s { //aswer whether Strg s s a paldrome //.e. reads the same bawards ad forwards: "level", "v" //BASIS CASES f s.legth < retur true; //RECURSIVE STEP f s.harat0 s.harats.legth - { retur spaldromes.substrg, s.legth - ; else retur false; publ stat vod mastrg args[] { Strg s "v"; Strg s "toyota"; System.out.prtls " s paldrome: " spaldromes; System.out.prtls " s paldrome: " spaldromes; //ed ma Lous D. Nel 007 COMP 40 Aalyss of Algorthms 3

24 4 Aalyss of Algorthms COMP 40 Lous D. Nel 007 Aalyss of spaldrome T T T T 0, ; O s T So / / / T 4 4 T T / / / 4 4

25 A Better Paldrome Test prvate stat boolea spaldromestrg s, t start, t ed { //aswer whether Strg s s a paldrome //.e. read the same bawards ad forwards: "level", "v" //BASIS CASES f start > ed retur true; //RECURSIVE STEP f s.haratstart s.harated { retur spaldromes, start, ed-; else retur false; publ stat boolea spaldromestrg s{ retur spaldromes, 0, s.legth-; Lous D. Nel 007 COMP 40 Aalyss of Algorthms 5

26 Aalyss of a better spaldrome T T ; T, T 0 T 4 T 6 T / So T s O Exerse: Show ths geeralzes for ay stuato where a problem s made smaller by a fxed amout. That s, for ay ostat ad, the reurree relato T T s O Lous D. Nel 007 COMP 40 Aalyss of Algorthms 6

27 Solvg Two Half Problems prvate stat t sumt[] array, t start, t ed{ //sum the elemets from start to ed //bass ase: fstart ed retur array[start]; fstart > ed retur 0; //reursve ase t mdpot started/; retur sumarray, start, mdpot sumarray, mdpot, ed; publ stat t sumt [] array{ retur sumarray, 0, array.legth-; Lous D. Nel 007 COMP 40 Aalyss of Algorthms 7

28 Aalyss of Lear Reurso T T / ; T 0 T T T 4 T 8... T.... log T log 0 log log So T s O Exerse: Show ths geeralzes for ay stuato where you solve d problems of sze /d Lous D. Nel 007 COMP 40 Aalyss of Algorthms 8

29 Fboa Numbers Java Fb Fb Fb ; Fb0 Fb publ stat log fboat { //aswer the 'th fboa umber //BASIS CASES f<0{ System.out.prtl"ERROR:; System.ext-; f 0 retur ; f retur ; //RECURSIVE STEP retur fboa- fboa-; Lous D. Nel 007 COMP 40 Aalyss of Algorthms 9

30 Aalyss of Fboa T T T ; T 0 T T T 3 T T T 3 T 3 T 4 T 3 4 3T 3 T T 4 T 5 T 4 7 5T 4 3T 5 What s the patter?? Lous D. Nel 007 COMP 40 Aalyss of Algorthms 30

31 Alteratve Aalyss of Fboa T T T ; T 0 T T T T T 4 T T T 6 T T 3 / T 0 0 / T?? T C So s T s Ω ad O? Lous D. Nel 007 COMP 40 Aalyss of Algorthms 3

32 Faster Fboa publ lass LogDuple { //objet represetg a par of log s publ log value, value; publ LogDuplelog l, log l{ value l; value l; prvate stat LogDuple fastfboalog { //BASIS CASES f 0 retur ew LogDuple,0; f retur ew LogDuple,; f < - {System.out.prtl"ERROR "; System.ext0; //RECURSIVE STEP LogDuple prevous fastfboa-; retur ew LogDupleprevous.value prevous.value, prevous.value; publ stat log fboat { LogDuple result fastfboa; retur result.value; Lous D. Nel 007 COMP 40 Aalyss of Algorthms 3

33 Aalyss of Faster Fboa T T ; T, T 0 T... T T So T s O You deftely do ot wat to ome up wth a expoetal tme algorthm to solve a problem that a be solved lear tme!! Lous D. Nel 007 COMP 40 Aalyss of Algorthms 33

34 Dffult Problems Suppose your boss ass you to wrte a effet algorthm to solve the Travelg Salesma problem. Travelg Salesma Problem: INSTANCE: A fte set of tes, a postve teger dstae betwee eah par of tes. OBJECTIVE: Fd a tour of all the tes suh that the dstae travelled s mmum. More formally, Istae: C {,,..., dstaes d, j > 0, j... Objetve: fd a orderg:,,..., > that mmzes d, d < Lous D. Nel 007 COMP 40 Aalyss of Algorthms 34

35 Two dfferet deftos of effey What does effet mea? Pratal: A effet algorthm s oe that does ot use muh more tme ad memory tha s eessary. If your algorthm rug tme T s Of ad the problem s Ωf we a all the algorthm optmal. Theoretal: A effet algorthm s oe that a solve a problem of sze polyomal tme. T s Of for some polyomal f For example: 3 T a b That s, t does ot tae expoetal tme, or worse to solve the problem d Lous D. Nel 007 COMP 40 Aalyss of Algorthms 35

36 The Problems All Admt a Expoetal Tme Soluto You a solve the travelg salesma problem, or ay other problem you eouter ths ourse, expoetal, or worse, tme as follows. Geerate all possble ordergs of the tes. Add the dstaes for eah possble tour ad remember the best oe. Ths algorthm would be O! whh s worse tha expoetal tme ad so s ot theoretally effet. Suppose you aot ome up wth a better algorthm, what are you gog to tell your boss? Lous D. Nel 007 COMP 40 Aalyss of Algorthms 36

37 What to tell your boss? Opto I foud a effet algorthm Yeah! Opto Prove the problem s tratable o effet algorthm a exst. That s, the problem has a expoetal tme lower boud. Opto 3 Say to your boss: I guess I m just to dumb. Opto 4 Gve evdee that the problem mght be tratable. Show that f you ould solve ths problem effetly, you ould the solve other problems that people have thus far foud very dffult. Lous D. Nel 007 COMP 40 Aalyss of Algorthms 37

38 Travelg Salesma Problem To date obody has ome up wth a effet algorthm to solve the travelg salesma problem. To date obody has bee able to prove that the problem s tratable has a expoetal lower boud They have gve evdee that the problem mght be hard by mappg t to the famous hamltoa yle problem whh s osdered to be hard. Lous D. Nel 007 COMP 40 Aalyss of Algorthms 38

39 Hamltoa Cyle Problem Istae: Gve a Graph GV,E wth set of vertes V ad set of edges E. Questo: Do the edges of the graph allow a tour of the graph? NO YES Lous D. Nel 007 COMP 40 Aalyss of Algorthms 39

40 Hamltoa Cyle Problem Formal Istae: G V, E V { v, v,..., v, E { e, e Questo: Is there a orderg,..., e m < v v,..., v, > suh that v, v E, for... ad v, v E Lous D. Nel 007 COMP 40 Aalyss of Algorthms 40

41 Clam: TSP s at least has hard at HC Clam: Travelg salesma problem s at least as hard as the Hamlto Cyle Problem. Proof: We wll show that f you ould somehow solve the Travelg Salesma problem effetly, the you would also be able to solve the Hamlto Cyle Problem effetly Proof Idea: Buld a stae of the Travelg Salesma problem out of a Hamlto Cyle problem ad show that the aswer to the Travelg Salesma problem the provdes a aswer for the Hamlto Cyle problem But: we must show that the mappg s effet we get to use at most a polyomal amout to tme to do the mappg of the problem ad the aswer. Lous D. Nel 007 COMP 40 Aalyss of Algorthms 4

42 A Travelg Salesma Algm. ould solve Hamlto Cyle HC Istae: Is there a orderg suh that G V, E V { v, v,..., v, E { e, e < v v,..., v, >,..., e m v, v E, for... ad v, v E New TS Problem C { v, v,..., v d v, v f j v, v j E ad d v, v j f v, v j E Clam: If the mmum legth tour foud for the TS problem s <, the G has a Hamlto Cyle, othewse t does ot. Lous D. Nel 007 COMP 40 Aalyss of Algorthms 4

43 A Travelg Salesma Algm. ould solve Hamlto Cyle Justfato: The oly way for a tour to have a legth of s f t uses oly dstaes that orrespod to edges of the graph G. Otherwse the legth of the tour wll be greater tha. If G has o Hamltoa yle there a be o tour of legth. Importae: If you foud a effet algorthm to solve the Travelg Salesma problem, you ould use t to solve the Hamlto Cyle Problem. So the Travelg Salesma problem s at least as hard as the Hamlto Cyle Problem whh may beleve s hard. Lous D. Nel 007 COMP 40 Aalyss of Algorthms 43

Analyzing Control Structures

Analyzing Control Structures Aalyzg Cotrol Strutures sequeg P, P : two fragmets of a algo. t, t : the tme they tae the tme requred to ompute P ;P s t t Θmaxt,t For loops for to m do P t: the tme requred to ompute P total tme requred

More information

PTAS for Bin-Packing

PTAS for Bin-Packing CS 663: Patter Matchg Algorthms Scrbe: Che Jag /9/00. Itroducto PTAS for B-Packg The B-Packg problem s NP-hard. If we use approxmato algorthms, the B-Packg problem could be solved polyomal tme. For example,

More information

Design maintenanceand reliability of engineering systems: a probability based approach

Design maintenanceand reliability of engineering systems: a probability based approach Desg mateaead relablty of egeerg systems: a probablty based approah CHPTER 2. BSIC SET THEORY 2.1 Bas deftos Sets are the bass o whh moder probablty theory s defed. set s a well-defed olleto of objets.

More information

means the first term, a2 means the term, etc. Infinite Sequences: follow the same pattern forever.

means the first term, a2 means the term, etc. Infinite Sequences: follow the same pattern forever. 9.4 Sequeces ad Seres Pre Calculus 9.4 SEQUENCES AND SERIES Learg Targets:. Wrte the terms of a explctly defed sequece.. Wrte the terms of a recursvely defed sequece. 3. Determe whether a sequece s arthmetc,

More information

Spring Ammar Abu-Hudrouss Islamic University Gaza

Spring Ammar Abu-Hudrouss Islamic University Gaza ١ ١ Chapter Chapter 4 Cyl Blo Cyl Blo Codes Codes Ammar Abu-Hudrouss Islam Uversty Gaza Spr 9 Slde ٢ Chael Cod Theory Cyl Blo Codes A yl ode s haraterzed as a lear blo ode B( d wth the addtoal property

More information

Math 10 Discrete Mathematics

Math 10 Discrete Mathematics Math 0 Dsrete Mathemats T. Heso REVIEW EXERCISES FOR EXM II Whle these problems are represetatve of the types of problems that I mght put o a exam, they are ot lusve. You should be prepared to work ay

More information

(This summarizes what you basically need to know about joint distributions in this course.)

(This summarizes what you basically need to know about joint distributions in this course.) HG Ot. ECON 430 H Extra exerses for o-semar week 4 (Solutos wll be put o the et at the ed of the week) Itroduto: Revew of multdmesoal dstrbutos (Ths summarzes what you basally eed to kow about jot dstrbutos

More information

1 Onto functions and bijections Applications to Counting

1 Onto functions and bijections Applications to Counting 1 Oto fuctos ad bectos Applcatos to Coutg Now we move o to a ew topc. Defto 1.1 (Surecto. A fucto f : A B s sad to be surectve or oto f for each b B there s some a A so that f(a B. What are examples of

More information

Section 2:00 ~ 2:50 pm Thursday in Maryland 202 Sep. 29, 2005

Section 2:00 ~ 2:50 pm Thursday in Maryland 202 Sep. 29, 2005 Seto 2:00 ~ 2:50 pm Thursday Marylad 202 Sep. 29, 2005. Homework assgmets set ad 2 revews: Set : P. A box otas 3 marbles, red, gree, ad blue. Cosder a expermet that ossts of takg marble from the box, the

More information

MA/CSSE 473 Day 27. Dynamic programming

MA/CSSE 473 Day 27. Dynamic programming MA/CSSE 473 Day 7 Dyamc Programmg Bomal Coeffcets Warshall's algorthm (Optmal BSTs) Studet questos? Dyamc programmg Used for problems wth recursve solutos ad overlappg subproblems Typcally, we save (memoze)

More information

Chapter 1 Counting Methods

Chapter 1 Counting Methods AlbertLudwgs Uversty Freburg Isttute of Empral Researh ad Eoometrs Dr. Sevtap Kestel Mathematal Statsts - Wter 2008 Chapter Coutg Methods Am s to determe how may dfferet possbltes there are a gve stuato.

More information

Johns Hopkins University Department of Biostatistics Math Review for Introductory Courses

Johns Hopkins University Department of Biostatistics Math Review for Introductory Courses Johs Hopks Uverst Departmet of Bostatstcs Math Revew for Itroductor Courses Ratoale Bostatstcs courses wll rel o some fudametal mathematcal relatoshps, fuctos ad otato. The purpose of ths Math Revew s

More information

Discrete Mathematics and Probability Theory Fall 2016 Seshia and Walrand DIS 10b

Discrete Mathematics and Probability Theory Fall 2016 Seshia and Walrand DIS 10b CS 70 Dscrete Mathematcs ad Probablty Theory Fall 206 Sesha ad Walrad DIS 0b. Wll I Get My Package? Seaky delvery guy of some compay s out delverg packages to customers. Not oly does he had a radom package

More information

Johns Hopkins University Department of Biostatistics Math Review for Introductory Courses

Johns Hopkins University Department of Biostatistics Math Review for Introductory Courses Johs Hopks Uverst Departmet of Bostatstcs Math Revew for Itroductor Courses Ratoale Bostatstcs courses wll rel o some fudametal mathematcal relatoshps, fuctos ad otato. The purpose of ths Math Revew s

More information

Ruin Probability-Based Initial Capital of the Discrete-Time Surplus Process

Ruin Probability-Based Initial Capital of the Discrete-Time Surplus Process Ru Probablty-Based Ital Captal of the Dsrete-Tme Surplus Proess by Parote Sattayatham, Kat Sagaroo, ad Wathar Klogdee AbSTRACT Ths paper studes a surae model uder the regulato that the surae ompay has

More information

This lecture and the next. Why Sorting? Sorting Algorithms so far. Why Sorting? (2) Selection Sort. Heap Sort. Heapsort

This lecture and the next. Why Sorting? Sorting Algorithms so far. Why Sorting? (2) Selection Sort. Heap Sort. Heapsort Ths lecture ad the ext Heapsort Heap data structure ad prorty queue ADT Qucksort a popular algorthm, very fast o average Why Sortg? Whe doubt, sort oe of the prcples of algorthm desg. Sortg used as a subroute

More information

A Mean- maximum Deviation Portfolio Optimization Model

A Mean- maximum Deviation Portfolio Optimization Model A Mea- mamum Devato Portfolo Optmzato Model Wu Jwe Shool of Eoom ad Maagemet, South Cha Normal Uversty Guagzhou 56, Cha Tel: 86-8-99-6 E-mal: wujwe@9om Abstrat The essay maes a thorough ad systemat study

More information

Laboratory I.10 It All Adds Up

Laboratory I.10 It All Adds Up Laboratory I. It All Adds Up Goals The studet wll work wth Rema sums ad evaluate them usg Derve. The studet wll see applcatos of tegrals as accumulatos of chages. The studet wll revew curve fttg sklls.

More information

8.1 Hashing Algorithms

8.1 Hashing Algorithms CS787: Advaced Algorthms Scrbe: Mayak Maheshwar, Chrs Hrchs Lecturer: Shuch Chawla Topc: Hashg ad NP-Completeess Date: September 21 2007 Prevously we looked at applcatos of radomzed algorthms, ad bega

More information

All-Pairs shortest paths via fast matrix multiplication

All-Pairs shortest paths via fast matrix multiplication All-Pars shortest paths va fast matrx multplato Ur Zw Tel Avv Uversty Summer Shool o Shortest Paths (PATH0) DIKU, Uversty of Copehage 1. Algebra matrx multplato a. Strasse s algorthm b. Retagular matrx

More information

For combinatorial problems we might need to generate all permutations, combinations, or subsets of a set.

For combinatorial problems we might need to generate all permutations, combinations, or subsets of a set. Addtoal Decrease ad Coquer Algorthms For combatoral problems we mght eed to geerate all permutatos, combatos, or subsets of a set. Geeratg Permutatos If we have a set f elemets: { a 1, a 2, a 3, a } the

More information

CHAPTER 4 RADICAL EXPRESSIONS

CHAPTER 4 RADICAL EXPRESSIONS 6 CHAPTER RADICAL EXPRESSIONS. The th Root of a Real Number A real umber a s called the th root of a real umber b f Thus, for example: s a square root of sce. s also a square root of sce ( ). s a cube

More information

MONOPOLISTIC COMPETITION MODEL

MONOPOLISTIC COMPETITION MODEL MONOPOLISTIC COMPETITION MODEL Key gredets Cosumer utlty: log (/ ) log (taste for varety of dfferetated goods) Produto of dfferetated produts: y (/ b) max[ f, ] (reasg returs/fxed osts) Assume that good,

More information

Algorithms Theory, Solution for Assignment 2

Algorithms Theory, Solution for Assignment 2 Juor-Prof. Dr. Robert Elsässer, Marco Muñz, Phllp Hedegger WS 2009/200 Algorthms Theory, Soluto for Assgmet 2 http://lak.formatk.u-freburg.de/lak_teachg/ws09_0/algo090.php Exercse 2. - Fast Fourer Trasform

More information

Lecture 3. Sampling, sampling distributions, and parameter estimation

Lecture 3. Sampling, sampling distributions, and parameter estimation Lecture 3 Samplg, samplg dstrbutos, ad parameter estmato Samplg Defto Populato s defed as the collecto of all the possble observatos of terest. The collecto of observatos we take from the populato s called

More information

The Selection Problem - Variable Size Decrease/Conquer (Practice with algorithm analysis)

The Selection Problem - Variable Size Decrease/Conquer (Practice with algorithm analysis) We have covered: Selecto, Iserto, Mergesort, Bubblesort, Heapsort Next: Selecto the Qucksort The Selecto Problem - Varable Sze Decrease/Coquer (Practce wth algorthm aalyss) Cosder the problem of fdg the

More information

CIS 800/002 The Algorithmic Foundations of Data Privacy October 13, Lecture 9. Database Update Algorithms: Multiplicative Weights

CIS 800/002 The Algorithmic Foundations of Data Privacy October 13, Lecture 9. Database Update Algorithms: Multiplicative Weights CIS 800/002 The Algorthmc Foudatos of Data Prvacy October 13, 2011 Lecturer: Aaro Roth Lecture 9 Scrbe: Aaro Roth Database Update Algorthms: Multplcatve Weghts We ll recall aga) some deftos from last tme:

More information

Ideal multigrades with trigonometric coefficients

Ideal multigrades with trigonometric coefficients Ideal multgrades wth trgoometrc coeffcets Zarathustra Brady December 13, 010 1 The problem A (, k) multgrade s defed as a par of dstct sets of tegers such that (a 1,..., a ; b 1,..., b ) a j = =1 for all

More information

18.413: Error Correcting Codes Lab March 2, Lecture 8

18.413: Error Correcting Codes Lab March 2, Lecture 8 18.413: Error Correctg Codes Lab March 2, 2004 Lecturer: Dael A. Spelma Lecture 8 8.1 Vector Spaces A set C {0, 1} s a vector space f for x all C ad y C, x + y C, where we take addto to be compoet wse

More information

Lecture 07: Poles and Zeros

Lecture 07: Poles and Zeros Lecture 07: Poles ad Zeros Defto of poles ad zeros The trasfer fucto provdes a bass for determg mportat system respose characterstcs wthout solvg the complete dfferetal equato. As defed, the trasfer fucto

More information

{ }{ ( )} (, ) = ( ) ( ) ( ) Chapter 14 Exercises in Sampling Theory. Exercise 1 (Simple random sampling): Solution:

{ }{ ( )} (, ) = ( ) ( ) ( ) Chapter 14 Exercises in Sampling Theory. Exercise 1 (Simple random sampling): Solution: Chapter 4 Exercses Samplg Theory Exercse (Smple radom samplg: Let there be two correlated radom varables X ad A sample of sze s draw from a populato by smple radom samplg wthout replacemet The observed

More information

Econometric Methods. Review of Estimation

Econometric Methods. Review of Estimation Ecoometrc Methods Revew of Estmato Estmatg the populato mea Radom samplg Pot ad terval estmators Lear estmators Ubased estmators Lear Ubased Estmators (LUEs) Effcecy (mmum varace) ad Best Lear Ubased Estmators

More information

CS286.2 Lecture 4: Dinur s Proof of the PCP Theorem

CS286.2 Lecture 4: Dinur s Proof of the PCP Theorem CS86. Lecture 4: Dur s Proof of the PCP Theorem Scrbe: Thom Bohdaowcz Prevously, we have prove a weak verso of the PCP theorem: NP PCP 1,1/ (r = poly, q = O(1)). Wth ths result we have the desred costat

More information

A tighter lower bound on the circuit size of the hardest Boolean functions

A tighter lower bound on the circuit size of the hardest Boolean functions Electroc Colloquum o Computatoal Complexty, Report No. 86 2011) A tghter lower boud o the crcut sze of the hardest Boolea fuctos Masak Yamamoto Abstract I [IPL2005], Fradse ad Mlterse mproved bouds o the

More information

STA302/1001-Fall 2008 Midterm Test October 21, 2008

STA302/1001-Fall 2008 Midterm Test October 21, 2008 STA3/-Fall 8 Mdterm Test October, 8 Last Name: Frst Name: Studet Number: Erolled (Crcle oe) STA3 STA INSTRUCTIONS Tme allowed: hour 45 mutes Ads allowed: A o-programmable calculator A table of values from

More information

EECE 301 Signals & Systems

EECE 301 Signals & Systems EECE 01 Sgals & Systems Prof. Mark Fowler Note Set #9 Computg D-T Covoluto Readg Assgmet: Secto. of Kame ad Heck 1/ Course Flow Dagram The arrows here show coceptual flow betwee deas. Note the parallel

More information

Investigation of Partially Conditional RP Model with Response Error. Ed Stanek

Investigation of Partially Conditional RP Model with Response Error. Ed Stanek Partally Codtoal Radom Permutato Model 7- vestgato of Partally Codtoal RP Model wth Respose Error TRODUCTO Ed Staek We explore the predctor that wll result a smple radom sample wth respose error whe a

More information

Chapter 9 Jordan Block Matrices

Chapter 9 Jordan Block Matrices Chapter 9 Jorda Block atrces I ths chapter we wll solve the followg problem. Gve a lear operator T fd a bass R of F such that the matrx R (T) s as smple as possble. f course smple s a matter of taste.

More information

Mathematical Statistics

Mathematical Statistics Mathematal Statsts 2 1 Chapter II Probablty 21 Bas Coepts The dsple of statsts deals wth the olleto ad aalyss of data Whe measuremets are tae, eve seemgly uder the same odtos, the results usually vary

More information

Mean is only appropriate for interval or ratio scales, not ordinal or nominal.

Mean is only appropriate for interval or ratio scales, not ordinal or nominal. Mea Same as ordary average Sum all the data values ad dvde by the sample sze. x = ( x + x +... + x Usg summato otato, we wrte ths as x = x = x = = ) x Mea s oly approprate for terval or rato scales, ot

More information

Feature Selection: Part 2. 1 Greedy Algorithms (continued from the last lecture)

Feature Selection: Part 2. 1 Greedy Algorithms (continued from the last lecture) CSE 546: Mache Learg Lecture 6 Feature Selecto: Part 2 Istructor: Sham Kakade Greedy Algorthms (cotued from the last lecture) There are varety of greedy algorthms ad umerous amg covetos for these algorthms.

More information

STATISTICS 13. Lecture 5 Apr 7, 2010

STATISTICS 13. Lecture 5 Apr 7, 2010 STATISTICS 13 Leture 5 Apr 7, 010 Revew Shape of the data -Bell shaped -Skewed -Bmodal Measures of eter Arthmet Mea Meda Mode Effets of outlers ad skewess Measures of Varablt A quattatve measure that desrbes

More information

Lecture 9: Tolerant Testing

Lecture 9: Tolerant Testing Lecture 9: Tolerat Testg Dael Kae Scrbe: Sakeerth Rao Aprl 4, 07 Abstract I ths lecture we prove a quas lear lower boud o the umber of samples eeded to do tolerat testg for L dstace. Tolerat Testg We have

More information

MA 524 Homework 6 Solutions

MA 524 Homework 6 Solutions MA 524 Homework 6 Solutos. Sce S(, s the umber of ways to partto [] to k oempty blocks, ad c(, s the umber of ways to partto to k oempty blocks ad also the arrage each block to a cycle, we must have S(,

More information

UNIT 2 SOLUTION OF ALGEBRAIC AND TRANSCENDENTAL EQUATIONS

UNIT 2 SOLUTION OF ALGEBRAIC AND TRANSCENDENTAL EQUATIONS Numercal Computg -I UNIT SOLUTION OF ALGEBRAIC AND TRANSCENDENTAL EQUATIONS Structure Page Nos..0 Itroducto 6. Objectves 7. Ital Approxmato to a Root 7. Bsecto Method 8.. Error Aalyss 9.4 Regula Fals Method

More information

Non-uniform Turán-type problems

Non-uniform Turán-type problems Joural of Combatoral Theory, Seres A 111 2005 106 110 wwwelsevercomlocatecta No-uform Turá-type problems DhruvMubay 1, Y Zhao 2 Departmet of Mathematcs, Statstcs, ad Computer Scece, Uversty of Illos at

More information

1 Solution to Problem 6.40

1 Solution to Problem 6.40 1 Soluto to Problem 6.40 (a We wll wrte T τ (X 1,...,X where the X s are..d. wth PDF f(x µ, σ 1 ( x µ σ g, σ where the locato parameter µ s ay real umber ad the scale parameter σ s > 0. Lettg Z X µ σ we

More information

Special Instructions / Useful Data

Special Instructions / Useful Data JAM 6 Set of all real umbers P A..d. B, p Posso Specal Istructos / Useful Data x,, :,,, x x Probablty of a evet A Idepedetly ad detcally dstrbuted Bomal dstrbuto wth parameters ad p Posso dstrbuto wth

More information

22 Nonparametric Methods.

22 Nonparametric Methods. 22 oparametrc Methods. I parametrc models oe assumes apror that the dstrbutos have a specfc form wth oe or more ukow parameters ad oe tres to fd the best or atleast reasoably effcet procedures that aswer

More information

QR Factorization and Singular Value Decomposition COS 323

QR Factorization and Singular Value Decomposition COS 323 QR Factorzato ad Sgular Value Decomposto COS 33 Why Yet Aother Method? How do we solve least-squares wthout currg codto-squarg effect of ormal equatos (A T A A T b) whe A s sgular, fat, or otherwse poorly-specfed?

More information

CHAPTER VI Statistical Analysis of Experimental Data

CHAPTER VI Statistical Analysis of Experimental Data Chapter VI Statstcal Aalyss of Expermetal Data CHAPTER VI Statstcal Aalyss of Expermetal Data Measuremets do ot lead to a uque value. Ths s a result of the multtude of errors (maly radom errors) that ca

More information

f f... f 1 n n (ii) Median : It is the value of the middle-most observation(s).

f f... f 1 n n (ii) Median : It is the value of the middle-most observation(s). CHAPTER STATISTICS Pots to Remember :. Facts or fgures, collected wth a defte pupose, are called Data.. Statstcs s the area of study dealg wth the collecto, presetato, aalyss ad terpretato of data.. The

More information

Computational Geometry

Computational Geometry Problem efto omputatoal eometry hapter 6 Pot Locato Preprocess a plaar map S. ve a query pot p, report the face of S cotag p. oal: O()-sze data structure that eables O(log ) query tme. pplcato: Whch state

More information

Homework 1: Solutions Sid Banerjee Problem 1: (Practice with Asymptotic Notation) ORIE 4520: Stochastics at Scale Fall 2015

Homework 1: Solutions Sid Banerjee Problem 1: (Practice with Asymptotic Notation) ORIE 4520: Stochastics at Scale Fall 2015 Fall 05 Homework : Solutos Problem : (Practce wth Asymptotc Notato) A essetal requremet for uderstadg scalg behavor s comfort wth asymptotc (or bg-o ) otato. I ths problem, you wll prove some basc facts

More information

Chapter 4 Multiple Random Variables

Chapter 4 Multiple Random Variables Revew for the prevous lecture: Theorems ad Examples: How to obta the pmf (pdf) of U = g (, Y) ad V = g (, Y) Chapter 4 Multple Radom Varables Chapter 44 Herarchcal Models ad Mxture Dstrbutos Examples:

More information

Unsupervised Learning and Other Neural Networks

Unsupervised Learning and Other Neural Networks CSE 53 Soft Computg NOT PART OF THE FINAL Usupervsed Learg ad Other Neural Networs Itroducto Mture Destes ad Idetfablty ML Estmates Applcato to Normal Mtures Other Neural Networs Itroducto Prevously, all

More information

Generalized Linear Regression with Regularization

Generalized Linear Regression with Regularization Geeralze Lear Regresso wth Regularzato Zoya Bylsk March 3, 05 BASIC REGRESSION PROBLEM Note: I the followg otes I wll make explct what s a vector a what s a scalar usg vec t or otato, to avo cofuso betwee

More information

hp calculators HP 30S Statistics Averages and Standard Deviations Average and Standard Deviation Practice Finding Averages and Standard Deviations

hp calculators HP 30S Statistics Averages and Standard Deviations Average and Standard Deviation Practice Finding Averages and Standard Deviations HP 30S Statstcs Averages ad Stadard Devatos Average ad Stadard Devato Practce Fdg Averages ad Stadard Devatos HP 30S Statstcs Averages ad Stadard Devatos Average ad stadard devato The HP 30S provdes several

More information

Exercises for Square-Congruence Modulo n ver 11

Exercises for Square-Congruence Modulo n ver 11 Exercses for Square-Cogruece Modulo ver Let ad ab,.. Mark True or False. a. 3S 30 b. 3S 90 c. 3S 3 d. 3S 4 e. 4S f. 5S g. 0S 55 h. 8S 57. 9S 58 j. S 76 k. 6S 304 l. 47S 5347. Fd the equvalece classes duced

More information

(b) By independence, the probability that the string 1011 is received correctly is

(b) By independence, the probability that the string 1011 is received correctly is Soluto to Problem 1.31. (a) Let A be the evet that a 0 s trasmtted. Usg the total probablty theorem, the desred probablty s P(A)(1 ɛ ( 0)+ 1 P(A) ) (1 ɛ 1)=p(1 ɛ 0)+(1 p)(1 ɛ 1). (b) By depedece, the probablty

More information

10.1 Approximation Algorithms

10.1 Approximation Algorithms 290 0. Approxmato Algorthms Let us exame a problem, where we are gve A groud set U wth m elemets A collecto of subsets of the groud set = {,, } s.t. t s a cover of U: = U The am s to fd a subcover, = U,

More information

k 1 in the worst case, and ( k 1) / 2 in the average case The O-notation was apparently The o-notation was apparently

k 1 in the worst case, and ( k 1) / 2 in the average case The O-notation was apparently The o-notation was apparently Errata for Algorthms Sequetal & Parallel, A Ufed Approach (Secod Edto) Russ Mller ad Laurece Boxer Charles Rver Meda, 005 Chapter 1 P. 3, l. 14- to 13- the worst case, ad / the average case 1 the worst

More information

α1 α2 Simplex and Rectangle Elements Multi-index Notation of polynomials of degree Definition: The set P k will be the set of all functions:

α1 α2 Simplex and Rectangle Elements Multi-index Notation of polynomials of degree Definition: The set P k will be the set of all functions: Smplex ad Rectagle Elemets Mult-dex Notato = (,..., ), o-egatve tegers = = β = ( β,..., β ) the + β = ( + β,..., + β ) + x = x x x x = x x β β + D = D = D D x x x β β Defto: The set P of polyomals of degree

More information

Multiple Choice Test. Chapter Adequacy of Models for Regression

Multiple Choice Test. Chapter Adequacy of Models for Regression Multple Choce Test Chapter 06.0 Adequac of Models for Regresso. For a lear regresso model to be cosdered adequate, the percetage of scaled resduals that eed to be the rage [-,] s greater tha or equal to

More information

Assignment 5/MATH 247/Winter Due: Friday, February 19 in class (!) (answers will be posted right after class)

Assignment 5/MATH 247/Winter Due: Friday, February 19 in class (!) (answers will be posted right after class) Assgmet 5/MATH 7/Wter 00 Due: Frday, February 9 class (!) (aswers wll be posted rght after class) As usual, there are peces of text, before the questos [], [], themselves. Recall: For the quadratc form

More information

Pseudo-random Functions

Pseudo-random Functions Pseudo-radom Fuctos Debdeep Mukhopadhyay IIT Kharagpur We have see the costructo of PRG (pseudo-radom geerators) beg costructed from ay oe-way fuctos. Now we shall cosder a related cocept: Pseudo-radom

More information

Part 4b Asymptotic Results for MRR2 using PRESS. Recall that the PRESS statistic is a special type of cross validation procedure (see Allen (1971))

Part 4b Asymptotic Results for MRR2 using PRESS. Recall that the PRESS statistic is a special type of cross validation procedure (see Allen (1971)) art 4b Asymptotc Results for MRR usg RESS Recall that the RESS statstc s a specal type of cross valdato procedure (see Alle (97)) partcular to the regresso problem ad volves fdg Y $,, the estmate at the

More information

Chapter 5 Properties of a Random Sample

Chapter 5 Properties of a Random Sample Lecture 6 o BST 63: Statstcal Theory I Ku Zhag, /0/008 Revew for the prevous lecture Cocepts: t-dstrbuto, F-dstrbuto Theorems: Dstrbutos of sample mea ad sample varace, relatoshp betwee sample mea ad sample

More information

Assignment 7/MATH 247/Winter, 2010 Due: Friday, March 19. Powers of a square matrix

Assignment 7/MATH 247/Winter, 2010 Due: Friday, March 19. Powers of a square matrix Assgmet 7/MATH 47/Wter, 00 Due: Frday, March 9 Powers o a square matrx Gve a square matrx A, ts powers A or large, or eve arbtrary, teger expoets ca be calculated by dagoalzg A -- that s possble (!) Namely,

More information

Lecture Notes Types of economic variables

Lecture Notes Types of economic variables Lecture Notes 3 1. Types of ecoomc varables () Cotuous varable takes o a cotuum the sample space, such as all pots o a le or all real umbers Example: GDP, Polluto cocetrato, etc. () Dscrete varables fte

More information

Graphs and graph models-graph terminology and special types of graphs-representing graphs and graph isomorphism -connectivity-euler and Hamilton

Graphs and graph models-graph terminology and special types of graphs-representing graphs and graph isomorphism -connectivity-euler and Hamilton Prepare by Dr. A.R.VIJAYALAKSHMI Graphs a graph moels-graph termology a specal types of graphs-represetg graphs a graph somorphsm -coectty-euler a Hamlto paths Graph Graph: A graph G = (V, E) cossts of

More information

Descriptive Statistics

Descriptive Statistics Page Techcal Math II Descrptve Statstcs Descrptve Statstcs Descrptve statstcs s the body of methods used to represet ad summarze sets of data. A descrpto of how a set of measuremets (for eample, people

More information

Department of Agricultural Economics. PhD Qualifier Examination. August 2011

Department of Agricultural Economics. PhD Qualifier Examination. August 2011 Departmet of Agrcultural Ecoomcs PhD Qualfer Examato August 0 Istructos: The exam cossts of sx questos You must aswer all questos If you eed a assumpto to complete a questo, state the assumpto clearly

More information

Hard Core Predicates: How to encrypt? Recap

Hard Core Predicates: How to encrypt? Recap Hard Core Predcates: How to ecrypt? Debdeep Mukhopadhyay IIT Kharagpur Recap A ecrypto scheme s secured f for every probablstc adversary A carryg out some specfed kd of attack ad for every polyomal p(.),

More information

NP!= P. By Liu Ran. Table of Contents. The P versus NP problem is a major unsolved problem in computer

NP!= P. By Liu Ran. Table of Contents. The P versus NP problem is a major unsolved problem in computer NP!= P By Lu Ra Table of Cotets. Itroduce 2. Prelmary theorem 3. Proof 4. Expla 5. Cocluso. Itroduce The P versus NP problem s a major usolved problem computer scece. Iformally, t asks whether a computer

More information

Lecture 7. Confidence Intervals and Hypothesis Tests in the Simple CLR Model

Lecture 7. Confidence Intervals and Hypothesis Tests in the Simple CLR Model Lecture 7. Cofdece Itervals ad Hypothess Tests the Smple CLR Model I lecture 6 we troduced the Classcal Lear Regresso (CLR) model that s the radom expermet of whch the data Y,,, K, are the outcomes. The

More information

1 0, x? x x. 1 Root finding. 1.1 Introduction. Solve[x^2-1 0,x] {{x -1},{x 1}} Plot[x^2-1,{x,-2,2}] 3

1 0, x? x x. 1 Root finding. 1.1 Introduction. Solve[x^2-1 0,x] {{x -1},{x 1}} Plot[x^2-1,{x,-2,2}] 3 Adrew Powuk - http://www.powuk.com- Math 49 (Numercal Aalyss) Root fdg. Itroducto f ( ),?,? Solve[^-,] {{-},{}} Plot[^-,{,-,}] Cubc equato https://e.wkpeda.org/wk/cubc_fucto Quartc equato https://e.wkpeda.org/wk/quartc_fucto

More information

THE ROYAL STATISTICAL SOCIETY 2016 EXAMINATIONS SOLUTIONS HIGHER CERTIFICATE MODULE 5

THE ROYAL STATISTICAL SOCIETY 2016 EXAMINATIONS SOLUTIONS HIGHER CERTIFICATE MODULE 5 THE ROYAL STATISTICAL SOCIETY 06 EAMINATIONS SOLUTIONS HIGHER CERTIFICATE MODULE 5 The Socety s provdg these solutos to assst cadtes preparg for the examatos 07. The solutos are teded as learg ads ad should

More information

NP!= P. By Liu Ran. Table of Contents. The P vs. NP problem is a major unsolved problem in computer

NP!= P. By Liu Ran. Table of Contents. The P vs. NP problem is a major unsolved problem in computer NP!= P By Lu Ra Table of Cotets. Itroduce 2. Strategy 3. Prelmary theorem 4. Proof 5. Expla 6. Cocluso. Itroduce The P vs. NP problem s a major usolved problem computer scece. Iformally, t asks whether

More information

2006 Jamie Trahan, Autar Kaw, Kevin Martin University of South Florida United States of America

2006 Jamie Trahan, Autar Kaw, Kevin Martin University of South Florida United States of America SOLUTION OF SYSTEMS OF SIMULTANEOUS LINEAR EQUATIONS Gauss-Sedel Method 006 Jame Traha, Autar Kaw, Kev Mart Uversty of South Florda Uted States of Amerca kaw@eg.usf.edu Itroducto Ths worksheet demostrates

More information

Multivariate Transformation of Variables and Maximum Likelihood Estimation

Multivariate Transformation of Variables and Maximum Likelihood Estimation Marquette Uversty Multvarate Trasformato of Varables ad Maxmum Lkelhood Estmato Dael B. Rowe, Ph.D. Assocate Professor Departmet of Mathematcs, Statstcs, ad Computer Scece Copyrght 03 by Marquette Uversty

More information

Lattices. Mathematical background

Lattices. Mathematical background Lattces Mathematcal backgroud Lattces : -dmesoal Eucldea space. That s, { T x } x x = (,, ) :,. T T If x= ( x,, x), y = ( y,, y), the xy, = xy (er product of xad y) x = /2 xx, (Eucldea legth or orm of

More information

Parameter, Statistic and Random Samples

Parameter, Statistic and Random Samples Parameter, Statstc ad Radom Samples A parameter s a umber that descrbes the populato. It s a fxed umber, but practce we do ot kow ts value. A statstc s a fucto of the sample data,.e., t s a quatty whose

More information

Third handout: On the Gini Index

Third handout: On the Gini Index Thrd hadout: O the dex Corrado, a tala statstca, proposed (, 9, 96) to measure absolute equalt va the mea dfferece whch s defed as ( / ) where refers to the total umber of dvduals socet. Assume that. The

More information

COMP26120: Introducing Complexity Analysis (2018/19) Lucas Cordeiro

COMP26120: Introducing Complexity Analysis (2018/19) Lucas Cordeiro COMP60: Itroduig Complexity Aalysis (08/9) Luas Cordeiro luas.ordeiro@mahester.a.uk Itroduig Complexity Aalysis Textbook: Algorithm Desig ad Appliatios, Goodrih, Mihael T. ad Roberto Tamassia (hapter )

More information

EVALUATION OF FUNCTIONAL INTEGRALS BY MEANS OF A SERIES AND THE METHOD OF BOREL TRANSFORM

EVALUATION OF FUNCTIONAL INTEGRALS BY MEANS OF A SERIES AND THE METHOD OF BOREL TRANSFORM EVALUATION OF FUNCTIONAL INTEGRALS BY MEANS OF A SERIES AND THE METHOD OF BOREL TRANSFORM Jose Javer Garca Moreta Ph. D research studet at the UPV/EHU (Uversty of Basque coutry) Departmet of Theoretcal

More information

CHAPTER 3 POSTERIOR DISTRIBUTIONS

CHAPTER 3 POSTERIOR DISTRIBUTIONS CHAPTER 3 POSTERIOR DISTRIBUTIONS If scece caot measure the degree of probablt volved, so much the worse for scece. The practcal ma wll stck to hs apprecatve methods utl t does, or wll accept the results

More information

Statistics MINITAB - Lab 5

Statistics MINITAB - Lab 5 Statstcs 10010 MINITAB - Lab 5 PART I: The Correlato Coeffcet Qute ofte statstcs we are preseted wth data that suggests that a lear relatoshp exsts betwee two varables. For example the plot below s of

More information

CS 270 Algorithms. Oliver Kullmann. Growth of Functions. Divide-and- Conquer Min-Max- Problem. Tutorial. Reading from CLRS for week 2

CS 270 Algorithms. Oliver Kullmann. Growth of Functions. Divide-and- Conquer Min-Max- Problem. Tutorial. Reading from CLRS for week 2 Geeral remarks Week 2 1 Divide ad First we cosider a importat tool for the aalysis of algorithms: Big-Oh. The we itroduce a importat algorithmic paradigm:. We coclude by presetig ad aalysig two examples.

More information

ENGI 4421 Joint Probability Distributions Page Joint Probability Distributions [Navidi sections 2.5 and 2.6; Devore sections

ENGI 4421 Joint Probability Distributions Page Joint Probability Distributions [Navidi sections 2.5 and 2.6; Devore sections ENGI 441 Jot Probablty Dstrbutos Page 7-01 Jot Probablty Dstrbutos [Navd sectos.5 ad.6; Devore sectos 5.1-5.] The jot probablty mass fucto of two dscrete radom quattes, s, P ad p x y x y The margal probablty

More information

Review Exam II Complex Analysis

Review Exam II Complex Analysis Revew Exam II Complex Aalyss Uderled Propostos or Theorems: Proofs May Be Asked for o Exam Chapter 3. Ifte Seres Defto: Covergece Defto: Absolute Covergece Proposto. Absolute Covergece mples Covergece

More information

Statistics Descriptive and Inferential Statistics. Instructor: Daisuke Nagakura

Statistics Descriptive and Inferential Statistics. Instructor: Daisuke Nagakura Statstcs Descrptve ad Iferetal Statstcs Istructor: Dasuke Nagakura (agakura@z7.keo.jp) 1 Today s topc Today, I talk about two categores of statstcal aalyses, descrptve statstcs ad feretal statstcs, ad

More information

Mu Sequences/Series Solutions National Convention 2014

Mu Sequences/Series Solutions National Convention 2014 Mu Sequeces/Seres Solutos Natoal Coveto 04 C 6 E A 6C A 6 B B 7 A D 7 D C 7 A B 8 A B 8 A C 8 E 4 B 9 B 4 E 9 B 4 C 9 E C 0 A A 0 D B 0 C C Usg basc propertes of arthmetc sequeces, we fd a ad bm m We eed

More information

( ) 2 2. Multi-Layer Refraction Problem Rafael Espericueta, Bakersfield College, November, 2006

( ) 2 2. Multi-Layer Refraction Problem Rafael Espericueta, Bakersfield College, November, 2006 Mult-Layer Refracto Problem Rafael Espercueta, Bakersfeld College, November, 006 Lght travels at dfferet speeds through dfferet meda, but refracts at layer boudares order to traverse the least-tme path.

More information

2.28 The Wall Street Journal is probably referring to the average number of cubes used per glass measured for some population that they have chosen.

2.28 The Wall Street Journal is probably referring to the average number of cubes used per glass measured for some population that they have chosen. .5 x 54.5 a. x 7. 786 7 b. The raked observatos are: 7.4, 7.5, 7.7, 7.8, 7.9, 8.0, 8.. Sce the sample sze 7 s odd, the meda s the (+)/ 4 th raked observato, or meda 7.8 c. The cosumer would more lkely

More information

Investigating Cellular Automata

Investigating Cellular Automata Researcher: Taylor Dupuy Advsor: Aaro Wootto Semester: Fall 4 Ivestgatg Cellular Automata A Overvew of Cellular Automata: Cellular Automata are smple computer programs that geerate rows of black ad whte

More information

MATH 247/Winter Notes on the adjoint and on normal operators.

MATH 247/Winter Notes on the adjoint and on normal operators. MATH 47/Wter 00 Notes o the adjot ad o ormal operators I these otes, V s a fte dmesoal er product space over, wth gve er * product uv, T, S, T, are lear operators o V U, W are subspaces of V Whe we say

More information

EP2200 Queueing theory and teletraffic systems. Queueing networks. Viktoria Fodor KTH EES/LCN KTH EES/LCN

EP2200 Queueing theory and teletraffic systems. Queueing networks. Viktoria Fodor KTH EES/LCN KTH EES/LCN EP2200 Queueg theory ad teletraffc systems Queueg etworks Vktora Fodor Ope ad closed queug etworks Queug etwork: etwork of queug systems E.g. data packets traversg the etwork from router to router Ope

More information

The Mathematical Appendix

The Mathematical Appendix The Mathematcal Appedx Defto A: If ( Λ, Ω, where ( λ λ λ whch the probablty dstrbutos,,..., Defto A. uppose that ( Λ,,..., s a expermet type, the σ-algebra o λ λ λ are defed s deoted by ( (,,...,, σ Ω.

More information

3. RECURSIVE ALGORITHMS AND RECURRENCE RELATIONS

3. RECURSIVE ALGORITHMS AND RECURRENCE RELATIONS . RECURSIVE ALGORITHMS AND RECURRENCE RELATIONS I dscussg the example of fdg the determat of a matrx a algorthm was outled that defed det(m) for a x matrx terms of the determats of matrces of sze (-)x(-).

More information