Self-Adaptive Admission Control Policies for Resource-Sharing Systems

Size: px
Start display at page:

Download "Self-Adaptive Admission Control Policies for Resource-Sharing Systems"

Transcription

1 Self-Adaptve Admsson Control Polces for Resource-Sharng Systems Varun Gupta Carnege Mellon Unversty Mor Harchol-Balter Carnege Mellon Unversty ABSTRACT We consder the problem of admsson control n resource sharng systems, such as web servers and transacton processng systems, when the job sze dstrbuton has hgh varablty, wth the am of mnmzng the mean response tme. It s well known that n such resource sharng systems, as the number of tasks concurrently sharng the resource s ncreased, the server throughput ntally ncreases, due to more effcent utlzaton of resources, but starts fallng beyond a certan pont, due to resource contenton and thrashng. Most admsson control mechansms solve ths problem by mposng a fxed upper bound on the number of concurrent transactons allowed nto the system, called the Mult- Programmng-Lmt (MPL), and makng the arrvals whch fnd the server full queue up. Almost always, the MPL s chosen to be the pont that maxmzes server effcency. In ths paper we abstract such resource sharng systems as a Processor Sharng (PS) server wth state-dependent servce rate and a Frst-Come-Frst-Served (FCFS) queue, and we analyze the performance of ths model from a queueng theoretc perspectve. We start by showng that, counter to the common wsdom, the peak effcency pont s not always optmal for mnmzng the mean response tme. Instead, sgnfcant performance gans can be obtaned by runnng the system at less than the peak effcency. We provde a smple expresson for the statc MPL that acheves nearoptmal mean response tme for general dstrbutons. Next we present two traffc-oblvous dynamc admsson control polces that adjust the MPL based on the nstantaneous queue length whle also takng nto account the varablty of the job sze dstrbuton. The structure of our admsson control polces s a mxture of flud control when the number of jobs n the system s hgh, wth a stochastc component when the system s near-empty. We show va smulatons that our dynamc polces are much more robust to unknown traffc ntenstes and burstness n the arrval process than mposng a statc MPL. Research supported by NSF SMA/PDOS Grant CCR-066 and a 009 IBM Faculty Award. Permsson to make dgtal or hard copes of all or part of ths work for personal or classroom use s granted wthout fee provded that copes are not made or dstrbuted for proft or commercal advantage and that copes bear ths notce and the full ctaton on the frst page. To copy otherwse, to republsh, to post on servers or to redstrbute to lsts, requres pror specfc permsson and/or a fee. SIGMETRICS/Performance 09, June 9, 009, Seattle, WA, USA. Copyrght 009 ACM /09/06...$.00. Categores and Subject Descrptors D.4.8 [Operatng Systems]: Performance modelng and predcton, queueng theory; G..6 [Numercal Analyss]: Optmzaton stochastc programmng General Terms Performance. INTRODUCTION The noton of tme-sharng has been around snce the earlest days of operatng systems, as descrbed n the frst paper on Unx [3]. Tme-sharng has several benefts. Frst, gven that jobs often need dfferent resources (CPU, I/O) at dfferent tmes, tme-sharng allows for ncreased throughput, typcally allowng two jobs to complete n the same tme as one, snce they aren t lkely to need the same resources at the same tme. Another major beneft of tme-sharng s that t allows small jobs to get out quckly; the small jobs are not stuck queueng behnd bg jobs as they would be n a frst-come-frst-served (FCFS) system, and therefore they don t have to suffer the delays of watng for bg jobs to complete. However, as many researchers have observed, tme-sharng s most effectve when there s a fxed Mult-Programmng- Lmt (MPL) mposed, so that not too many jobs can tmeshare at once. Allowng too many jobs to tme-share can lead to thrashng (due to the context-swtchng overhead), and reduced overall performance. Ths pont has been observed tme and tme agan startng wth operatng systems papers n the 970 s [8] and 980 s [, ], and contnung to more recent Web server desgn papers [9, 3], and database mplementaton papers [4, ]. Specfcally, a system has a servce rate curve whch shows that the speed of the system ncreases when the number of jobs n the system ncreases from to, and ncreases agan as the number ncreases from to 3, but the system speed starts to drop as the number of jobs n the system ncreases beyond some pont. Fgure shows a typcal servce rate curve (see, e.g. [6, Fgure ]). Model To model a tme-sharng system, we start wth a G/G//PS queue where PS denotes processor sharng, meanng that f there are n jobs n the system, they each receve th of n the system s processng capacty. We wll assume that the job szes (or servce requrements) are ndependently and dentcally drawn from a general dstrbuton, and we wll

2 Server speed µ(n) Number of jobs at the server (n) Fgure : A prototypcal servce rate curve. The peak effcency pont for the curve shown s K =. use X to denote such a generc random varable. We wll use C to denote the squared coeffcent of varaton (SCV) of X: C = var(x) E[X] and throughout assume that E[X] = wthout loss of generalty. In order to capture the fact that the speed of the system depends on the number of jobs at the server, we assume that our G/G//P S server has state-dependent servce rates µ(n). That s, when the number of jobs at the server s n, the speed of the server s µ(n), where µ(n) s chosen to match the system s servce rate curve (Fgure ). As an example, a job of sze x seconds whch s sharng the server wth n jobs (ncludng tself) for ts entre duraton x µ(n) would requre n tme to complete. We assume that the µ(n) curve s unmodal, that s, ntally t s non-decreasng and then after some pont the curve swtches to beng nonncreasng. We defne K to be the smallest MPL whch acheves the maxmum speed, and K to be the largest MPL whch acheves the maxmum speed. For the µ(n) curve n Fgure, K = 4 and K =. To complete our model, we now add an MPL parameter whch lmts the number of jobs that are allowed to concurrently share the server to some number MPL=K, and forces all remanng jobs to wat n a Frst-Come-Frst- Served (FCFS) buffer. We assume that the job szes of the jobs n the system are not known, and sze-based prortzaton s not possble. We denote our model by the notaton G/G/PS-MPL. Fgure depcts a G/G/PS-MPL system wth MPL=4. When we addtonally assume the arrval process to be Posson, we wll denote the system by M/G/PS-MPL. Throughout, we assume load-dependent servce rates µ(n). So, for example, f there are n = 0 jobs n the G/G/PS-4 system, the server speed wll be µ(4), snce only 4 jobs tme-share the server, whle f there are n<4 jobs n the system, the speed wll be µ(n). Thus the response tme for a job of sze x wll be ts queueng tme plus ts x servce tme, where the servce tme wll typcally be 4, µ(4) assumng that there are at least 4 jobs n the system durng the job s tme n system. The nterestng queston for the G/G/PS-MPL model s, of course: What s the optmal MPL, so as to mnmze mean response tme? Obvously, the servce rate curve plays a large role n the answer. In fact, computer systems papers would have us FCFS MPL = 4 Fgure : A G/G/PS-MPL queue wth MP L = 4. Only 4 jobs can smultaneously share the server. The rest must wat outsde n FCFS order. beleve that the servce rate curve provdes the entre answer to ths queston: Smply choose that MPL that maxmzes effcency, e.g., [,, 9]. For the curve shown n Fgure, ths would mean choosng the MPL to be K = 4 or K =. In ths paper, we wll show that ths obvous answer can be far from correct, when job sze varablty s hgh. We wll also ask and answer the even harder queston of how to dynamcally vary the MPL when the arrval rate s not known and as load condtons change. When the job sze dstrbuton s Exponental, the answer s straghtforward: We always want to operate at the peak effcency pont, regardless of the arrval process. The queston of choosng an optmal MPL becomes nterestng when the job sze dstrbuton exhbts hgh varablty, snce wth hgh varablty job sze dstrbutons, t s known that PS has a much better performance than FCFS because tme sharng prevents small jobs from gettng blocked behnd bg jobs. However, by lettng too many jobs nto the server, the system effcency drops. Pror Work Unfortunately, the queston of choosng an optmal MPL for hgh varablty job sze dstrbutons s dffcult to answer snce there s no known analyss even under a Posson arrval process wth a fxed arrval rate. Ths s not surprsng because the M/G/PS-MPL model s a generalzaton of the classcal M/G/K multserver system where there are K dentcal servers, each of whch can process at most one job at a tme, and a FCFS buffer where jobs queue up when all the K servers are busy. The M/G/K multserver system can be modeled by an M/G/PS-MPL system wth MPL = K, and µ(n) = µ n, where µ s the speed of the ndvdual servers. The performance analyss of the M/G/K system s stll largely an open problem. Whle the performance analyss of the Processor-Sharng queue has been well understood for years, and research on the M/G//PS queue has been abundant [4,, 7, 6, 7, 9, 6], very lttle s known about the M/G/PS-MPL queue. Most analyses of the M/G/PS- MPL queue do not allow for load-dependent servce rates. For example, Itzhak and Halfn [3] derve a -moment approxmaton for the mean response tme for the M/G/PS- MPL queue where the servce rate s fxed, whle Zhang and Zwart [8] derve a heavy-traffc dffuson approxmaton for M/G/PS-MPL (whch they refer to as the Lmted Processor Sharng queue) wth a fxed servce rate. There s one analyss of the M/G/PS-MPL that does nvolve state-dependent servce rates, see Rege & Sengupta []. However [] requres that job szes are exponentally-dstrbuted whle we are focusng on hgh-varablty job sze dstrbutons whch are more representatve of computer workloads. Whle Fredercks [0] warns that the exponental job sze dstrbuton s not a good ndcator of performance of the M/G/PS-MPL wth hgh varablty, he does not derve an approxmaton PS

3 that allows for hgher varablty. Fnally none of the above theoretcal papers have tred to answer the queston of how to set the MPL so as to mnmze the mean response tme. Whle there s a large body of work on adaptve load control and admsson control n resource-sharng systems, all of the exstng work ether gnores the crucal pont of loaddependent servce rates at the server, or the effect of job sze varablty. Elnkety et al. [9] propose montorng the load of the server and admttng tasks as long as the resultng load does not exceed the peak effcency pont. Blake [] also proposes operatng at the peak effcency pont, but uses the fracton of jobs watng n the vrtual memory queue as an ndcator of thrashng to control the MPL. Kamra et al. [3] model the server as an deal M/G//P S system thereby gnorng the state-dependence of the servce rate. They montor the response tme of the departng jobs, and adjust the droppng probablty of the arrvng requests to acheve target response tme for the admtted tasks. Our solutons dffer from [3] n that we do not drop requests. Hess and Wagner [] propose a feedback mechansm to montor the effect that changng the MPL has on the performance metrc of nterest. However, as the authors observe, ths requres montorng at least hundreds of departures before a control decson can be taken. Another drawback of the soluton proposed n [] s that the authors assume the system reaches statonarty after the control decson has been taken. Ths assumpton s hardly justfed, and can cause ncorrect decsons due to a delay between the tme the control acton s taken, and the tme ts effect s observed. Schroeder et al. [4] consder the problem of settng a statc MPL n the presence of varable job szes, but the emphass of [4] s to fnd a suffcently small MPL so that class-based task prortzaton can be done n the FCFS queue. Schroeder et al. also develop a feedback based controller based on measurng the throughput and response tmes, but gnore the state-dependence of servce rate. Van der Wej, Bhula and van der Me [] also look at admsson control n a PS queue under the assumpton that the job sze dstrbuton s of phase type and the phases of all the jobs n the system are known. The authors assume a constant µ(n), and characterze the optmal admsson control polcy. In contrast, we assume that no nformaton about the job szes s avalable and hence sze-based prortzaton s not possble. Contrbutons of ths paper To the best of our knowledge, we are the frst to consder the queston of controllng the mult-programmng lmt n a resource-sharng system by takng nto account both the servce rate curve, and the hgh varablty of the job sze dstrbuton. Our paper has two prncpal contrbutons:. Optmal traffc-aware statc polces We derve the frst approxmaton for mean response tme for the M/G/PS-MPL queue wth state-dependent servce rates, and extend ths approxmaton for GI/G/PS-MPL systems. The approxmaton enables us to choose the MPL that mnmzes mean response tme. Va extensve smulaton experments presented both n ths paper and n [], we demonstrate that the optmal MPL settng can be much hgher than the peak effcency pont, under job sze varablty characterstc of computer workloads. In fact, we show examples where the optmal MPL operates the system at 8% of the peak effcency, whle droppng the mean response tme by more than 6% []. Our results are verfed across a varety of job sze dstrbutons ncludng Webull, Pareto and Hyperexponental dstrbutons. We refer to the statc polcy whch uses the optmal statc MPL as the Opt- Statc polcy.. Near-optmal traffc-oblvous dynamc polces The above results assume jobs arrve accordng to a Posson process wth a known arrval rate and propose the best statc MPL. However, we are nterested n scenaros where the mean arrval rate may not be known, or the arrval process may not even be Posson, exhbtng burstness or temporal correlatons. Our goal s to desgn lght-weght MPL control polces that adapt to the traffc characterstcs. By lghtweght polces, we mean polces whch take decsons based only on the nstantaneous number of jobs n the buffer, Q(t), and the nstantaneous number of jobs at the server, K(t). We frst consder the settng where the arrval process s known to be Posson, but wth an unknown mean arrval rate. We fnd that, unsurprsngly, statc MPLs are very poor n handlng uncertanty n the mean arrval rate. We then propose two lght-weght MPL control polces, Lght- Approx and Posson-Approx that robustly handle uncertanty n the mean arrval rate. The key dea n our approach s that by consderng a specal class of job sze dstrbutons, the -phase degenerate hyperexponental dstrbuton, we are able to ncorporate the effect of job sze varablty n our optmzaton problem, whle (Q(t), K(t)) remans a Markov process. Thus, the control polces we obtan are a functon only of (Q(t), K(t)). Va smulatons we show that both Lght-Approx and Posson-Approx are robust at adaptng to unknown mean arrval rate, resultng n near-optmal mean response tme (under 9%) for a wde range of arrval rates when compared to the optmal statc MPLs for each arrval rate. Next, we consder the settng where not only s the mean arrval rate not known, but the arrval process s also bursty. We demonstrate that both Lght-Approx and Posson- Approx are smultaneously robust to unknown mean arrval rate and burstness of the arrval process, resultng n less than % hgher mean response tme than the mean response tme for the optmal traffc-aware statc MPL. Surprsngly, we fnd that f the mean arrval rate s known, a statc MPL optmzed for a Posson arrval process wth the gven mean arrval rate s also near-optmal when the arrval process s bursty wth that mean arrval rate (that s, the nterarrval tmes are..d. but not Exponentally dstrbuted). However, burstness can greatly worsen the performance of statc polces when the mean arrval rate s unknown. Outlne In Secton, we solve the problem of choosng the optmal statc MPL for a general job sze dstrbuton under the assumpton that the arrval process s Posson wth a known mean arrval rate. In Secton 3, we begn by demonstratng that the approach of choosng a sngle statc MPL s fundamentally lmted n ts ablty to handle varablty n traffc arrval patterns. In Sectons 3. and 3.3, we construct our dynamc MPL control polces Lght-Approx and Posson- Approx, respectvely. In Secton 3.4, we evaluate these dynamc polces wth respect to () robustness to unknown arrval rate, and () robustness to burstness of the arrval process. Fnally we compare our traffc-oblvous dynamc polces to the optmal traffc-aware statc MPL polcy.

4 . CHOOSING THE BEST STATIC MPL Our frst goal n ths paper s to address the queston of how to optmally set a mult-programmng lmt n a resourcesharng system so as to mnmze the mean response tme (equvalently, mnmze the mean number of jobs n the system). We assume that the arrval process s Posson wth a known mean arrval rate, and that the job sze dstrbuton s known. In Secton., we present some stochastc monotoncty results for the performance of PS-MPL systems under farly general job sze dstrbutons whch motvate the need to approprately choose the MPL based on the job sze dstrbuton. In Secton., we provde a smple approxmaton for the mean number of jobs n an M/G/PS-MPL system wth state-dependent servce rate nvolvng only the frst two moments of the job sze dstrbuton, and demonstrate a job sze dstrbuton for whch the approxmaton s, n fact, exact. In Secton.3, we present the Opt-Statc polcy, whch uses our approxmaton to choose a statc MPL based on the mean arrval rate and the frst two moments of the job sze dstrbuton. Even though our approxmaton nvolves only the frst two moments of the job sze dstrbuton, we show va experments that t leads to optmal or near-optmal MPL selecton for a range of dstrbutons used to model computer workloads.. Stochastc monotoncty results Let F be a dstrbuton functon for a non-negatve random varable X, and f be the correspondng densty functon. Defnton. Dstrbuton F s sad to belong to the class DFR (IFR) f the functon h(x) = f(x) s decreasng (ncreasng). F (x) Defnton. Dstrbuton F s sad to belong to the class DMRL (IMRL) f the functon R(a) = E[X a X a] s decreasng (ncreasng). The classes IMRL (Increasng Mean Resdual Lfe, also referred to as NWUE for New Worse than Used n Expectaton) and DFR (Decreasng Falure Rate) both capture the noton that young jobs (those who have receved less servce) are more lkely to fnsh earler than old jobs. The condton DFR s equvalent to sayng that the resdual lfe of young jobs s stochastcally smaller than the resdual lfe of old jobs, whle IMRL s equvalent to sayng that the mean resdual lfe of young jobs s smaller than the mean resdual lfe of old jobs. The followng s a corollary of [9, Theorem ]. Proposton. In a G/G/PS-MPL system wth a DFR job sze dstrbuton, the number of jobs n the system at any tme s a stochastcally decreasng functon of the MPL K, for K K. For an IFR dstrbuton, the number of jobs n the system s a stochastcally ncreasng functon of the MPL K, for K K. A smlar proposton can be proven for the mean number of jobs (equvalently mean response tme) by relaxng the assumptons on the arrval process and the job sze dstrbuton. Proposton. In an M/G/PS-MPL system wth an IMRL job sze dstrbuton, the mean number of jobs n the system s a decreasng functon of the MPL K, for K K. For a DMRL dstrbuton, the mean number of jobs n the system s an ncreasng functon of the MPL K, for K K. Proof. From [, Theorem 3.4], for IMRL dstrbutons, t suffces to prove that for all x, V x, whch denotes the mean workload n the system due to jobs wth attaned servce less than x, s decreasng n the MPL K for K K. From the proof of [9, Theorem ], ths s easly seen to hold. The proof for DMRL dstrbutons s analogous. Intutvely, when the job sze dstrbuton s DFR or IMRL, we prefer to serve young jobs as they are more lkely to fnsh earler. By choosng an MPL smaller than K, we do not gan servng capacty, snce K acheves the maxmum speed, and smultaneously lmts the ablty of new jobs (whch are lkely to be small) to enter servce. Smlarly, for IFR or DMRL job sze dstrbutons, we prefer to serve old jobs as they are more lkely to fnsh earler. By choosng an MPL larger than K, we do not gan aggregate servng capacty, and we smultaneously reduce the capacty avalable to old jobs, as young jobs are allowed nto servce. Job sze dstrbutons belongng to class DFR and IMRL correspond to dstrbutons whch are more varable than the Exponental dstrbuton, and the above results show that there s no beneft n runnng at an MPL smaller than K n ths case. However, there mght be beneft n operatng at an MPL hgher than K, ncreasng the chance for small jobs to enter servce and fnsh quckly even whle losng aggregate servce capacty n the process, as we show next.. -moment approxmaton for M/G/PS-MPL As mentoned earler, there are no known analytcal expressons or approxmatons for the mean number of jobs n an M/G/PS-MPL system wth state-dependent servce rate. We now propose a smple approxmaton for the mean number of jobs n an M/G/PS-MPL system nvolvng only the frst two moments of the job sze dstrbuton. Proposton 3. Let E[N] denote the mean number of jobs n an M/G/PS-MPL system wth arrval rate λ, statedependent servce rate µ(n) when there are n jobs at the PS server, wth MPL=K, and a general job sze dstrbuton wth mean and SCV C. Then, h E[N] E NExp(K) S + C + E hn QExp (K) () where E hn QExp (K) and E NExp(K) S, respectvely, denote the mean number of jobs n the FCFS Queue and at the PS Server n an M/M/PS-MPL wth the same state-dependent servce rates as the orgnal M/G/PS-MPL system, wth MPL=K and Exponental job sze dstrbuton wth mean. The expressons for E hn QExp (K) and E NExp(K) S are gven by: E hn QExp (K) = h E NExp(K) S = φ K+ P + λ P K P = φ + K = φ + P = φ µ(k)! =K+ φ where φ s are the rato of the statonary probabltes and the dle probablty for an M/M/PS-MPL, and are gven by: φ = 8 < : Π j= φ K λ µ(j) K, K λ µ(k) > K. Proposton 3 can be seen as a generalzaton of the Lee and Longton [7] approxmaton for the mean number of jobs n

5 an M/G/K system, and agrees wth the approxmaton gven by [3] when the servce rate s ndependent of the state. In Proposton 4, we show that approxmaton () s n fact exact for a degenerate hyperexponental dstrbuton, H, wth mean and squared of coeffcent of varaton C. Defnton 3. A degenerate hyperexponental dstrbuton wth mean and SCV C s defned by: ( 0 wth probablty q = C H (C ) Exp C + wth probablty q = C + C + where Exp(ν) denotes an Exponental random varable wth mean /ν. Proposton 4. The mean number of jobs n an M/H (C )/PS-MPL system wth arrval rate λ, state-dependent servce rate µ(n) when there are n jobs at the PS server, and MPL=K s gven by: h E N H (C )(K) = E NExp(K) S + C + E hn QExp (K) where E hn QExp (K) and E N S Exp(K) are as defned n Proposton 3. Proof. We frst observe that the H (C ) dstrbuton conssts of two classes of jobs, those of sze 0 and those belongng to the Exponental branch. The response tme and hence the number of jobs belongng to the Exponental class n the M/H (C )/PS-MPL system s not affected by the presence of zero-szed jobs. Therefore, the contrbuton to the mean number of jobs n the system consstng of jobs n + E h N Q Exp. The the Exponental class s precsely E NExp S zero-szed jobs only contrbute to the mean number n queue. However, snce the schedulng polcy s sze-ndependent, the watng tme dstrbuton of a zero-szed job s the same as the watng tme dstrbuton of a job belongng to the Exponental class, but the arrval rate of zero-szed jobs s C tmes the arrval rate of the Exponental class. Therefore, the contrbuton of the zero-szed jobs to the mean number n system s C E h N Q Exp, provng the proposton. In Secton.4 we extend Proposton 3 to obtan an approxmaton for a GI/G/PS-MPL system nvolvng the frst two moments of the nterarrval tme and job sze dstrbutons..3 The Opt-Statc polcy We now ntroduce the Opt-Statc polcy to choose a near-optmal statc MPL. The Opt-Statc polcy smply sets MPL = κ where κ denotes the MPL that mnmzes the rght hand sde of (): h E κ = arg mn K NExp(K) S + C + E hn QExp (K) We now show that the Opt-Statc polcy s a good heurstc for mnmzng the mean response tme n an M/G/PS- MPL system wth known mean arrval rate. In Fgure 3, we present smulaton results for the followng three job sze dstrbutons all wth mean and C =9 : () Webull dstrbuton wth scale parameter and shape 6 parameter. 3 Bounded Pareto dstrbuton wth shape parameter α =. and support [0.8, 78.79]. A two-phase hyperexponental (H ) dstrbuton whose parameters are chosen so that, r, the fracton of the total load consttuted by the phase wth the smaller mean, s 0.. The results n Fgure 3 assume that the state-dependent servce rates of the PS server are gven by the µ(n) curve shown n Fgure. We wll use the servce rate curve shown n Fgure n all the numercal and smulaton evaluatons n ths paper. In [], we present detaled smulaton results for more scenaros. The man message of Fgure 3 s that the optmal MPL can be much larger than the peak effcency MPL of K =. For example, when λ = 0.8, the optmal statc MPL for the bounded Pareto dstrbuton s wth a resultng mean number of jobs around 3.4, whle K = results n 3% larger mean number of jobs at approxmately 4.6. Second, as can be seen, even though approxmaton () s not extremely accurate at predctng the mean number of jobs n the system for general dstrbutons (n fact, t s possble to show that no approxmaton based on only the frst two moments can be), t s robust n predctng the optmal or near-optmal MPL. Our approxmaton recommends MPL = 4 and the mean number of jobs n the system usng our recommended MPL s around 3.4. Usng approxmaton (), t s easy to see why the mean number of jobs n the system s mnmzed at a larger MPL than the peak effcency MPL of K when job szes have hgh varablty. To see ths, start by consderng the case of low varablty: C =. For ths case, approxmaton () suggests that the optmal MPL s n fact K. As we ncrease the MPL beyond K, f the traffc ntensty s not h very hgh, E N Q Exp falls whle E NExp S ncreases. For a h hgh enough C, the fall n C + E N Q Exp, and hence n the mean watng tme n the FCFS buffer, wll be larger than the rse n E NExp S, whch s the component representng the mean tme to process a job at the PS server. Therefore, settng an MPL hgher than K, and allowng small jobs to overtake the bg jobs, leads to an overall reducton n the mean response tme. We would lke to pont out that the queston of choosng the optmal mult-programmng lmt s closely related to the queston of choosng the optmal number of servers n a multserver system (that s, one fast vs. K slow servers), such as the M/G/K, but wth a fundamentally dfferent trade-off. In the presence of hghly varable job szes, one wants to choose a large number of servers n a multserver system to prevent small jobs from gettng blocked behnd large jobs. Smlarly, n the PS-MPL system, we want to choose a hgh MPL to allow small jobs to overtake large jobs. In both cases, we are lmted n our ablty to ncrease the parallelsm due to capacty wastage. Whle n a multserver system, capacty s wasted when there are less than K jobs n the system, n the PS-MPL system, capacty s wasted when the mult-programmng lmt K s set larger than the peak effcency pont K, and there are more than K jobs n the system. Therefore, n a multserver system, hgh parallelsm (large number of servers) s preferred when the traffc ntensty s hgh, whle n a PS-MPL system a hgh degree of parallelsm (large MPL) s preferred when the traffc ntensty s low..4 Approxmaton for GI/G/PS-MPL

6 E[N] Pareto. Webull H (r=0.) Our approx. E[N] Pareto. Webull H (r=0.) Our approx. E[N] Pareto. Webull H (r=0.) Our approx MPL (a) λ = MPL (b) λ = MPL (c) λ = 0.9 Fgure 3: The mean number of jobs n the system vs. MPL for the followng dstrbutons, all wth mean and SCV 9: () Bounded Pareto dstrbuton wth shape parameter. () Webull dstrbuton () Two-phase hyperexponental dstrbuton wth % of load consttuted by the branch wth the smaller mean. The arrval process consdered s Posson wth the ndcated mean arrval rate, λ. For reference, we have also shown our -moment approxmaton for the mean number of jobs n the system. The optmal MPL for each curve s shown wth a crcle. Proposton. Let E[N] denote the mean number of jobs n a GI/G/PS-MPL system wth state-dependent servce rate µ(n) when there are n jobs at the PS server, MPL=K, a general job sze dstrbuton wth mean and SCV Cs, and a general nterarrval tme dstrbuton wth mean and λ SCV Ca. Then, h + C s + E[N] E N S Exp where E N Exp S and E hn Q Exp h E N Q Exp, denote, respectvely, the mean number of jobs at the PS Server and n the FCFS Queue n a BP P/M/PS-MPL system wth the same state-dependent servce rates as the orgnal GI/G/PS-MPL system, MPL=K, Exponental job sze dstrbuton wth mean, mean arrval rate λ and..d. The expressons for E N S Exp where h E N Exp S = h E and γ = φ = N Q Exp 8 < : λ µ(k). = geometrc batch szes wth mean C s +C a and E hn Q Exp are gven by P K = φ + P P K =K+ φ + φ K+ + P C s +. (3) = φ Cs + C a (4) = φ (Cs + )( γ) Π λ (Cs +)+µ(j ) (C a ) j= K φ K γ (C s +)+C a (C s +C a )µ(j) K C s +C a > K 3. SELF-ADAPTIVE MPL CONTROL POLICIES In the prevous secton, we consdered the queston of choosng the optmal statc MPL under the assumpton that the arrval process s Posson, and that the mean arrval rate, λ, was known accurately. We begn ths secton by showng that the methodology of choosng a statc MPL based on assumng a mean ntensty for the Posson arrval process s very fragle. In Table we consder a Webull job sze dstrbuton wth mean and C = 9, and show the mean number of jobs n the system for varous settngs of MPL and the mean arrval rate λ. We assume the servce rate curve shown n Fgure wth K =. The optmal MPL n Table vares from, when λ = 0.6, to, when λ =.. In fact, choosng the optmal statc MPL assumng a λ 0.8 results n an unstable system when true λ =.. There can be two ways around ths problem: The frst approach s to robustly choose a sngle statc MPL that works well for all λ. Ths necessarly mples operatng the system at peak effcency K, whch we have already seen can be far from the optmal. The second approach s to learn the parameters of the arrval process and then choose the optmal statc MPL for that partcular arrval process. However, ths approach wll fal to adapt to varatons n traffc on small tme scales. In ths secton, we are motvated by the queston: Are there lght-weght, traffc-oblvous MPL control polces whch perform as well as the traffcaware optmal statc MPL polces? By a traffc-oblvous control polcy, we mean a polcy that does not depend on knowng the arrval rate or the hgher order characterstcs of the arrval process. In ths secton, we develop two dynamc MPL control polces - Lght-Approx and Posson-Approx. Secton 3. hghlghts the key deas n our approach. Secton 3. and Secton 3.3, respectvely, present the numercal algorthms nvolved n the constructon of our traffc-oblvous dynamc MPL control polces Lght-Approx and Posson-Approx. In Secton 3.4 we evaluate our dynamc MPL control polces va smulatons and demonstrate that our proposed MPL control polces exhbt robustness to both the traffc ntensty and the burstness of the arrval process. 3. Key Steps n Our Approach Recall that, gven a job sze dstrbuton, our goal s to obtan MPL control polces whch are () lght-weght: adjust the MPL based only on the nstantaneous queue length, Q(t), and the nstantaneous MPL, K(t), and () traffcoblvous: robust to varatons n the arrval process. To acheve our frst goal, we consder a specal class of job sze dstrbutons, the degenerate hyperexponental dstrbuton (H ), whch s a mxture of an Exponental dstrbuton, and a pont mass at 0. Snce the jobs of sze 0 do not spend any tme at the server, and due to the memoryless property of the Exponental dstrbuton, (Q(t), K(t)) s

7 MPL % c.. λ = ± λ = ± 0.00 λ = ± 0.94 λ = ±.483 λ = ± 4.73 λ = ±.606 Table : Numercal results for mean number of jobs n system for dfferent values of MPL and arrval rates. The arrval process was Posson, and the job sze dstrbuton was Webull wth mean, SCV 9. The optmal value for each settng of the mean arrval rate has been boldened. a Markov process. Ths ensures that we can obtan a lghtweght dynamc MPL control polcy, snce any optmal MPL control polcy for the H job sze dstrbuton wll only take decsons based on (Q(t), K(t)). The next step n our approach s solvng a stochastc dynamc programmng problem to construct famles of canddate dynamc MPL control polces. The Lght-Approx and Posson-Approx polces dffer n the famly of canddate polces. Under Lght-Approx, the famly of canddate polces s a set, {π p}, where a partcular polcy π p s constructed by solvng an optmal MPL control problem for an H job sze dstrbuton wth parameter p (Eqn. (7)). Thus, whle there s some unque H (C ) job sze dstrbuton that matches the frst two moments of the true job sze dstrbuton (Defnton 3), the famly s constructed by lookng at a range of H dstrbutons. To solve the optmal control problem, we assume that we start n some ntal state (Q 0, K 0), and fnd the polcy that mnmzes the sum of response tme of jobs n the system gven that there are no further arrvals. In the case of Posson-Approx, the famly of canddate polces s the set, {π λp }, where a partcular polcy π λp s obtaned by solvng an optmal control problem for a Posson arrval process wth ntensty λ p and the H (C ) job sze dstrbuton to mnmze the tme-average mean number of jobs n the system. The fnal step n our approach s choosng one member from the famly of canddate dynamc polces, so that the chosen polcy s robust to the arrval process. To acheve ths goal, we evaluate the canddate polces n the famly for a Posson arrval process wth rate λ [λ, λ] and H (C ) job sze dstrbuton. Let E[N (λ)] denote the mean number of jobs n the system for Posson arrval process wth ntensty λ, and H (C ) job sze dstrbuton, under the Opt-Statc polcy. The quantty E[N (λ)] s gven by Proposton 4. Let E[N π (λ)] denote the mean number of jobs n the system for the H (C ) job sze dstrbuton and Posson arrval process wth ntensty λ under a dynamc MPL control polcy π. We defne the worst-case relatve error for a polcy π as: E[N π (λ)] E[N (λ)] ɛ(π) = max λ [λ,λ] E[N (λ)] Gven a famly of canddate polces {π a} wth parameter a takng values n some set A, we choose the polcy that mnmzes the worst case relatve error: () a = arg mn ɛ(π a) (6) a A Thus, n our case, π p denotes the Lght-Approx polcy, and π λ p denotes the Posson-Approx polcy. 3. The Lght-Approx polcy As a frst step towards dervng the Lght-Approx polcy, we begn n Secton 3.. by formulatng and solvng a lght-traffc optmal MPL control problem. We fnd that the soluton to ths problem exhbts both a flud component, to guarantee stablty, and a stochastc component, to handle varablty n job szes. In Secton 3.., we use the soluton of the lght-traffc optmal control problem to construct a famly, {π p}, of smple, lght-weght MPL control polces, and n Secton 3..3 we sketch the use of Matrx-Geometrc methods to evaluate ths famly of canddate polces to enable selecton of the approprate polcy, Lght-Approx. 3.. A lght-traffc optmal control problem In ths secton we solve an optmal lght-traffc MPL control problem parameterzed by p, by consderng the followng degenerate hyperexponental job sze dstrbuton : ( H 0 wth probablty p (p) (7) Exp () wth probablty p We assume that we start our PS-MPL system n some state (Q 0, K 0) at tme t = 0, where a departure has taken place at tme t = 0. The state varable Q 0 denotes the queue length at t = 0 and K 0 s one more than the number of jobs at the PS server left behnd by the last departure. We assume that multple zero-szed jobs admtted at the same tme leave together. Thus K 0 does not necessarly denote the MPL at tme t = 0. However, by our assumpton of an H (p) job sze dstrbuton, each of the (K 0 ) jobs at the server has remanng servce requrement ndependent and dentcally dstrbuted as Exp(). Note that whle the zero-szed jobs do not spend any tme at the server, they stll experence delays whle watng n the FCFS buffer. We assume that there are no more arrvals (hence the lghttraffc). We can now take one of the followng actons at tme t = 0:. Decrease MPL: We do not admt another job from the queue nto the PS server, decreasng the MPL to K 0.. Keep MPL same: We admt only one job from the queue nto the PS server to replace the departng job, mantanng the MPL at K Increase MPL by k: We admt k + jobs from the queue nto the PS server, ncreasng the MPL to K 0+k. Our am s to take the optmal acton n each state so as to acheve the followng goal: Mnmze the expected sum of response tmes of jobs present n the system at tme t = 0, gven that there are no further arrvals.

8 If our goal was to mnmze the tme untl the system emptes, the optmal control would be to operate at MPL of K. However our performance metrc s the mean response tme. Note that we do not allow preemptng an executng job to decrease the MPL. Ths s mportant because n a transacton processng system, for nstance, kllng an executng task nvolves unrollng the executon trace for the task and s sgnfcantly expensve. In our framework, we can only alter the MPL when a job departs, and hence we assume that there are no costs assocated wth changng the MPL. The soluton of the above optmal-control problem can be obtaned n a straghtforward fashon va stochastc dynamc programmng. To do so, we assocate a cost functon c(q, K) wth each state (Q, K), whch represents the optmal expected sum of response tmes, gven that we start n state (Q, K) at tme t = 0, and an acton functon π(q, K), representng the optmal acton n state (Q, K). The functon π(q, K) takes values n the range {, 0,,,...} wth representng the acton decrease MPL, 0 representng the acton keep MPL same and k > 0 representng the acton ncrease MPL by k. The cost of the states wth zero queue length s smply: c(0, K) = K X = µ() To see why the above s true, note that snce the queue s empty and we do now allow preempton of executng jobs, the cost of state (0, K) s the expected sum of response tmes of the K jobs executng at the server. The mean tme (8) µ(k ) snce untl the departure of the frst job s gven by the server s processng at rate µ(k ). The tme untl the frst departure gets added to the response tme of all the K jobs n the system, and contrbutes to c(0, K), and µ(k ) so on for subsequent departures. We represent by c (Q, K) the cost of state (Q, K) gven that we take acton decrease MPL n state (Q, K). Smlarly, c k (Q, K) (k {0,..., Q }) denotes the cost of state (Q, K) gven that we take acton ncrease MPL by k n state (Q, K). Gven c (Q, K) and c k (Q, K), the optmal acton π(q, K) and the cost functon c(q, K) are: π(q, K) = arg mn c δ (Q, K) δ {,..., Q } (9) δ c(q, K) = c π(q,k) (Q, K) (0) The functon c (Q, K) s gven by: = c (Q, K) = Q + K µ(k ) + c(q, K ) () and c k (Q, K) s gven by: Q + K c k (Q, K) = µ(k + k) + c(q k, K + k) ( p) k+ k+ X k + + c(q k, K + k + ) ( p) k+ p () In dervng the last equaton, we have made use of the assumpton that f multple zero-szed jobs are admtted smultaneously, then they all leave together. Ths mantans the nvarant that the K n state descrptor (Q, K) s one larger than the number of jobs at the server belongng to the Exponental class, and we do not have to keep track or estmate the number of zero-szed jobs. Whle n the problem formulaton above, we have not mposed an upper bound on k, n practce we restrct k max to prevent sudden jumps n MPL. For all the smulaton results n ths paper, we set max =. 3.. A famly of traffc-oblvous MPL control polces In Secton 3.. we formulated an optmal control problem parameterzed by p, the fracton of zero-szed jobs n the H (p) job sze dstrbuton. By varyng the parameter p, we obtan a famly of MPL control polces. Let π p denote the acton functon for the control problem wth parameter p. Fgure 4 shows the structure of π p for p = 0.3 and p = 0. and the servce rate curve shown n Fgure. For example, f the current state s (Q =, K = 0), under the p = 0.3 polcy, the control s to decrease the MPL to 9 by not admttng a new job, whle under p = 0. polcy, the optmal control s to ncrease the MPL to by admttng two jobs. The structure of the optmal soluton has some nterestng features:. For a gven p, there s some mnmum queue length Q(p) such that the optmal acton for Q > Q(p) s to operate at the peak effcency pont. In Fgure 4(a), Q(p) = 0 and the optmal control for Q > Q(p) s to attan the peak effcency MPL of K =. We call ths the flud component of the control polcy. Ths flud component provdes robustness to the dynamc MPL polcy aganst hgh arrval rates. Further, as p ncreases, the threshold Q(p) ncreases.. As the queue length decreases, the stochastc component of the control takes over, gradually ncreasng the MPL to a pont wth lower servce rate than the most effcent pont. Ths stochastc component gves our MPL control polcy the ablty to combat the job-szevarablty when the traffc ntensty s low. The structure of the optmal control s qute ntutve. Whenever a decson to ncrease the MPL has to be taken, there are two scenaros: () wth probablty p the admtted job s of sze zero n whch case the decrease n server speed does not hurt any one, and () wth probablty p, the admtted job belongs to the Exponental class and n ths case adds to the watng tme of everyone n the queue. If we defne the threshold queue length to be the pont when we should ncrease the MPL and move to a less effcent servce rate, then we see that ths threshold queue length s an ncreasng functon of p. Gven any acton functon π, we can translate t nto a dynamc MPL control polcy va the procedure n Fgure. The Lght-Approx control polcy for a dstrbuton wth SCV C s now chosen to be π p such that: p = arg mn ɛ(π p) (3) p where ɛ( ) s gven by (). Expermentally, t suffces to carry out the optmzaton over a small set of parameters p (at a coarse granularty) Evaluaton of dynamc MPL control polces va Matrx-geometrc analyss

9 0 0 MPL 0 MPL Queue Length (a) p = Queue Length (b) p = 0. Fgure 4: The structure of the Lght-Approx control polcy for two values of the parameter p and max =. A + ndcates ncrease MPL, and a o ndcates keep MPL same. At every other pont, the optmal control s to decrease MPL. Algorthm MPL control(π) Case: New arrval Let Q be the queue length and K be the MPL mmedately after the arrval. Let π(q, K + ) = k f k 0: admt k + jobs from the head of the FCFS buffer nto the server and ncrease MPL to K + k + f k < 0: do nothng Case: Departure Let Q be the queue length and K be the MPL mmedately before the departure. Let π(q, K) = k f k 0: admt k + jobs from the head of the FCFS buffer nto the server and set MPL to K + k f k < 0: reduce MPL to K by not admttng any job from the FCFS buffer Fgure : The dynamc MPL control polcy obtaned from the acton functon π. In ths secton, we outlne a method to numercally evaluate the mean number of jobs, E[N π (λ)], for a dynamc MPL control polcy π under the assumpton of the H (C ) job sze dstrbuton (Defnton 3) and a Posson arrval process of ntensty λ. Note that n Proposton 4 wth statc MPL, we were able to smplfy the analyss of the H (C ) job sze dstrbuton by gnorng the zero-szed jobs and focusng on the exponental class. Ths was because the admsson control polcy was ndependent of the queue-length. However, wth a dynamc polcy that looks at the queue-length, we need to keep track of how many zero-szed jobs are n the system. For succnctness, let q =. C + Assumng that under the dynamc polcy π, there s some queue-length Q such that the optmal control for any queue length Q Q s to operate at the hghest effcency pont K, we can express the system as a Markov chan wth a Q = 0 Q Q + K +,? d K + K + K +,? d K + K + K + K,? K,? 0,? 0 a K + q K +,? d K + K + 0,? a K +,? K + K + a K + K + K + q q K +,? K +,? a K + q d K + K + q q( q) ( q) q a K + q a K + d K + d K + q K + K dk K,? q a K + a K + ak d K + d K + K + d K + d K + q K + K dk K,? q a K + a K + ak q d K + d K + q K + K + K dk K,? Fgure 6: The embedded Markov chan for evaluaton of dynamc MPL control polces. We use a n to denote λ and dn = an. For decson states wth multple λ+q µ(n) alternatves (e.g., (, K +,?) and (, K,?)), the dashdotted arcs correspond to the decson to not admt any jobs, dashed arcs correspond to the decson to admt one job, and dotted arcs correspond to the decson to admt two jobs. repeatng structure. The states of the Markov chan are pars (Q, K) wth Q denotng the queue length, and K denotng the number of jobs of the exponental class at the server. However, due to the zero-szed jobs, we can have arbtrarly bg drops n Q. For example, f we are n state (Q = 0, K = ) and a departure takes place, and f all the jobs n the queue have sze 0, whch happens wth nonzero probablty, we jump to state (Q = 0, K = 4). To a K + a K + ak

10 take care of ths problem, we ntroduce decson states represented as (Q, K,?). We transton to the decson state (Q, K,?) mmedately after a departure takes place from the state (Q, K + ), or f an arrval takes place whle n state (Q, K) and Q < Q. The state (Q, K,?) mplements the admsson control polcy π, as well as handlng zero-szed jobs, because now the jumps are bounded. For example, f the control n state (Q, K,?) s to admt job, then wth probablty ( q) the job s of sze 0, and we transton to (Q, K,?); otherwse, wth probablty q we transton to (Q, K + ). However, the rate of transtonng from the decson states s nfnte. Thus we wll fnd t sutable nstead to work n the framework of Sem-Markov processes. We wll consder the embedded dscrete tme Markov chan where the transtons correspond to arrvals, departure and decsons taken n decson states n the orgnal contnuous tme system. The embedded Markov chan s shown n Fgure 6. We then solve for the statonary dstrbuton of ths embedded Markov chan va Matrx-Geometrc method. We would lke to pont out that due to the specal structure of the Markov chan n Fgure 6 (the backward transton matrx s of rank ), the rate matrx nvolved n the Matrxgeometrc soluton has an explct soluton n our case [0]. Fnally, we obtan the statonary dstrbuton of the number of jobs n the system by multplyng the probablty of beng n a state n the embedded chan wth the mean resdence tme n that state, and normalzng. 3.3 The Posson-Approx polcy The Posson-Approx polcy s defned by constructng a famly {π λp }, where the canddate polcy π λp s obtaned as follows: We consder a Posson arrval process of ntensty λ p and the H (C ) job sze dstrbuton, and solve the optmal dynamc MPL control problem to mnmze the mean number of jobs. The polcy π λp s computed va the method of polcy teraton, explaned n Appendx A. Fgure 7 shows the structure of π λp for λ p = 0.9 and λ p =.0. The Posson-Approx MPL control polcy s now chosen to be π λ p where: λ p = arg mn ɛ(π λp ) (4) λ p where ɛ( ) s defned n (). As n the case of Lght-Approx, t suffces to carry out the above optmzaton at a coarse granularty. 3.4 Performance Evaluaton In ths secton we show va smulatons that our dynamc MPL control polces proposed n Sectons 3. and 3.3 guarantee robustness aganst both msestmaton of traffc ntensty, and aganst hgher order characterstcs of the arrval process, such as the burstness Robustness aganst traffc ntensty estmaton We wll now evaluate the Lght-Approx and Posson- Approx polces for a Posson arrval process wth unknown mean arrval rate, λ, and compare them aganst the Opt- Statc polcy that s gven the exact mean arrval rate. To do ths, we show the mean number of jobs, E[N], under dfferent arrval rates, obtaned va smulatons. Recall that Table shows these results for the Webull job sze dstrbuton and varous values of statc MPLs. In Table we show the results for the mean number of jobs for the same Webull job sze dstrbuton under the Lght-Approx polcy, as a functon of λ and the parameter p of the famly {π p} of canddate polces. The optmzaton procedure (3) sets p = 0. from among the values shown n the table (column hghlghted). Observe that the Lght-Approx polcy gves near optmal performance for each arrval rate as compared to Table for λ up to.0 wth approxmately 3% larger mean number of jobs n the system than the optmal traffc-aware statc polcy when λ = 0.8. On the other hand, a sngle robustly chosen statc MPL necessarly has to operate at the peak effcency pont and, as Table shows, exhbts 4% larger mean response tme than the optmal traffc-aware statc polcy when λ = 0.7. Table 3 shows smulaton results for the mean number of jobs wth the Posson-Approx MPL control polcy for varous values of the parameter λ p for the famly {π λp } of canddate polces. The optmzaton procedure (4) sets λ p = 0.9 from among the values shown n the table (column hghlghted). The Posson-Approx polcy also acheves near-optmal performance for each arrval rate as compared to Table wth approxmately 9.% larger mean number of jobs n the system than the optmal traffc-aware statc polcy when λ =.. Note that for these results, we have not completely optmzed the λ p parameter, and the performance of the Posson-Approx polcy s lkely to mprove further. Whle we have seen that both dynamc polces are far superor than any statc polcy when the mean arrval rate s not known, lookng both at Tables and 3, one can observe that nether dynamc polcy sgnfcantly outperforms the Opt-Statc polcy f the mean arrval rate s known Robustness aganst burstness n arrval process wth unknown arrval rate We now evaluate the robustness of our MPL control polces aganst burstness of the arrval process when the mean arrval rate s not known. To do so, we choose a batch Posson arrval process (BPP). The batch szes were..d. geometrc wth mean. Table 4 shows the results for the mean number of jobs n the system wth Webull job sze dstrbuton for varous settngs of statc MPL and mean arrval rate λ of the arrval process. From Table 4, we see that when the arrval rate s not known, a robustly chosen statc polcy has to operate at K =, whch results n 0% hgher mean number of jobs than the optmal traffc-aware statc polcy when the mean arrval rate s λ = 0.6. Therefore a bursty arrval process can exacerbate the nadequacy of statc MPL polces when the mean arrval rate s not known. Table shows the results for mean number of jobs n the system for the same settng as Table 4 for the Lght- Approx MPL control polcy as a functon of the parameter p of the famly {π p} of canddate polces for varous values of the mean arrval rate λ. The column for the parameter chosen by the Lght-Approx polcy has been hghlghted. From Table, we fnd that Lght-Approx polcy s also robust to burstness, whle yeldng at worst % hgher mean response tme than the optmal traffc-aware statc MPL polcy. Therefore, the Lght-Approx polcy s smultaneously robust to both the mean arrval rate and burstness of the arrval process. The Lght-Approx polcy wth parameter p = 0.3 outperforms the polcy wth p = 0. for the chosen settng, but as noted earler, ths s due to the fact that we have not optmzed the parameter completely.

Analysis of Discrete Time Queues (Section 4.6)

Analysis of Discrete Time Queues (Section 4.6) Analyss of Dscrete Tme Queues (Secton 4.6) Copyrght 2002, Sanjay K. Bose Tme axs dvded nto slots slot slot boundares Arrvals can only occur at slot boundares Servce to a job can only start at a slot boundary

More information

Resource Allocation with a Budget Constraint for Computing Independent Tasks in the Cloud

Resource Allocation with a Budget Constraint for Computing Independent Tasks in the Cloud Resource Allocaton wth a Budget Constrant for Computng Independent Tasks n the Cloud Wemng Sh and Bo Hong School of Electrcal and Computer Engneerng Georga Insttute of Technology, USA 2nd IEEE Internatonal

More information

Lecture Notes on Linear Regression

Lecture Notes on Linear Regression Lecture Notes on Lnear Regresson Feng L fl@sdueducn Shandong Unversty, Chna Lnear Regresson Problem In regresson problem, we am at predct a contnuous target value gven an nput feature vector We assume

More information

CS : Algorithms and Uncertainty Lecture 17 Date: October 26, 2016

CS : Algorithms and Uncertainty Lecture 17 Date: October 26, 2016 CS 29-128: Algorthms and Uncertanty Lecture 17 Date: October 26, 2016 Instructor: Nkhl Bansal Scrbe: Mchael Denns 1 Introducton In ths lecture we wll be lookng nto the secretary problem, and an nterestng

More information

Lecture 4. Instructor: Haipeng Luo

Lecture 4. Instructor: Haipeng Luo Lecture 4 Instructor: Hapeng Luo In the followng lectures, we focus on the expert problem and study more adaptve algorthms. Although Hedge s proven to be worst-case optmal, one may wonder how well t would

More information

2E Pattern Recognition Solutions to Introduction to Pattern Recognition, Chapter 2: Bayesian pattern classification

2E Pattern Recognition Solutions to Introduction to Pattern Recognition, Chapter 2: Bayesian pattern classification E395 - Pattern Recognton Solutons to Introducton to Pattern Recognton, Chapter : Bayesan pattern classfcaton Preface Ths document s a soluton manual for selected exercses from Introducton to Pattern Recognton

More information

ECE559VV Project Report

ECE559VV Project Report ECE559VV Project Report (Supplementary Notes Loc Xuan Bu I. MAX SUM-RATE SCHEDULING: THE UPLINK CASE We have seen (n the presentaton that, for downlnk (broadcast channels, the strategy maxmzng the sum-rate

More information

Lecture 10 Support Vector Machines II

Lecture 10 Support Vector Machines II Lecture 10 Support Vector Machnes II 22 February 2016 Taylor B. Arnold Yale Statstcs STAT 365/665 1/28 Notes: Problem 3 s posted and due ths upcomng Frday There was an early bug n the fake-test data; fxed

More information

Problem Set 9 Solutions

Problem Set 9 Solutions Desgn and Analyss of Algorthms May 4, 2015 Massachusetts Insttute of Technology 6.046J/18.410J Profs. Erk Demane, Srn Devadas, and Nancy Lynch Problem Set 9 Solutons Problem Set 9 Solutons Ths problem

More information

Equilibrium Analysis of the M/G/1 Queue

Equilibrium Analysis of the M/G/1 Queue Eulbrum nalyss of the M/G/ Queue Copyrght, Sanay K. ose. Mean nalyss usng Resdual Lfe rguments Secton 3.. nalyss usng an Imbedded Marov Chan pproach Secton 3. 3. Method of Supplementary Varables done later!

More information

Assortment Optimization under MNL

Assortment Optimization under MNL Assortment Optmzaton under MNL Haotan Song Aprl 30, 2017 1 Introducton The assortment optmzaton problem ams to fnd the revenue-maxmzng assortment of products to offer when the prces of products are fxed.

More information

Queueing Networks II Network Performance

Queueing Networks II Network Performance Queueng Networks II Network Performance Davd Tpper Assocate Professor Graduate Telecommuncatons and Networkng Program Unversty of Pttsburgh Sldes 6 Networks of Queues Many communcaton systems must be modeled

More information

Introduction to Continuous-Time Markov Chains and Queueing Theory

Introduction to Continuous-Time Markov Chains and Queueing Theory Introducton to Contnuous-Tme Markov Chans and Queueng Theory From DTMC to CTMC p p 1 p 12 1 2 k-1 k p k-1,k p k-1,k k+1 p 1 p 21 p k,k-1 p k,k-1 DTMC 1. Transtons at dscrete tme steps n=,1,2, 2. Past doesn

More information

Chapter 13: Multiple Regression

Chapter 13: Multiple Regression Chapter 13: Multple Regresson 13.1 Developng the multple-regresson Model The general model can be descrbed as: It smplfes for two ndependent varables: The sample ft parameter b 0, b 1, and b are used to

More information

Structure and Drive Paul A. Jensen Copyright July 20, 2003

Structure and Drive Paul A. Jensen Copyright July 20, 2003 Structure and Drve Paul A. Jensen Copyrght July 20, 2003 A system s made up of several operatons wth flow passng between them. The structure of the system descrbes the flow paths from nputs to outputs.

More information

Winter 2008 CS567 Stochastic Linear/Integer Programming Guest Lecturer: Xu, Huan

Winter 2008 CS567 Stochastic Linear/Integer Programming Guest Lecturer: Xu, Huan Wnter 2008 CS567 Stochastc Lnear/Integer Programmng Guest Lecturer: Xu, Huan Class 2: More Modelng Examples 1 Capacty Expanson Capacty expanson models optmal choces of the tmng and levels of nvestments

More information

COMPARISON OF SOME RELIABILITY CHARACTERISTICS BETWEEN REDUNDANT SYSTEMS REQUIRING SUPPORTING UNITS FOR THEIR OPERATIONS

COMPARISON OF SOME RELIABILITY CHARACTERISTICS BETWEEN REDUNDANT SYSTEMS REQUIRING SUPPORTING UNITS FOR THEIR OPERATIONS Avalable onlne at http://sck.org J. Math. Comput. Sc. 3 (3), No., 6-3 ISSN: 97-537 COMPARISON OF SOME RELIABILITY CHARACTERISTICS BETWEEN REDUNDANT SYSTEMS REQUIRING SUPPORTING UNITS FOR THEIR OPERATIONS

More information

Module 3 LOSSY IMAGE COMPRESSION SYSTEMS. Version 2 ECE IIT, Kharagpur

Module 3 LOSSY IMAGE COMPRESSION SYSTEMS. Version 2 ECE IIT, Kharagpur Module 3 LOSSY IMAGE COMPRESSION SYSTEMS Verson ECE IIT, Kharagpur Lesson 6 Theory of Quantzaton Verson ECE IIT, Kharagpur Instructonal Objectves At the end of ths lesson, the students should be able to:

More information

Generalized Linear Methods

Generalized Linear Methods Generalzed Lnear Methods 1 Introducton In the Ensemble Methods the general dea s that usng a combnaton of several weak learner one could make a better learner. More formally, assume that we have a set

More information

TCOM 501: Networking Theory & Fundamentals. Lecture 7 February 25, 2003 Prof. Yannis A. Korilis

TCOM 501: Networking Theory & Fundamentals. Lecture 7 February 25, 2003 Prof. Yannis A. Korilis TCOM 501: Networkng Theory & Fundamentals Lecture 7 February 25, 2003 Prof. Yanns A. Korls 1 7-2 Topcs Open Jackson Networks Network Flows State-Dependent Servce Rates Networks of Transmsson Lnes Klenrock

More information

Stanford University CS359G: Graph Partitioning and Expanders Handout 4 Luca Trevisan January 13, 2011

Stanford University CS359G: Graph Partitioning and Expanders Handout 4 Luca Trevisan January 13, 2011 Stanford Unversty CS359G: Graph Parttonng and Expanders Handout 4 Luca Trevsan January 3, 0 Lecture 4 In whch we prove the dffcult drecton of Cheeger s nequalty. As n the past lectures, consder an undrected

More information

Convergence of random processes

Convergence of random processes DS-GA 12 Lecture notes 6 Fall 216 Convergence of random processes 1 Introducton In these notes we study convergence of dscrete random processes. Ths allows to characterze phenomena such as the law of large

More information

For now, let us focus on a specific model of neurons. These are simplified from reality but can achieve remarkable results.

For now, let us focus on a specific model of neurons. These are simplified from reality but can achieve remarkable results. Neural Networks : Dervaton compled by Alvn Wan from Professor Jtendra Malk s lecture Ths type of computaton s called deep learnng and s the most popular method for many problems, such as computer vson

More information

Errors for Linear Systems

Errors for Linear Systems Errors for Lnear Systems When we solve a lnear system Ax b we often do not know A and b exactly, but have only approxmatons  and ˆb avalable. Then the best thng we can do s to solve ˆx ˆb exactly whch

More information

Notes on Frequency Estimation in Data Streams

Notes on Frequency Estimation in Data Streams Notes on Frequency Estmaton n Data Streams In (one of) the data streamng model(s), the data s a sequence of arrvals a 1, a 2,..., a m of the form a j = (, v) where s the dentty of the tem and belongs to

More information

Difference Equations

Difference Equations Dfference Equatons c Jan Vrbk 1 Bascs Suppose a sequence of numbers, say a 0,a 1,a,a 3,... s defned by a certan general relatonshp between, say, three consecutve values of the sequence, e.g. a + +3a +1

More information

Real-Time Systems. Multiprocessor scheduling. Multiprocessor scheduling. Multiprocessor scheduling

Real-Time Systems. Multiprocessor scheduling. Multiprocessor scheduling. Multiprocessor scheduling Real-Tme Systems Multprocessor schedulng Specfcaton Implementaton Verfcaton Multprocessor schedulng -- -- Global schedulng How are tasks assgned to processors? Statc assgnment The processor(s) used for

More information

Lecture 4: November 17, Part 1 Single Buffer Management

Lecture 4: November 17, Part 1 Single Buffer Management Lecturer: Ad Rosén Algorthms for the anagement of Networs Fall 2003-2004 Lecture 4: November 7, 2003 Scrbe: Guy Grebla Part Sngle Buffer anagement In the prevous lecture we taled about the Combned Input

More information

Markov Chain Monte Carlo (MCMC), Gibbs Sampling, Metropolis Algorithms, and Simulated Annealing Bioinformatics Course Supplement

Markov Chain Monte Carlo (MCMC), Gibbs Sampling, Metropolis Algorithms, and Simulated Annealing Bioinformatics Course Supplement Markov Chan Monte Carlo MCMC, Gbbs Samplng, Metropols Algorthms, and Smulated Annealng 2001 Bonformatcs Course Supplement SNU Bontellgence Lab http://bsnuackr/ Outlne! Markov Chan Monte Carlo MCMC! Metropols-Hastngs

More information

3.1 Expectation of Functions of Several Random Variables. )' be a k-dimensional discrete or continuous random vector, with joint PMF p (, E X E X1 E X

3.1 Expectation of Functions of Several Random Variables. )' be a k-dimensional discrete or continuous random vector, with joint PMF p (, E X E X1 E X Statstcs 1: Probablty Theory II 37 3 EPECTATION OF SEVERAL RANDOM VARIABLES As n Probablty Theory I, the nterest n most stuatons les not on the actual dstrbuton of a random vector, but rather on a number

More information

Kernel Methods and SVMs Extension

Kernel Methods and SVMs Extension Kernel Methods and SVMs Extenson The purpose of ths document s to revew materal covered n Machne Learnng 1 Supervsed Learnng regardng support vector machnes (SVMs). Ths document also provdes a general

More information

Additional Codes using Finite Difference Method. 1 HJB Equation for Consumption-Saving Problem Without Uncertainty

Additional Codes using Finite Difference Method. 1 HJB Equation for Consumption-Saving Problem Without Uncertainty Addtonal Codes usng Fnte Dfference Method Benamn Moll 1 HJB Equaton for Consumpton-Savng Problem Wthout Uncertanty Before consderng the case wth stochastc ncome n http://www.prnceton.edu/~moll/ HACTproect/HACT_Numercal_Appendx.pdf,

More information

Applied Stochastic Processes

Applied Stochastic Processes STAT455/855 Fall 23 Appled Stochastc Processes Fnal Exam, Bref Solutons 1. (15 marks) (a) (7 marks) The dstrbuton of Y s gven by ( ) ( ) y 2 1 5 P (Y y) for y 2, 3,... The above follows because each of

More information

Simultaneous Optimization of Berth Allocation, Quay Crane Assignment and Quay Crane Scheduling Problems in Container Terminals

Simultaneous Optimization of Berth Allocation, Quay Crane Assignment and Quay Crane Scheduling Problems in Container Terminals Smultaneous Optmzaton of Berth Allocaton, Quay Crane Assgnment and Quay Crane Schedulng Problems n Contaner Termnals Necat Aras, Yavuz Türkoğulları, Z. Caner Taşkın, Kuban Altınel Abstract In ths work,

More information

CHAPTER 5 NUMERICAL EVALUATION OF DYNAMIC RESPONSE

CHAPTER 5 NUMERICAL EVALUATION OF DYNAMIC RESPONSE CHAPTER 5 NUMERICAL EVALUATION OF DYNAMIC RESPONSE Analytcal soluton s usually not possble when exctaton vares arbtrarly wth tme or f the system s nonlnear. Such problems can be solved by numercal tmesteppng

More information

Module 9. Lecture 6. Duality in Assignment Problems

Module 9. Lecture 6. Duality in Assignment Problems Module 9 1 Lecture 6 Dualty n Assgnment Problems In ths lecture we attempt to answer few other mportant questons posed n earler lecture for (AP) and see how some of them can be explaned through the concept

More information

Econ107 Applied Econometrics Topic 3: Classical Model (Studenmund, Chapter 4)

Econ107 Applied Econometrics Topic 3: Classical Model (Studenmund, Chapter 4) I. Classcal Assumptons Econ7 Appled Econometrcs Topc 3: Classcal Model (Studenmund, Chapter 4) We have defned OLS and studed some algebrac propertes of OLS. In ths topc we wll study statstcal propertes

More information

ANSWERS. Problem 1. and the moment generating function (mgf) by. defined for any real t. Use this to show that E( U) var( U)

ANSWERS. Problem 1. and the moment generating function (mgf) by. defined for any real t. Use this to show that E( U) var( U) Econ 413 Exam 13 H ANSWERS Settet er nndelt 9 deloppgaver, A,B,C, som alle anbefales å telle lkt for å gøre det ltt lettere å stå. Svar er gtt . Unfortunately, there s a prntng error n the hnt of

More information

Minimisation of the Average Response Time in a Cluster of Servers

Minimisation of the Average Response Time in a Cluster of Servers Mnmsaton of the Average Response Tme n a Cluster of Servers Valery Naumov Abstract: In ths paper, we consder task assgnment problem n a cluster of servers. We show that optmal statc task assgnment s tantamount

More information

Markov Chain Monte Carlo Lecture 6

Markov Chain Monte Carlo Lecture 6 where (x 1,..., x N ) X N, N s called the populaton sze, f(x) f (x) for at least one {1, 2,..., N}, and those dfferent from f(x) are called the tral dstrbutons n terms of mportance samplng. Dfferent ways

More information

Temperature. Chapter Heat Engine

Temperature. Chapter Heat Engine Chapter 3 Temperature In prevous chapters of these notes we ntroduced the Prncple of Maxmum ntropy as a technque for estmatng probablty dstrbutons consstent wth constrants. In Chapter 9 we dscussed the

More information

4 Analysis of Variance (ANOVA) 5 ANOVA. 5.1 Introduction. 5.2 Fixed Effects ANOVA

4 Analysis of Variance (ANOVA) 5 ANOVA. 5.1 Introduction. 5.2 Fixed Effects ANOVA 4 Analyss of Varance (ANOVA) 5 ANOVA 51 Introducton ANOVA ANOVA s a way to estmate and test the means of multple populatons We wll start wth one-way ANOVA If the populatons ncluded n the study are selected

More information

Global Sensitivity. Tuesday 20 th February, 2018

Global Sensitivity. Tuesday 20 th February, 2018 Global Senstvty Tuesday 2 th February, 28 ) Local Senstvty Most senstvty analyses [] are based on local estmates of senstvty, typcally by expandng the response n a Taylor seres about some specfc values

More information

Copyright 2017 by Taylor Enterprises, Inc., All Rights Reserved. Adjusted Control Limits for U Charts. Dr. Wayne A. Taylor

Copyright 2017 by Taylor Enterprises, Inc., All Rights Reserved. Adjusted Control Limits for U Charts. Dr. Wayne A. Taylor Taylor Enterprses, Inc. Adjusted Control Lmts for U Charts Copyrght 207 by Taylor Enterprses, Inc., All Rghts Reserved. Adjusted Control Lmts for U Charts Dr. Wayne A. Taylor Abstract: U charts are used

More information

Analysis of Queuing Delay in Multimedia Gateway Call Routing

Analysis of Queuing Delay in Multimedia Gateway Call Routing Analyss of Queung Delay n Multmeda ateway Call Routng Qwe Huang UTtarcom Inc, 33 Wood Ave. outh Iseln, NJ 08830, U..A Errol Lloyd Computer Informaton cences Department, Unv. of Delaware, Newark, DE 976,

More information

CS-433: Simulation and Modeling Modeling and Probability Review

CS-433: Simulation and Modeling Modeling and Probability Review CS-433: Smulaton and Modelng Modelng and Probablty Revew Exercse 1. (Probablty of Smple Events) Exercse 1.1 The owner of a camera shop receves a shpment of fve cameras from a camera manufacturer. Unknown

More information

Chapter 5. Solution of System of Linear Equations. Module No. 6. Solution of Inconsistent and Ill Conditioned Systems

Chapter 5. Solution of System of Linear Equations. Module No. 6. Solution of Inconsistent and Ill Conditioned Systems Numercal Analyss by Dr. Anta Pal Assstant Professor Department of Mathematcs Natonal Insttute of Technology Durgapur Durgapur-713209 emal: anta.bue@gmal.com 1 . Chapter 5 Soluton of System of Lnear Equatons

More information

A new construction of 3-separable matrices via an improved decoding of Macula s construction

A new construction of 3-separable matrices via an improved decoding of Macula s construction Dscrete Optmzaton 5 008 700 704 Contents lsts avalable at ScenceDrect Dscrete Optmzaton journal homepage: wwwelsevercom/locate/dsopt A new constructon of 3-separable matrces va an mproved decodng of Macula

More information

Embedded Systems. 4. Aperiodic and Periodic Tasks

Embedded Systems. 4. Aperiodic and Periodic Tasks Embedded Systems 4. Aperodc and Perodc Tasks Lothar Thele 4-1 Contents of Course 1. Embedded Systems Introducton 2. Software Introducton 7. System Components 10. Models 3. Real-Tme Models 4. Perodc/Aperodc

More information

= z 20 z n. (k 20) + 4 z k = 4

= z 20 z n. (k 20) + 4 z k = 4 Problem Set #7 solutons 7.2.. (a Fnd the coeffcent of z k n (z + z 5 + z 6 + z 7 + 5, k 20. We use the known seres expanson ( n+l ( z l l z n below: (z + z 5 + z 6 + z 7 + 5 (z 5 ( + z + z 2 + z + 5 5

More information

Linear Approximation with Regularization and Moving Least Squares

Linear Approximation with Regularization and Moving Least Squares Lnear Approxmaton wth Regularzaton and Movng Least Squares Igor Grešovn May 007 Revson 4.6 (Revson : March 004). 5 4 3 0.5 3 3.5 4 Contents: Lnear Fttng...4. Weghted Least Squares n Functon Approxmaton...

More information

Feature Selection: Part 1

Feature Selection: Part 1 CSE 546: Machne Learnng Lecture 5 Feature Selecton: Part 1 Instructor: Sham Kakade 1 Regresson n the hgh dmensonal settng How do we learn when the number of features d s greater than the sample sze n?

More information

Tracking with Kalman Filter

Tracking with Kalman Filter Trackng wth Kalman Flter Scott T. Acton Vrgna Image and Vdeo Analyss (VIVA), Charles L. Brown Department of Electrcal and Computer Engneerng Department of Bomedcal Engneerng Unversty of Vrgna, Charlottesvlle,

More information

More metrics on cartesian products

More metrics on cartesian products More metrcs on cartesan products If (X, d ) are metrc spaces for 1 n, then n Secton II4 of the lecture notes we defned three metrcs on X whose underlyng topologes are the product topology The purpose of

More information

NUMERICAL DIFFERENTIATION

NUMERICAL DIFFERENTIATION NUMERICAL DIFFERENTIATION 1 Introducton Dfferentaton s a method to compute the rate at whch a dependent output y changes wth respect to the change n the ndependent nput x. Ths rate of change s called the

More information

College of Computer & Information Science Fall 2009 Northeastern University 20 October 2009

College of Computer & Information Science Fall 2009 Northeastern University 20 October 2009 College of Computer & Informaton Scence Fall 2009 Northeastern Unversty 20 October 2009 CS7880: Algorthmc Power Tools Scrbe: Jan Wen and Laura Poplawsk Lecture Outlne: Prmal-dual schema Network Desgn:

More information

Hidden Markov Models & The Multivariate Gaussian (10/26/04)

Hidden Markov Models & The Multivariate Gaussian (10/26/04) CS281A/Stat241A: Statstcal Learnng Theory Hdden Markov Models & The Multvarate Gaussan (10/26/04) Lecturer: Mchael I. Jordan Scrbes: Jonathan W. Hu 1 Hdden Markov Models As a bref revew, hdden Markov models

More information

COS 521: Advanced Algorithms Game Theory and Linear Programming

COS 521: Advanced Algorithms Game Theory and Linear Programming COS 521: Advanced Algorthms Game Theory and Lnear Programmng Moses Charkar February 27, 2013 In these notes, we ntroduce some basc concepts n game theory and lnear programmng (LP). We show a connecton

More information

LINEAR REGRESSION ANALYSIS. MODULE IX Lecture Multicollinearity

LINEAR REGRESSION ANALYSIS. MODULE IX Lecture Multicollinearity LINEAR REGRESSION ANALYSIS MODULE IX Lecture - 30 Multcollnearty Dr. Shalabh Department of Mathematcs and Statstcs Indan Insttute of Technology Kanpur 2 Remedes for multcollnearty Varous technques have

More information

Lecture 12: Discrete Laplacian

Lecture 12: Discrete Laplacian Lecture 12: Dscrete Laplacan Scrbe: Tanye Lu Our goal s to come up wth a dscrete verson of Laplacan operator for trangulated surfaces, so that we can use t n practce to solve related problems We are mostly

More information

A PROBABILITY-DRIVEN SEARCH ALGORITHM FOR SOLVING MULTI-OBJECTIVE OPTIMIZATION PROBLEMS

A PROBABILITY-DRIVEN SEARCH ALGORITHM FOR SOLVING MULTI-OBJECTIVE OPTIMIZATION PROBLEMS HCMC Unversty of Pedagogy Thong Nguyen Huu et al. A PROBABILITY-DRIVEN SEARCH ALGORITHM FOR SOLVING MULTI-OBJECTIVE OPTIMIZATION PROBLEMS Thong Nguyen Huu and Hao Tran Van Department of mathematcs-nformaton,

More information

Boostrapaggregating (Bagging)

Boostrapaggregating (Bagging) Boostrapaggregatng (Baggng) An ensemble meta-algorthm desgned to mprove the stablty and accuracy of machne learnng algorthms Can be used n both regresson and classfcaton Reduces varance and helps to avod

More information

The optimal delay of the second test is therefore approximately 210 hours earlier than =2.

The optimal delay of the second test is therefore approximately 210 hours earlier than =2. THE IEC 61508 FORMULAS 223 The optmal delay of the second test s therefore approxmately 210 hours earler than =2. 8.4 The IEC 61508 Formulas IEC 61508-6 provdes approxmaton formulas for the PF for smple

More information

U.C. Berkeley CS294: Beyond Worst-Case Analysis Luca Trevisan September 5, 2017

U.C. Berkeley CS294: Beyond Worst-Case Analysis Luca Trevisan September 5, 2017 U.C. Berkeley CS94: Beyond Worst-Case Analyss Handout 4s Luca Trevsan September 5, 07 Summary of Lecture 4 In whch we ntroduce semdefnte programmng and apply t to Max Cut. Semdefnte Programmng Recall that

More information

Some modelling aspects for the Matlab implementation of MMA

Some modelling aspects for the Matlab implementation of MMA Some modellng aspects for the Matlab mplementaton of MMA Krster Svanberg krlle@math.kth.se Optmzaton and Systems Theory Department of Mathematcs KTH, SE 10044 Stockholm September 2004 1. Consdered optmzaton

More information

Linear Regression Analysis: Terminology and Notation

Linear Regression Analysis: Terminology and Notation ECON 35* -- Secton : Basc Concepts of Regresson Analyss (Page ) Lnear Regresson Analyss: Termnology and Notaton Consder the generc verson of the smple (two-varable) lnear regresson model. It s represented

More information

x = , so that calculated

x = , so that calculated Stat 4, secton Sngle Factor ANOVA notes by Tm Plachowsk n chapter 8 we conducted hypothess tests n whch we compared a sngle sample s mean or proporton to some hypotheszed value Chapter 9 expanded ths to

More information

Foundations of Arithmetic

Foundations of Arithmetic Foundatons of Arthmetc Notaton We shall denote the sum and product of numbers n the usual notaton as a 2 + a 2 + a 3 + + a = a, a 1 a 2 a 3 a = a The notaton a b means a dvdes b,.e. ac = b where c s an

More information

Grover s Algorithm + Quantum Zeno Effect + Vaidman

Grover s Algorithm + Quantum Zeno Effect + Vaidman Grover s Algorthm + Quantum Zeno Effect + Vadman CS 294-2 Bomb 10/12/04 Fall 2004 Lecture 11 Grover s algorthm Recall that Grover s algorthm for searchng over a space of sze wors as follows: consder the

More information

EEL 6266 Power System Operation and Control. Chapter 3 Economic Dispatch Using Dynamic Programming

EEL 6266 Power System Operation and Control. Chapter 3 Economic Dispatch Using Dynamic Programming EEL 6266 Power System Operaton and Control Chapter 3 Economc Dspatch Usng Dynamc Programmng Pecewse Lnear Cost Functons Common practce many utltes prefer to represent ther generator cost functons as sngle-

More information

The Geometry of Logit and Probit

The Geometry of Logit and Probit The Geometry of Logt and Probt Ths short note s meant as a supplement to Chapters and 3 of Spatal Models of Parlamentary Votng and the notaton and reference to fgures n the text below s to those two chapters.

More information

A FAST HEURISTIC FOR TASKS ASSIGNMENT IN MANYCORE SYSTEMS WITH VOLTAGE-FREQUENCY ISLANDS

A FAST HEURISTIC FOR TASKS ASSIGNMENT IN MANYCORE SYSTEMS WITH VOLTAGE-FREQUENCY ISLANDS Shervn Haamn A FAST HEURISTIC FOR TASKS ASSIGNMENT IN MANYCORE SYSTEMS WITH VOLTAGE-FREQUENCY ISLANDS INTRODUCTION Increasng computatons n applcatons has led to faster processng. o Use more cores n a chp

More information

CHAPTER 17 Amortized Analysis

CHAPTER 17 Amortized Analysis CHAPTER 7 Amortzed Analyss In an amortzed analyss, the tme requred to perform a sequence of data structure operatons s averaged over all the operatons performed. It can be used to show that the average

More information

Numerical Heat and Mass Transfer

Numerical Heat and Mass Transfer Master degree n Mechancal Engneerng Numercal Heat and Mass Transfer 06-Fnte-Dfference Method (One-dmensonal, steady state heat conducton) Fausto Arpno f.arpno@uncas.t Introducton Why we use models and

More information

Lecture 12: Classification

Lecture 12: Classification Lecture : Classfcaton g Dscrmnant functons g The optmal Bayes classfer g Quadratc classfers g Eucldean and Mahalanobs metrcs g K Nearest Neghbor Classfers Intellgent Sensor Systems Rcardo Guterrez-Osuna

More information

Outline. Communication. Bellman Ford Algorithm. Bellman Ford Example. Bellman Ford Shortest Path [1]

Outline. Communication. Bellman Ford Algorithm. Bellman Ford Example. Bellman Ford Shortest Path [1] DYNAMIC SHORTEST PATH SEARCH AND SYNCHRONIZED TASK SWITCHING Jay Wagenpfel, Adran Trachte 2 Outlne Shortest Communcaton Path Searchng Bellmann Ford algorthm Algorthm for dynamc case Modfcatons to our algorthm

More information

Copyright 2017 by Taylor Enterprises, Inc., All Rights Reserved. Adjusted Control Limits for P Charts. Dr. Wayne A. Taylor

Copyright 2017 by Taylor Enterprises, Inc., All Rights Reserved. Adjusted Control Limits for P Charts. Dr. Wayne A. Taylor Taylor Enterprses, Inc. Control Lmts for P Charts Copyrght 2017 by Taylor Enterprses, Inc., All Rghts Reserved. Control Lmts for P Charts Dr. Wayne A. Taylor Abstract: P charts are used for count data

More information

Negative Binomial Regression

Negative Binomial Regression STATGRAPHICS Rev. 9/16/2013 Negatve Bnomal Regresson Summary... 1 Data Input... 3 Statstcal Model... 3 Analyss Summary... 4 Analyss Optons... 7 Plot of Ftted Model... 8 Observed Versus Predcted... 10 Predctons...

More information

Limited Dependent Variables

Limited Dependent Variables Lmted Dependent Varables. What f the left-hand sde varable s not a contnuous thng spread from mnus nfnty to plus nfnty? That s, gven a model = f (, β, ε, where a. s bounded below at zero, such as wages

More information

Appendix B: Resampling Algorithms

Appendix B: Resampling Algorithms 407 Appendx B: Resamplng Algorthms A common problem of all partcle flters s the degeneracy of weghts, whch conssts of the unbounded ncrease of the varance of the mportance weghts ω [ ] of the partcles

More information

Annexes. EC.1. Cycle-base move illustration. EC.2. Problem Instances

Annexes. EC.1. Cycle-base move illustration. EC.2. Problem Instances ec Annexes Ths Annex frst llustrates a cycle-based move n the dynamc-block generaton tabu search. It then dsplays the characterstcs of the nstance sets, followed by detaled results of the parametercalbraton

More information

Lecture 4: Universal Hash Functions/Streaming Cont d

Lecture 4: Universal Hash Functions/Streaming Cont d CSE 5: Desgn and Analyss of Algorthms I Sprng 06 Lecture 4: Unversal Hash Functons/Streamng Cont d Lecturer: Shayan Oves Gharan Aprl 6th Scrbe: Jacob Schreber Dsclamer: These notes have not been subjected

More information

Lecture 14: Bandits with Budget Constraints

Lecture 14: Bandits with Budget Constraints IEOR 8100-001: Learnng and Optmzaton for Sequental Decson Makng 03/07/16 Lecture 14: andts wth udget Constrants Instructor: Shpra Agrawal Scrbed by: Zhpeng Lu 1 Problem defnton In the regular Mult-armed

More information

Ensemble Methods: Boosting

Ensemble Methods: Boosting Ensemble Methods: Boostng Ncholas Ruozz Unversty of Texas at Dallas Based on the sldes of Vbhav Gogate and Rob Schapre Last Tme Varance reducton va baggng Generate new tranng data sets by samplng wth replacement

More information

A Robust Method for Calculating the Correlation Coefficient

A Robust Method for Calculating the Correlation Coefficient A Robust Method for Calculatng the Correlaton Coeffcent E.B. Nven and C. V. Deutsch Relatonshps between prmary and secondary data are frequently quantfed usng the correlaton coeffcent; however, the tradtonal

More information

LOW BIAS INTEGRATED PATH ESTIMATORS. James M. Calvin

LOW BIAS INTEGRATED PATH ESTIMATORS. James M. Calvin Proceedngs of the 007 Wnter Smulaton Conference S G Henderson, B Bller, M-H Hseh, J Shortle, J D Tew, and R R Barton, eds LOW BIAS INTEGRATED PATH ESTIMATORS James M Calvn Department of Computer Scence

More information

Lectures - Week 4 Matrix norms, Conditioning, Vector Spaces, Linear Independence, Spanning sets and Basis, Null space and Range of a Matrix

Lectures - Week 4 Matrix norms, Conditioning, Vector Spaces, Linear Independence, Spanning sets and Basis, Null space and Range of a Matrix Lectures - Week 4 Matrx norms, Condtonng, Vector Spaces, Lnear Independence, Spannng sets and Bass, Null space and Range of a Matrx Matrx Norms Now we turn to assocatng a number to each matrx. We could

More information

THE SUMMATION NOTATION Ʃ

THE SUMMATION NOTATION Ʃ Sngle Subscrpt otaton THE SUMMATIO OTATIO Ʃ Most of the calculatons we perform n statstcs are repettve operatons on lsts of numbers. For example, we compute the sum of a set of numbers, or the sum of the

More information

Bayesian predictive Configural Frequency Analysis

Bayesian predictive Configural Frequency Analysis Psychologcal Test and Assessment Modelng, Volume 54, 2012 (3), 285-292 Bayesan predctve Confgural Frequency Analyss Eduardo Gutérrez-Peña 1 Abstract Confgural Frequency Analyss s a method for cell-wse

More information

Lecture Randomized Load Balancing strategies and their analysis. Probability concepts include, counting, the union bound, and Chernoff bounds.

Lecture Randomized Load Balancing strategies and their analysis. Probability concepts include, counting, the union bound, and Chernoff bounds. U.C. Berkeley CS273: Parallel and Dstrbuted Theory Lecture 1 Professor Satsh Rao August 26, 2010 Lecturer: Satsh Rao Last revsed September 2, 2010 Lecture 1 1 Course Outlne We wll cover a samplng of the

More information

18.1 Introduction and Recap

18.1 Introduction and Recap CS787: Advanced Algorthms Scrbe: Pryananda Shenoy and Shjn Kong Lecturer: Shuch Chawla Topc: Streamng Algorthmscontnued) Date: 0/26/2007 We contnue talng about streamng algorthms n ths lecture, ncludng

More information

MMA and GCMMA two methods for nonlinear optimization

MMA and GCMMA two methods for nonlinear optimization MMA and GCMMA two methods for nonlnear optmzaton Krster Svanberg Optmzaton and Systems Theory, KTH, Stockholm, Sweden. krlle@math.kth.se Ths note descrbes the algorthms used n the author s 2007 mplementatons

More information

j) = 1 (note sigma notation) ii. Continuous random variable (e.g. Normal distribution) 1. density function: f ( x) 0 and f ( x) dx = 1

j) = 1 (note sigma notation) ii. Continuous random variable (e.g. Normal distribution) 1. density function: f ( x) 0 and f ( x) dx = 1 Random varables Measure of central tendences and varablty (means and varances) Jont densty functons and ndependence Measures of assocaton (covarance and correlaton) Interestng result Condtonal dstrbutons

More information

4DVAR, according to the name, is a four-dimensional variational method.

4DVAR, according to the name, is a four-dimensional variational method. 4D-Varatonal Data Assmlaton (4D-Var) 4DVAR, accordng to the name, s a four-dmensonal varatonal method. 4D-Var s actually a drect generalzaton of 3D-Var to handle observatons that are dstrbuted n tme. The

More information

STAT 511 FINAL EXAM NAME Spring 2001

STAT 511 FINAL EXAM NAME Spring 2001 STAT 5 FINAL EXAM NAME Sprng Instructons: Ths s a closed book exam. No notes or books are allowed. ou may use a calculator but you are not allowed to store notes or formulas n the calculator. Please wrte

More information

princeton univ. F 17 cos 521: Advanced Algorithm Design Lecture 7: LP Duality Lecturer: Matt Weinberg

princeton univ. F 17 cos 521: Advanced Algorithm Design Lecture 7: LP Duality Lecturer: Matt Weinberg prnceton unv. F 17 cos 521: Advanced Algorthm Desgn Lecture 7: LP Dualty Lecturer: Matt Wenberg Scrbe: LP Dualty s an extremely useful tool for analyzng structural propertes of lnear programs. Whle there

More information

Suggested solutions for the exam in SF2863 Systems Engineering. June 12,

Suggested solutions for the exam in SF2863 Systems Engineering. June 12, Suggested solutons for the exam n SF2863 Systems Engneerng. June 12, 2012 14.00 19.00 Examner: Per Enqvst, phone: 790 62 98 1. We can thnk of the farm as a Jackson network. The strawberry feld s modelled

More information

An Admission Control Algorithm in Cloud Computing Systems

An Admission Control Algorithm in Cloud Computing Systems An Admsson Control Algorthm n Cloud Computng Systems Authors: Frank Yeong-Sung Ln Department of Informaton Management Natonal Tawan Unversty Tape, Tawan, R.O.C. ysln@m.ntu.edu.tw Yngje Lan Management Scence

More information

COMPLETE BUFFER SHARING IN ATM NETWORKS UNDER BURSTY ARRIVALS

COMPLETE BUFFER SHARING IN ATM NETWORKS UNDER BURSTY ARRIVALS COMPLETE BUFFER SHARING WITH PUSHOUT THRESHOLDS IN ATM NETWORKS UNDER BURSTY ARRIVALS Ozgur Aras and Tugrul Dayar Abstract. Broadband Integrated Servces Dgtal Networks (B{ISDNs) are to support multple

More information

Comparison of the Population Variance Estimators. of 2-Parameter Exponential Distribution Based on. Multiple Criteria Decision Making Method

Comparison of the Population Variance Estimators. of 2-Parameter Exponential Distribution Based on. Multiple Criteria Decision Making Method Appled Mathematcal Scences, Vol. 7, 0, no. 47, 07-0 HIARI Ltd, www.m-hkar.com Comparson of the Populaton Varance Estmators of -Parameter Exponental Dstrbuton Based on Multple Crtera Decson Makng Method

More information