Improving Schedulability of Fixed-Priority Real-Time Systems using Shapers

Size: px
Start display at page:

Download "Improving Schedulability of Fixed-Priority Real-Time Systems using Shapers"

Transcription

1 Improvng Schedulablty of Fxed-Prorty Real-Tme Systems usng Shapers Lnh T.X. Phan Insup Lee Department of Computer and Informaton Scences, Unversty of Pennsylvana Emal: {lnhphan, Abstract In ths paper, we ntroduce a technque for mprovng the schedulablty of real-tme embedded systems wth fxedprorty schedulng. Our technque uses shapers to reduce the resource nterference between hgher-prorty and lower-prorty tasks, and thus enables more lower-prorty tasks to be scheduled. We present a closed-form soluton for the optmal greedy shaper for perodc tasks wth jtter, as well as a schedulablty condton for tasks n the presence of shapers. We also dscuss two applcatons of greedy shapers: In compostonal schedulng frameworks, shapers can help optmze the resource nterfaces of real-tme components, and n mxed-crtcalty systems, they can reduce deadlne msses of low-crtcalty tasks whle preservng schedulablty of hgh-crtcalty tasks, even wth lower prortes. We demonstrate the utlty of our technque through an evaluaton based on randomly generated workloads. I. INTRODUCTION For the past several decades, fxed-prorty (FP) schedulng has been one of the most commonly used schedulng algorthms n safety-crtcal real-tme embedded systems, partly due to ts flexblty, ts smple run-tme mechansm, and ts small overhead [11]. However, n a fxed-prorty system, low-prorty tasks often experence resource nterference from hgherprorty tasks, whch leads to long response tmes (compared to systems that use dynamc schedulers, such as Earlest Deadlne Frst) and requres more resources to guarantee that the system s schedulable. Hence, reducng nterference from hgh-prorty tasks s crtcal to mprovng the schedulablty and optmzng the resource requrements of the system. In fully preemptve FP, mnmzng the nterference due to preempton also helps reduce cache-related overheads and energy consumpton [7]. Several technques for mprovng resource nterference n FP systems have been proposed (see e.g., [5] [7], [13], [23], [24]); however, most of these technques assume a strctly perodc task model. Ths assumpton s overly conservatve for many reactve embedded systems, where tasks often exhbt jtter,.e., devatons from true perodcty. Ths jtter typcally comes from the release-delay overheads nduced by tck-drven schedulng [18], executon of nterrupt servce routnes [4], or I/O overheads. Other sources of jtter nclude delays caused by schedulng, data dependences, and communcaton, especally n a dstrbuted settng. For example, n ARINC avoncs systems [2], tasks n dfferent schedulng parttons are connected over a swtched Ethernet; due to network delay, tasks n a Ths research was supported n part by the ARO grant W911NF , NSF grants CNS and CPS , and MKE (The Mnstry of Knowledge Economy), Korea, under the Global Collaboratve R&D program supervsed by the KIAT (M2389). Ths s the author s verson, whch fxes an error n Example 2 n the offcal IEEE verson. partton are not always released strctly perodcally, but wth a certan jtter. Automotve networks are another example: here, sensor data are sampled at a constant rate, but the results often pass through a seres of electronc control unts (ECUs) and the bus before arrvng at a gven ECU. Snce the resource of each component s often shared among multple tasks, schedulng and task executon wthn a component can delay the nput data for a varable amount of tme, whch results n jttery output. If ths output s then used to actvate the successor task n the next component, ths task wll tself be released n a jttery manner or (when the jtter exceeds the length of a perod) even n bursts. One smple approach to dealng wth jtter s to transform each task wth a jttery release pattern nto a new perodc/sporadc task wth a shorter perod [4]. Exstng nterference reducton technques for perodc tasks (e.g., [5] [7], [13], [23], [24]) can then be appled to the transformed task sets. Whle ths method s safe, the transformaton can lead to overly pessmstc schedulablty analyss results. In addton, the resultng smaller perods (of hgher-prorty tasks) exacerbate the resource nterference wth lower-prorty tasks, whch can dmnsh or even cancel out the benefts of the nterference reducton technques. Further, these technques modfy the behavor of FP to reduce the preempton overheads, whch often requres fne-graned nformaton about the tasks code structure or complex computaton of preempton attrbutes (e.g., [6], [23], [24]). A technque that does not change the FP behavor or tasks attrbutes was proposed n [17]; however, t requres the use of CPU frequency scalng, whch may not be avalable n all systems. In ths paper, we propose a technque based on shapng [3] to mprove the schedulablty of FP systems that contan perodc tasks wth jtter. Our key observaton s that, n settngs where tasks exhbt jtter, the resource nterference of hgher-prorty tasks on the lower-prorty ones s much hgher than n a strctly perodc settng. Typcally, the larger the jtter of a hgher-prorty task, the hgher the resource nterference t mposes on lower-prorty tasks. By usng shapers to reduce the maxmum jtter/burst, we can reduce the nterference, and thus enable more lower-prorty tasks to be scheduled. In ths paper, we focus on the use of greedy shapers, snce they have a smple representaton (as arrval curves [3]), and they preserve the worst-case output arrval patterns and can therefore be combned wth component-based analyss frameworks for dstrbuted archtectures (e.g., [22]). Our technque based on greedy shapng also preserves both the fxed-prorty scheduler and the tasks parameters, so t can be

2 ntegrated nto many exstng fxed-prorty systems (e.g., wth Deadlne Monotonc and (D J)-monotonc [25] schedulers). Greedy shapers were frst ntroduced n the context of communcaton networks [3]. They are commonly used to ensure that packets are sent at regular ntervals rather than n bursts, whch results n lower queueng delays. In ths settng, schedulablty or nterference wth lower-prorty flows are not prmary concerns, so the choce of shapng functons s straght-forward: a greedy shaper can use any functon that s at least equal to the arrval functon of the source flow [3]. In safety-crtcal real-tme embedded systems, however, schedulablty s crucal, so better shapng functons are needed to meet the system s tmng and resource constrants. Contrbutons. Ths paper makes the followng contrbutons: We propose the use of shapng to reduce resource nterference between tasks wth jttery release patterns, whch mproves schedulablty and mnmzes the total resource demands of the system (Secton III). We ntroduce a method for computng the optmal shaper for the perodc-wth-jtter task model (whch mnmzes a task s resource nterference on lower-prorty tasks wthout affectng ts schedulablty), and we ntegrate shapng nto the schedulablty condton (Sectons IV and V). We dscuss two applcatons of shapers. Frst, we show how shapers can be ntegrated wth compostonal schedulng frameworks, and we analyze ther effect on the components nterfaces (Secton VI). Second, we show that n mxed-crtcalty systems, shapers can preserve schedulablty of hgh-crtcalty tasks whle mnmzng deadlne msses of low-crtcalty tasks (Secton VII). We valdate our technque wth an evaluaton usng a varety of real-tme workloads. The results show that our proposed technque can reduce the system s deadlne mss rato by up to 35%, and t reduces components nterface bandwdth by up to 33% compared to a reference system wthout shapers (Secton VIII). Related work. To the best of our knowledge, ths work s the frst to use shapng to reduce resource nterference n FP systems. Shapng was orgnally proposed for traffc shapng n communcaton networks [3]. Wandeler et al. [19], [2] extended t to the real-tme doman but analyzes the end-toend delay and buffer requrements of exstng shapers, rather than desgnng new ones. Other work has desgned shapers for optmzng specfc metrcs; for nstance, Kumar et al. [9] showed how to compute a shaper that optmzes on-chp peak temperature. However, Kumar s approach to shaper desgn s specfc to the EDF schedulng, and s not applcable n an FP settng for two reasons. Frst, optmalty s proven assumng that the processor s fully avalable to the output jobs of the shaper; ths s not the case n FP systems, where lower-prorty tasks do not receve the full capacty of the processor. Second, Kumar uses the shaper to shape the combned demand of all tasks n the system, but there s currently no technque for computng the total demand of tasks wth dfferent deadlnes and WCETs that are scheduled under FP. There s other work that has some smlartes to shapng. Sun and Lu [16] ntroduced the release guard protocol to release subtasks of an end-to-end task perodcally, whch s a specal form of greedy shaper. Rchter et al. [14] proposed an event adaptaton functon (EAF), whch transforms an event stream nto another that conforms to a gven model. If an EAF s gven a perodc model, t effectvely acts as a shaper; the key challenge we solve n ths paper s to desgn the model such that t mproves schedulablty. At a hgh level, shapers are also smlar to servers, whch are commonly used to schedule aperodc tasks together wth perodc tasks [12]. Servers do not guarantee any propertes by themselves, other than a lmt on how much of the resource s used by the tasks they encapsulate; n partcular, they do not consder the schedulablty of the tasks they contan. Servers are a general concept, and n theory one could desgn a server that provdes the same propertes as a shaper, but then the server would effectvely become a shaper, and ts desgn would requre an analyss smlar to the one we propose here. II. BACKGROUND Task model. The system conssts of N ndependent perodc tasks wth jtter (see e.g., [1], [18]), whch are scheduled under preemptve FP on a unprocessor. Each task T s characterzed by (P,J,E,D ), wth < E mn(p,d ), where P,J,E and D are non-negatve real numbers that represent the task s perod, jtter, worst-case executon tme (WCET) and relatve deadlne. The jtter J s the maxmum delay between the vrtual deal perodc release tme of a job (of T ) and ts actual release tme. All tasks have hard deadlnes; the absolute deadlne of a job of T s ts actual release tme plus D. P P J an deal perodc release pont J (jtter wndow) frst release Fg. 1: A sample release pattern of T wth P = 8, J = 6. Fgure 1 llustrates a sample release pattern of a task. We assume that the scheduler mantans a ready queue for each task, whch contans all jobs of the task that are ready for schedulng, and we wrte HP(T ) (resp. LP(T )) to denote the set of all tasks wth a hgher (resp. lower) prorty than T. Modelng resource demands. The release patterns of a task can be modeled as an arrval functon, whch specfes the maxmum number of jobs that are released over any (left-open or rght-open) tme nterval of length t, for all t. Let R + be the set of non-negatve real numbers. The arrval functon of a task T wth perod P and jtter J s α : R + N, where t + J α () =, and α (t) =, t >. (1) The number of executon unts requested by a task over any tme nterval of a gven length can then be modeled by ts request bound functon (RBF). The RBF of a task T wth arrval functon α (t) and WCET E s gven by: P tme rbf (t) = E α (t), t. (2)

3 Smlarly, the mnmum executon unts that must be gven to a task to ensure ts schedulablty s modeled by a demand bound functon (DBF), whch specfes, for each t, the maxmum number of executon unts requred by all jobs that are released and that have deadlnes wthn an nterval of length t. The DBF of a task T wth relatve deadlne D and RBF rbf (t) s: dbf (t) = max {, rbf (t D ) }, t. We note that arrval functons and RBFs of perodc-wthjtter tasks are good functons,.e., they are sub-addtve and equal to zero at t =. Recall that f s sub-addtve ff f (t) f (t s) + f (s) for all s < t. Modelng resource avalablty. The resource suppled by a processor can be modeled by a supply bound functon (SBF), denoted by sbf (t), whch gves the mnmum number of executon unts avalable over any tme nterval of length t, for all t. SBFs are also known as servce functons (possbly, after scalng to a task s WCET) [3]. Consder a task T that s processed by a processor wth SBF f. Suppose g s the RBF of T, then the SBF of the mnmum remanng resource after processng T s gven by [3]: Reman( f,g)(t) def = sup { f (x) g(x) x t }. (3) Further, f f s the SBF of the remanng resource, then the maxmum value for the RBF of T s gven by [21]: RTInverse( f, f )(t) def = f (t + δ t ) f (t + δ t ) (4) where δ t = sup{ε f (t + ε) = f (t)}. Fnally, let F be the set of ncreasng functons f : R + R +. We defne the (mn,+) convoluton, deconvoluton and sub-addtve closure of any f,g F as follows. For all t : ( ) def f g (t) = nf { f (s) + g(t s) s t } ; (5) ( ) def f g (t) = sup { f (t + u) g(u) u } ; (6) closure( f ) = mn{ f, f f, f f f,...}. (7) It follows that closure( f ) s the maxmum good functon upper bounded by f ; ( f f ) s a good functon; and f f f. Fnally, we say f s larger (resp. smaller) than or equal to g ff f (t) g(t) (resp. f (t) g(t)) for all t R +. III. OVERVIEW OF OUR SHAPING APPROACH Basc dea: Recall our assumpton (from Secton II) that the scheduler mantans a separate ready queue for each task. The dea s to optmze the resource usage of the system by controllng these queues n such a way that () the nterference between jobs from dfferent queues s mnmzed, and () the total resource requrements of all jobs wthn the system s reduced wthout volatng the jobs schedulablty. To acheve ths, we nsert a greedy shaper n front of each ready queue to shape the arrval pattern of jobs that are ready to be scheduled. The shaper can delay an already released job for a certan amount of tme so as to bound the resource demands (requests) of the correspondng task to a desred level. Effectvely, each shaper reduces ts task s resource nterference wth the lower-prorty tasks. At the same tme, by postponng the executon of a hgher prorty job just long enough so that t can stll meet ts deadlne, a shaper ndrectly enables the scheduler to gve resources to the lower-prorty jobs, whch mproves ther schedulablty. System archtecture: Fgure 2 llustrates the archtecture of a system that mplements the shapng technque. Each shaper σ has an nput buffer B, whch s used to hold newly released jobs before puttng them nto the ready queue Q. The scheduler does not need to be aware of the shapers t can schedule the jobs n the ready queues exactly as f there were no shapers. We say that a shaper s feasble f t preserves schedulablty of all tasks n the system. shaper released jobs buffer shaper of task T 1 σ 1 B 1 shaper released jobs buffer shaper of task T 2 σ 2 B 2 ready queue Q 1 ready queue Q 2 output data FP output data scheduler Fg. 2: System archtecture for a system wth shapers. Greedy shapers. Informally, a greedy shaper [3] forces ts output jobs to conform to a specfc arrval functon, the shapng functon, and t outputs the jobs as soon as the shapng functon allows t. In Fgure 2, σ s the arrval functon used by T s greedy shaper. For convenence, we also use σ to ndcate the greedy shaper tself, and we use the terms shapng functon and shaper nterchangeably. Thus, the shaper σ delays each released job n the buffer B whenever placng the job to Q would volate the shapng functon σ. Formally, suppose the shaper σ receves job k of T at tme t k (.e., t k s the release tme of job k), where t k t k+1 for all k 1. Then, t wll output job k to Q at tme t k = t k + d k, where d k = f k = 1, and otherwse d k = mn{ 1 j < k : k j + 1 σ (t k + t j + ε)} for an nfntely small postve value of ε. Intutvely, d k s the mnmum tme that the shaper must delay job k to prevent ts ready tme from volatng σ k ; ths s obtaned by ensurng that the number of ready jobs n every nterval [t j,t k ] s no more than σ (t k t j + ε) for all j < k. Example 1: Consder a task T 1 wth perod P 1 = 4 and jtter J 1 = 3, and suppose σ 1 s a perodc arrval functon wth the same perod as the task,.e., σ 1 (t) = t/4, for all t. Then the shaper wll output at most t/4 jobs to the ready queue over any nterval of length t, or at most one ready job every four tme unts. Fgure 3 shows a release pattern of T 1 and the correspondng ready pattern after shapng. (a) Orgnal pattern of released jobs (b) Shaped pattern of ready jobs 1st 2nd 3rd 4th 5th 6th 7th 8th Fg. 3: Effect of the shaper σ 1 (t) = t/4 on T 1 = (4,3,1,4). In ths pattern, due to jtter, jobs 3, 5 and 6 are released less than 4 tme unts after ther predecessors. Snce the shaper cannot allow more than one job to become ready wthn a 4-unt nterval, t delays these jobs; n the fgure, ths s ndcated by the dashed lnes connectng release nstants and tme tme

4 the correspondng (delayed) ready nstants. Note also that the ready pattern s less bursty and closer to a perodc pattern than the orgnal release pattern, and that the delay mposed by the shaper s bounded. In ths paper, we assume that the shaper buffer s empty at tme, and t s s large enough to prevent job loss. In our settng, ths always holds because tasks are not released before tme, and the number of actve jobs per task at any nstant s fnte (otherwse, the task cannot be schedulable). In the rest of the paper, the term shaper refers to greedy shaper. IV. OPTIMAL SHAPER COMPUTATION Our next goal s to compute an optmal greedy shaper for each task T n the system,.e., one that mnmzes the maxmum response tmes of the lower-prorty tasks. We begn by ntroducng some basc propertes of greedy shapers. Theorem 4.1: Let E, α and σ be the WCET, arrval functon and shaper of T, where σ s a good functon. Then, 1) the jobs output by the shapers (.e., the ready jobs of Q ) are bounded by the arrval functon α gs = α σ ; 2) the greedy shaper serves as a vrtual resource that offers a supply-bound functon equal to E σ ; and 3) f sbf (t) s the SBF of the resource avalable to T n the absence of shapng, then the effectve resource avalable to T n the presence of a shaper σ for T s bounded by an SBF sbf gs = (E σ ) sbf. The proof s straghtforward (based on results n [3] (Secton 1.5.2)) and has been omtted due to space lmtatons. Defntons. Next, we formally defne the concepts of feasblty and optmalty for greedy shapers. Let C be the orgnal system wthout shapng, and let C σ be the same system wth the shaper σ appled to T for all 1 N (recall that N s the number of tasks n the system). Further, let R(T j,c) denote the maxmum response tme of task T j n C for all 1 j N. Defnton 1: A functon σ s a feasble shapng functon for T f () t s a good functon 1, and () T s schedulable n C σ f T s schedulable n C. Thus, a feasble shaper always preserves the schedulablty of ts task. Any shapng functon larger than or equal to the arrval functon of a task s trvally feasble but has no effect on the task s ready pattern (.e., as f there were no shaper), so t s not useful for our purposes. Defnton 2: σ s an optmal shaper of T ff () t s a feasble shaper of T, and () for any feasble shapng functon σ of T, R(T j,c σ ) R(T j,c σ ) for every T j LP(T ). It mples that f a lower prorty task of T s schedulable under a feasble shaper σ, then t s also schedulable under an optmal shaper σ. Thus, an optmal shaper of a task not only maxmzes the number of schedulable tasks but also mnmzes the maxmum response tmes of ts lower prorty tasks. When usng a feasble shaper, the effectve RBF of the ready jobs (output from the shaper) can be computed as follows: 1 Snce any functon can be refned nto a good functon (e.g, by takng the sub-addtve closure), we requre ths condton for ease of presentaton. Lemma 4.2: The effectve RBF of (the ready jobs of) T wth arrval functon α and feasble shaper σ gs s gven by rbf gs = E (α σ gs ). Proof: By substtutng the shapng functon nto Theorem 4.1(1), we obtan the arrval functon of the output jobs from the shaper σ gs (.e., nput jobs to the ready queue Q ), whch s gven by α gs = α σ gs. Hence, the effectve RBF = E (α σ gs ). of the ready jobs of T s rbf gs = E α gs The next lemma states the monotoncty between shapers and ther resultng maxmum response tmes of tasks: Lemma 4.3: Suppose σ and σ are two feasble shapers for T. Then, the followng holds: 1) If σ σ, then R(T j,c σ ) R(T j,c σ ) for all T j wth lower prorty than T. 2) σ s optmal ff σ σ for all possble values of σ. Proof: Let rbf gs gs and rbf be the effectve RBFs of the ready jobs of T when usng σ and σ, respectvely. Due to Lemma 4.2, rbf gs = E (α σ gs ) E (α σ gs gs ) = rbf. As a result, the maxmum resource nterference that T mposes on ts lower-prorty tasks when usng σ s always less than or equal to that when usng σ. Snce the resource nterference that T s hgher-prorty tasks mpose on T s lower-prorty tasks does not depend on the shaper that s used for T, we can conclude that R(T j,c σ ) R(T j,c σ ) for all T j wth a lower prorty than T, whch mples (1). Part (2) follows drectly from part (1) and the defnton of optmal shaper. Snce the arrval functons of the tasks are also feasble shapers, t follows from Lemma 4.3 that a system n whch hgh-prorty tasks mplement feasble shapng functons that are smaller than ther respectve arrval functons not only preserves the schedulablty of the system but also reduces the maxmum response tmes, and hence the schedulablty, of lower-prorty tasks. Thus, from a schedulablty and resource-demand perspectve, a system wth feasble shapers s always as good as, f not better than, one wthout shapers. Computng the optmal shaper. Let f be an arrval functon and g be the servce functon of a task,.e., g(t) gves the mnmum number of jobs that can be completed over any nterval of length t. Then, from [3], the maxmum response tme (delay) of the task s the maxmum horzontal dstance between f and g, denoted by dst( f,g), where dst( f,g) = sup t {nf d {d f (t) g(t + d)}}. The next theorem gves the necessary and suffcent condton for feasble shapers. Theorem 4.4: Let α (t) and D be the arrval functon and relatve deadlne of T, respectvely, and let γ (t) = max{,α (t D )}, t. Then σ F s a feasble shapng functon for T ff t s a good functon and σ γ. Proof: ( ) Let sbf (t) be the SBF that bounds the resource avalable to a task T n C and let β = sbf /E. Then, β (t) s the servce functon of T n C. Snce the set of tasks wth hgher prorty than T n C and C σ are the same, β (t) s also the servce functon of T n C σ. Suppose T s schedulable n C. Then, sbf (t) dbf (t) = E γ (t), whch mples β (t) γ (t), for all t (snce γ (t)

5 N). Let a(t) be a release pattern of T,.e., a(t) denotes the number of jobs that are released over (,t] for all t. If none of the jobs n the release pattern a(t) s delayed by the shaper σ, then all jobs of T also meet ther deadlnes n C σ. Otherwse, there exsts a job J k of T that s delayed by the shaper σ. Let t k and tk s be the release tme and the ready tme of J k, respectvely. Fgure 4 llustrates the release and ready patterns wth respect to α, σ and γ. # jobs α Snce σ s a good functon and the shaper outputs σ a(t) J k as soon as the resultng β output pattern does not volate the arrval constrant of 1 γ 2 the shapng functon, the delay of J k at the shaper s the mnmum tme nterval d 1 such that a(t k ) σ (tk s ), wth t k s t k t tk s = t k + d 1. Snce a(t k ) tme nterval length D Fg. 4: Job delay under shapng. α (t k ), we mply d 1 1, where 1 s the horzontal dstance between the arrval functon α and the pont σ (tk s ) (see Fgure 4). Further, the maxmum delay J k experences at the processor s the mnmum nterval 2 such that the number of jobs that can be completed by the processor over an nterval of length tk s + 2 s at least σ (tk s),.e., t s the mnmum tme nterval 2 such that β (tk s + 2) σ (tk s). Ths tme nterval 2 s ndcated by the horzontal dstance between σ (tk s ) and the servce functon β n Fgure 4. From the above, the maxmum response tme of J k s d 1 + def =. There are two cases: If β (tk s + 2) σ (tk s): Then, 2 = and 1 dst(α,σ ). Snce σ γ, we mply dst(α,γ ). Otherwse: Then, s no more than the horzontal dstance between the arrval functon α and β (tk s + 2). Thus, dst(α,β ) dst(α,γ ). Hence, dst(α,γ ). Recall that γ (t) = max{,α(t D )} for all t. Ths mples dst(α,γ ) = D. In other words, the response tme of J k s no more than D. Hence, T s also schedulable n C σ. Because σ s a good functon, we then mply that t s a feasble shapng functon for T. ( ) Reversely, suppose σ (t k ) < γ (t k ) for some t k. Snce γ (t) = for all t D and σ (t) for all t, we have t k > D. Let a(t) be the release pattern that concdes the arrval functon,.e., a(t) = α (t) for all t, where a(t) s the number of jobs that are released over (,t]. Then, a(t k D ) = α (t k D ) = γ (t k ) > σ (t k ). Ths mples that there exsts t k < t k D such that a(t k ) = σ (t k ), and subsequently, there s a job n a(t) that s released at tme t k and ready at tme t k. Ths job has a delay of at least t k t k, whch s larger than D and thus, t msses ts deadlne. In other words, σ s not a feasble shapng functon for T. The next two corollares follow drectly from the above theorem and Lemma 4.3(2) (see also Secton II for the property of the self-deconvoluton). Corollary 4.5: Let f F be such that f (t) = B t/d for all t D and f (t) = α (t D ) otherwse, where B = α ( + ε) for an nfntely small postve value of ε. Then, f f s a feasble shapng functon for T. Corollary 4.6: The smallest good functon σ that s larger than or equal to γ s an optmal shapng functon for T, where γ s defned n Theorem 4.4. Theorem 4.7: Let B = J /P and = mn(j,d ). Defne σ gs : R + N as follows: t R +, σ gs (t) = { B t, f t t+j P, otherwse. Then, σ gs s an optmal shapng functon for the perodc-wthjtter task T = (P,J,E,D ). Proof: Recall that the arrval functon of T = (P,J,E,D ) s gven by α F where α () = and α (t) = (t + J )/P for all t >. Let γ (t) = max{, α (t D )}, t. Then, γ (t) = f t D, and γ (t) = t+j D P otherwse. The proof can be establshed by showng that σ gs s the smallest good functon that s larger than or equal to γ. Intutvely, the second part of σ gs has the same long-term average slope as that of γ, whereas the slope of the frst part must be no less than both B /J and B /D to ensure that the functon s sub-addtve. We also requre that the functon values are ntegers. Due to space constrants, we omt the detals here. The clam then follows va Corollary 4.6. Fgure 5 shows an example that apples the above theorem. Number of jobs arrval functon of released jobs optmal shapng functon (arrval functon of ready jobs) Tme nterval length (tme unts) Fg. 5: Optmal shaper for a task T = (5,16,1.4,5), computed by Theorem 4.7. Note the reducton n the maxmum bursts: n a unt tme nterval, there can be up 4 new jobs that are released but only one new job that wll be ready for executon. V. SCHEDULABILITY ANALYSIS WITH OPTIMAL SHAPING Consder agan the same task and ts optmal shaper shown n Fgure 5. As a result of shapng, the correspondng arrval functon of the ready jobs after shapng s smaller than the orgnal arrval functon of the released jobs before shapng. Ths mples that the effectve RBF of the ready jobs s smaller than the RBF of the released jobs. Lower RBF values mean that the task causes less nterference to lower-prorty tasks, whch we now explot. We denote by C the system wth N tasks T = (P,J,E,D ), where each T uses a feasble shaper σ gs (e.g., the optmal shaper defned n Theorem 4.7). Recall that rbf (t) s the orgnal RBF of T and rbf gs s the effectve RBF of the ready jobs of T n the presence of shapng (c.f. Lemma 4.2). Theorem 5.1: Suppose D P for all 1 N, and let rbf,c = rbf + T j HP(T ) rbf gs j.

6 Then, C s schedulable ff for every T, there exsts t [,D ] such that rbf,c (t ) sbf (t ) where sbf (t) s the SBF of the processor s resource avalable to C. Proof: One can easly prove that a crtcal release pattern of T (.e., a release pattern that generates the maxmum demand from all ts hgher-prorty tasks) n C happens when each hgher-prorty task of T s ready smultaneously wth T, and all future jobs of these hgher-prorty tasks are ready as soon as possble. Snce only the ready jobs of hgher-prorty tasks of T can nterfere wth the executon of T, for any nterval of length t, the maxmum resource nterference of a hgher prorty task T j on T n the system C s rbf gs j (t). Further, rbf (t) s the maxmum number of executon unts requested by T (note that σ does not change the requests of T that must be completed to meet ts deadlne). Hence, rbf,c (t) = rbf (t) + gs T j HP(T ) rbf j (t) s the worst-case cumulatve resource request of T over any nterval of length t. Therefore, the worst-case response tme of T n C s the smallest tme nterval length t such that rbf,c (t ) sbf (t ). Hence, T meets ts deadlne ff t D. It can be observed from the above schedulablty condton that when usng a shapng functon larger than or equal to the arrval functon of the task, the schedulablty analyss of the system wth shapng s reduced to the schedulablty analyss of the orgnal system. The next example llustrates 2 2 the schedulablty mprovement when usng optmal shapers. Number of executon unts d : response tme of T wthout shapng No shapng # rbf 2, C " " rbf 3,C" rbf 2,C" sbf(t)" rbf 1,C" rbf 3, C 18 rbf 1, C d1 d2 d3 d1 d Tme D 1# nterval D 2# Dlength 3# (tme unts) Tme D 1# nterval D 2# Dlength 3# (tme u (a) T 2 and T 3 mss ther deadlnes! Number of executon unts d : response tme of T wthout shapng Wth shapng # rbf 2, C rbf 3,C*" sbf(t)" sbf rbf 2,C*" (b) All tasks are schedulable! rbf 1,C*" Fg. 6: Schedulablty of the system n Example 2. Example 2: Consder a system 51 C wth three tasks T 1 = (6,5,2,6), T 2 = (8,7,2,8) and T 3 = (1,,2,1), whch are scheduled on a fully avalable unt-speed processor. T 1 has the hghest prorty and T 3 has the lowest prorty. The cumulatve RBF of T n C s denoted by rbf,c (t), and the SBF of the processor s denoted by sbf (t). These functons are gven n Fgure 6(a). In ths fgure, the smallest tme nterval t at whch sbf (t) rbf,c (t) s the maxmum response tme of T when there s no shapng. From the fgure, one can observe that both rbf 2,C (t) and rbf 3,C (t) meet sbf (t) after the deadlnes of T 2 and T 3, respectvely. Therefore, T 2 and T 3 mss ther deadlnes. On the other hand, when each task T mplements ts optmal shapng functon (computed by Theorem 4.7), all tasks meet ther deadlnes. Ths s llustrated by Fgure 6(b). As before, rbf,c (t) s the cumulatve RBF of T n the shapng system C. From the fgure, the response tmes of T 1, T 2 and T 3 are 4, 6 and 6, respectvely. Thus, all tasks are schedulable when usng shapng. r VI. INTEGRATING SHAPING INTO COMPOSITIONAL SCHEDULING FRAMEWORKS In ths secton, we demonstrate how shapers can be ntegrated nto a compostonal schedulng framework (e.g., [8], [15]). In ths settng, the system s parttoned nto a tree of components that are scheduled herarchcally as llustrated n Fgure 7(a). There are two types of components: a composte component conssts of a set of chld components or tasks (e.g., component C), and an elementary component conssts of a fnte set of tasks (e.g., C1, C2). Each component has ts own local scheduler for ts chld components/tasks. The schedulablty analyss of the system s done by means of resource nterfaces. An nterface of a component captures the resource supply requred to feasbly schedule ts chld tasks or chld components. The nterface s computed based on the resource demands of the chld tasks, and/or the nterfaces of any subcomponents. The nterface of a component s mplemented as a task, whch s scheduled by the parent component s scheduler (e.g., T C1 ). A component s schedulable f ts nterface s schedulable by the parent s scheduler. An nterface of a component s optmal (resp. bandwdth-optmal) f ts SBF (resp. ts bandwdth) s smaller than, or equal to, that of any other feasble nterface of the component. We llustrate our method usng the explct deadlne perodc (EDP) nterface [8], snce t s effcent and can easly be transformed nto a task. An EDP nterface s characterzed by a perod Π, an executon tme Θ, and a deadlne. It represents a resource that supples Θ executon tme unts durng each perod of length Π, wthn the frst tme unts after the start of each perod. It has a bandwdth of Θ/Π, and t can be transformed nto a perodc task wth perod Π, WCET Θ and deadlne. The SBF of an EDP nterface s gven n [8]. DM: Deadlne Monotonc, RM: Rate Monotonc T 1 root component C T C1 DM C1 T 2 DM T 3 (a) No shapng T C2 RM C2 T 4 σ 1 root component C* σ C1* T C1* DM σ 2 T 1 T 2 C1* DM σ 3 σ C2* T C2* RM σ 4 T 3 T 4 C2* (b) Wth shapng Fg. 7: A two-level compostonal schedulng system. Integraton of shapers: We apply shapng to every component that uses a FP local scheduler (e.g., RM, DM n the above example). Each task T wthn any such component C mplements ts own shaper (.e., ts released jobs wll frst pass through the shaper before they are scheduled by C s scheduler). Fgure 7(b) shows the system wth shapng that corresponds to the orgnal one n Fgure 7(a). We refer to C s counterpart (wth feasble shapng added) as C. If T s a perodc task wth jtter, ts shapng functon s computed by Theorem 4.7. The shapng functon of any other general task model s computed based on the task s arrval functon by usng Corollary 4.5. In Secton V, we have shown that, f a system s schedulable under FP, then the same system wth feasble

7 shapers s also schedulable. Snce ths clam was proven for any general resource characterzed by an SBF, the same result holds for a component wthn the compostonal schedulng framework. That s, f C s schedulable under FP, then C s also schedulable under FP. Hence, the compostonal schedulablty analyss n presence of shapng can be done n the same manner as the conventonal settng, except that the nterface of a component wth shaper s computed based on the schedulablty condton stated n Theorem 5.1. Next, we elaborate ths nterface computaton for any gven C. Interface computaton for a component wth shapng: Let σ gs be the shaper of T as descrbed above, for all T n C. As usual, D denotes the deadlne of T, rbf (t) denotes the RBF of T (c.f. Equaton (2)), and rbf gs denotes the effectve RBF of the ready jobs of T n presence of shapng (c.f. Lemma 4.2). Theorem 6.1: An nterface I can feasbly schedule C ff T C, t [,D ] : rbf,c (t ) sbf I (t ) where rbf,c = rbf + gs T j HP(T ) rbf j s the cumulatve RBF of T n C (whch accounts for nterference of ts hgher prorty tasks), and sbf I (t) s the SBF of I. Proof: The theorem holds due to the schedulablty condton of components wth shapng gven n Theorem 5.1. Corollary 6.2: An nterface I opt s optmal (bandwdthoptmal) for C ff t has the mnmum SBF (mnmum bandwdth) among that of all nterfaces I that satsfy the schedulablty condton gven by Theorem 6.1. Based on Corollary 6.2, we can compute the optmal (bandwdth-optmal) nterface for any shapng component C by followng the same procedure that was used for the component C wthout shapng; the only dfference s that we use the updated cumulatve RBFs rbf,c nstead of rbf,c. The computaton of nterfaces of components that do not use shapers (.e., non FP components), and the transformaton from nterfaces to tasks, can be done exactly as n the conventonal case (see [8] for EDP nterfaces). Snce rbf,c rbf,c for all FP components, the resource needed to schedule the components when usng shapers s always smaller than or equal to the resource requred n the conventonal settng. We end ths secton wth an example to llustrate the effect of shapng on ts nterface. Example 3: Consder an elementary FP component C that conssts of three tasks T = (P,J,E,D ), where T 1 = (1,29,1,1), T 2 = (15,28,1,15), T 3 = (16,,1,16), and the prorty order s T 1 > T 2 > T 3. Our goal s to compute the mnmum-bandwdth EDP nterface for ths component, where the maxmum nterface perod s chosen to be Π max = 32. We frst compute the shaper for each task usng Theorem 4.7, and derve the correspondng cumulatve RBF rbf,c for each task T (c.f. the step functons n Fgure 8(a)). We then vary the nterface perod Π from 1 to Π max, and for each value Π, we fnd the correspondng Θ and that result n a mnmum bandwdth nterface (Π, Θ, ) whose SBF satsfes Theorem 6.1. The mnmum-bandwdth nterface among the nterfaces for all values of Π s gven by (Π = 3,Θ = 1.4, = 1.4), whch has a bandwdth of.4667(= 1.4/3). One can Number of executon unts Θ =1.4 8 rbf 1, C* rbf 2, C* rbf 3, C* sbf EDP gs gs d 2 = d 3 =15 gs d 1 = Π+ 2Θ = = 2Π+ 2Θ Tme nterval length (tme unts) (a) Shapng: BW =.4667, (Π,Θ, ) = (3,1.4,1.4). Number of executon unts rbf 1, C rbf 2, C rbf 3, C d3 = 16 d2 = d1 = 7.6 sbfedp Θ = Π+ 2Θ = = 2Π+ 2Θ Tme nterval length (tme unts) (b) No shapng: BW =.56, (Π,Θ, ) = (1,.56,.56). Fg. 8: Mnmum-bandwdth EDP nterface for Example 3. valdate based on Fgure 8(a) that ths nterface s suffcent to schedule the task set because the maxmum response tme d gs of T s always no more than D. In contrast, as llustrated n Fgure 8(b), the mnmum nterface of the component n the absence of shapng s (Π = 1,Θ =.56, =.56), whch has a bandwdth equal to.56. Hence, shapng reduces the nterface bandwdth by more than 16.6% n ths sngle component alone. Remarks: Snce a feasble shaper for a task can be computed based solely on ts arrval functon (Corollary 4.5), our technque s applcable to any task model that can be characterzed by an arrval functon (e.g., a sporadc task). Further, t can be plugged nto any compostonal schedulng framework that uses supply/demand analyss for nterface computaton. VII. SHAPERS IN MIXED-CRITICALITY SYSTEMS In ths secton, we present an applcaton of shapers to mxedcrtcalty systems. In such systems, each task has n addton to ts conventonal tmng parameters a crtcalty level. There are two schedulng objectves: (1) to guarantee that all hghcrtcalty (HC) tasks meet ther deadlnes; and (2) f objectve (1) s feasble, to mnmze the deadlne mss ratos of lowcrtcalty (LC) tasks, n decreasng order of prorty. Note that (2) s only one possble objectve, whch we follow so as to confrm to the FP scheduler as much as s possble. In general, the crtcalty of a task can change at runtme, dependng on the operatng mode of the system. As a frst step, we present the technque for a sngle-mode scenaro and for two levels of crtcalty. Our goal s to llustrate that shapng s a promsng way to acheve the mxed-crtcalty schedulng objectves. In the settng we consder, a shaper s feasble for a task T ff t preserves the schedulablty of T s lower-prorty HC tasks. A shaper s optmal for T ff t s the smallest feasble shaper for T that preserves the schedulablty of T. We requre shapers are good functons. Basc dea: We wll use a combnaton of shapng and nterface technques. By approprately shapng LC tasks, we can ensure that HC tasks meet ther deadlnes even when they have low prortes whle reducng the deadlne mss ratos of the LC tasks. Intutvely, snce shapers can control the number of tasks that are ready, we can reduce the resource contenton on HC tasks by desgnng shapers wth suffcently small

8 shapng functons for LC tasks. 2 At the same tme, by choosng these functons as large as possble whle stll ensurng schedulablty of HC tasks, we can ncrease the resource utlzaton and mnmze the LC tasks deadlne mss ratos. Towards ths, we compute for each task T an nterface, called the crtcal nterface, that captures the mnmum resource supply needed to feasbly schedule all HC tasks wth a prorty smaller than or equal to T s. We then choose a shapng functon for each LC task such that the remanng resource after processng the task satsfes ts crtcal nterface. From the schedulng perspectve, ths approach offers two man benefts: (1) t does not modfy the scheduler, and thus enables the conventonal FP algorthm to be used n mxedcrtcalty systems wthout volatng the tmng guarantees of HC tasks; and (2) snce the reducton n resource contenton s acheved entrely through shapng (and not by modfyng the scheduler), ths approach can potentally be combned wth other mxed-crtcally schedulng algorthms to further mprove schedulablty. Computng shapers for mxed-crtcalty tasks: Snce the goal of the shaper for an HC task s the same as n systems wthout mxed crtcalty (.e., to ensure the task s schedulablty and to mnmze the resource nterference on lower prorty tasks), the optmal shaper for HC tasks can be computed usng Theorem 4.7. The same theorem can be used for LC tasks wth a prorty below that of all HC tasks, snce such tasks cannot nterfere wth any HC tasks. Let τ LCHP be the set of remanng tasks,.e., LC tasks whose prorty exceeds that of at least one HC task. Let T be a task n τ LCHP. Then T s optmal shaper can be derved from ts crtcal nterface and the SBF of the resource avalable to t. The crtcal nterface of a task s defned by Lemma 7.1, whch holds due to Corollary 6.2: Lemma 7.1: Let C be a vrtual component that conssts of all HC tasks that have a prorty lower than or equal to T s, such that each task n C mplements ts own optmal shaper as descrbed above. Then the crtcal nterface I of T s the mnmum SBF that satsfes the schedulablty condton of C, whch s gven by Theorem 6.1 (Secton VI). From Lemma 7.1, σ s a feasble shaper for T ff the SBF of the remanng resource after processng the output jobs of σ s at least I. Let β be the SBF of the mnmum resource avalable to T. The effectve RBF of the output jobs of σ s rbf gs = E (α σ ), where α and E are the arrval functon and WCET of T (see Lemma 4.2). Combne wth the results n Secton II, σ s feasble for T ff Reman(β,rbf gs ) I (c.f. Equaton (3)). Snce α and σ are good functon, the maxmum soluton for α σ s σ crt def = closure ( RTInverse(I,β ) E ) where closure( f ) s the sub-addtve closure of f (c.f. Equaton 4). Further, let σ gs be the shaper computed usng Theorem 4.7. Recall that σ gs s the smallest shapng functon that ensures that T meets ts deadlne. Also, σ gs α. As a result, the optmal shapng functon for T s mn{σ crt,σ gs }. Based on the above results, we can compute the optmal 2 A smaller shapng functon allows fewer jobs to arrve at the ready queue over any tme nterval of a gven length. shapers for the tasks n a mxed-crtcalty system n decreasng order of prorty based on Theorem 7.2. In ths theorem, β (t) denotes the SBF of the resource avalable to T, and β (t) s the SBF of the total resource gven by the processor. Theorem 7.2: Suppose that, for all 1, j N, where N s the number of tasks n the system, T has hgher prorty than T j f < j. Let α and E be the arrval functon and the WCET of T, respectvely. Then the optmal shaper for T s σ = σ gs f T / τ LCHP ; otherwse, σ = mn { σ gs,closure ( RTInverse(I,β ) E )},where β 1 = β and β = Reman(β 1,rbf gs 1 ) for all 2 N. It can be derved that all the HC tasks are schedulable ff β I 1, and an LC task s schedulable ff ts shapng functon satsfes the feasblty condton n Theorem 4.4 (Secton IV). Snce the system behaves as n the settng wthout mxedcrtcalty after the shapers are fxed, the maxmum response tme of a task can be computed as was done n Secton V. VIII. EVALUATION In ths secton, we evaluate the proposed technque on randomly generated fxed-prorty task systems, n both standard FP schedulng and compostonal schedulng settngs. In the fomer, we quantfy () the degree to whch shapng can mprove the schedulablty of low-prorty tasks under hgh system load stuatons, and () the relatonshp between the tasks jtter values and the schedulablty mprovement acheved by shapng. In the later, we quantfy the amount of resource nterface bandwdth that can be saved by usng shapers n the FP components. Expermental setup: We mplemented the analyss technques from Sectons V and VI n Matlab by extendng the RTC Toolbox [22]. For each schedulng settng, we randomly generated a collecton of perodc-wth-jtter task sets of sze N (specfed below); and each task s deadlne was equal to ts perod. The followng parameters were chosen unformly at random: the task perods (as ntegers from [1, 1]), the task set s total utlzaton (from [U mn,u max ]), the utlzaton values of the ndvdual tasks (from (, 1), scaled by the generated utlzaton of the task set) and each task s jtter-toperod rato (from (, 2)). The tasks prortes were assgned accordng to the Deadlne Monotonc algorthm; tes were broken based on the task ndces. A. Schedulablty evaluaton For ths experment, we generated 1 task sets wth N = 2 tasks per set. Snce we were nterested n the schedulablty of the system, whch s crtcal under hgh system load stuatons for FP, we chose the utlzaton of each task set between U mn =.7 and U max =.9. For each generated task set, we computed the number of tasks that mssed ther deadlnes, based on ther maxmum response tmes. Fgure 9 shows the number of unschedulable tasks (.e., deadlne msses) for each task set wth and wthout shapng. The task sets are sorted by ncreasng utlzaton; the flled and empty crcles correspond to the results for ndvdual task sets wth and wthout shapng, respectvely. The results

9 Number of tasks mssng deadlnes (out of 2 tasks per set) No shapng Utlzaton Wth shapng Fg. 9: Total number of deadlne msses for each task set. show that the number of deadlne msses wthout shapng was strctly above the number of deadlne msses wth shapng, consstently across all utlzaton values. For example, at a utlzaton of.8, approxmately 9 (out of 2) tasks mss ther deadlnes wthout shapng, but only 4 tasks mss ther deadlnes wth shapng. In other words, shapng reduced the number of deadlne msses by 2.25 tmes. Note also that the average reducton for the other utlzaton values s smlar. Deadlne mss rato Improvement (%) Improvement value = MR - MR gs MR (MR gs): Deadlne mss rato wthout (wth) shapng Utlzaton Fg. 1: Effect of shapng on reducng deadlne mss rato. Fgure 1 further llustrates the mprovements when usng shapng wth respect to deadlne mss rato (.e., the rato of the number of unschedulable tasks to the total number of tasks). Each mprovement value s defned as MR MR gs, where MR gs (MR) s the deadlne mss rato wth (wthout) shapng. The results show that shapng can effectvely reduce the deadlne mss rato of the system by 2% to 35%. Under hgh load stuatons, we also observe that, as the utlzaton ncreases, the reducton acheved by shapng tends to decrease slghtly. Ths s expected: ntutvely, f we keep the same number of tasks, an ncrease n the task set s utlzaton mples an ncrease n the tasks WCETs (or a reducton n the tasks perods). Hence, the tasks that used to be schedulable n presence of shapng but unschedulable wthout shapng now also become unschedulable under shapng, due to ther hgher WCETs (or reduced perods). Snce shapng s only effectve when tasks experence jtter, we next nvestgated the relatonshp between jtter and the performance of shapng. We vared the jtter-to-perod rato from to 2, n ncrements of.1. For each rato, we generated 5 task sets, wth N = 1 tasks per set and a utlzaton of.9. The other parameters were chosen as before. Fgure 11 shows the average mprovement for each jtter-toperod rato. Here, the mprovement starts at and ncreases as the jtter-to-perod rato ncreases. Ths trend contnues untl the mprovement reaches a peak (when the jtter s approxmately equal to the perod), and t slowly decreases agan after that. Ths near-bell-shape behavor s expected because when there s no jtter, the system wth shapng behaves exactly as the one wthout shapng, so there s no mprovement. Deadlne mss mprovement (%) Improvement value = MR - MR gs Jtter/Perod rato Fg. 11: Correlaton between deadlne mss rato reducton and jtter. As the jtter values ncrease, more and more tasks become unschedulable wthout shapng but reman schedulable under shapng, so the mprovement ncreases. As was dscussed n the ntroducton, such large jtters happen n many realtme systems, such as dstrbuted automotve networks. Observe also that, as s expected, when the jtter s too large, the task set becomes heavly overloaded, so more and more tasks become unschedulable even wth shapng. B. Interface computaton evaluaton To llustrate the effect of shapng on component nterfaces, we consdered the nterface computaton of a FP elementary component that was part of a compostonal schedulng framework. For our experment, we used the EDP resource model as the nterface representaton, and we appled the technque from Secton VI to compute the optmal nterface. We generated 8 component workloads, wth utlzaton values drawn unformly at random from [.2,.9]. Each component workload had 2 perodc tasks wth jtter; the other parameters were chosen as descrbed under expermental setup, except that the jtter-to-perod raton was chosen from (, 1). For each generated component workload, we computed the optmal EDP nterfaces for the component wth and wthout shapng. The maxmum nterface perod was set to 1. Fgure 12 shows the optmal bandwdths of the EDP nterfaces correspondng to the generated component workloads, sorted by ncreasng workload utlzaton. The correspondng cumulatve dstrbuton functons (CDFs) of the nterface bandwdth are shown n Fgure 13. As expected, when the workload utlzaton ncreases, the nterface bandwdth also tends to ncrease. 3 In both fgures, the nterface bandwdth wth shapng s always smaller than the nterface bandwdth wthout shapng, across all component s workload utlzaton values. Furthermore, the number of component workloads that requre an nterface bandwdth larger than 1 (hghlghted by the shaded area n Fgure 13) wthout shapng s at least 2% larger than wth shapng. Such component workloads are not schedulable on a unt-one processor, even t s fully avalable. In general, the above results show that shapers not only reduce the nterface bandwdth values but also mnmze the percentage of component workloads that requre larger nterface bandwdths. Ths s llustrated more explctly by Fgure 14, whch shows the mprovement of nterface bandwdth wth shapng, compared to the conventonal component 3 Note that, the nterface bandwdth n the presence of jtter s not strctly an ncreasng functon of the workload utlzaton because t depends on not only the workload utlzaton but also on the jtter values of the tasks.

Available online at ScienceDirect. Procedia Computer Science 24 (2013 ) 9 14

Available online at   ScienceDirect. Procedia Computer Science 24 (2013 ) 9 14 Avalable onlne at www.scencedrect.com ScenceDrect Proceda Computer Scence 24 (2013 ) 9 14 17th Asa Pacfc Symposum on Intellgent and Evolutonary Systems, IES2013 A Proposal of Real-Tme Schedulng Algorthm

More information

Applications of Myerson s Lemma

Applications of Myerson s Lemma Applcatons of Myerson s Lemma Professor Greenwald 28-2-7 We apply Myerson s lemma to solve the sngle-good aucton, and the generalzaton n whch there are k dentcal copes of the good. Our objectve s welfare

More information

Tests for Two Correlations

Tests for Two Correlations PASS Sample Sze Software Chapter 805 Tests for Two Correlatons Introducton The correlaton coeffcent (or correlaton), ρ, s a popular parameter for descrbng the strength of the assocaton between two varables.

More information

15-451/651: Design & Analysis of Algorithms January 22, 2019 Lecture #3: Amortized Analysis last changed: January 18, 2019

15-451/651: Design & Analysis of Algorithms January 22, 2019 Lecture #3: Amortized Analysis last changed: January 18, 2019 5-45/65: Desgn & Analyss of Algorthms January, 09 Lecture #3: Amortzed Analyss last changed: January 8, 09 Introducton In ths lecture we dscuss a useful form of analyss, called amortzed analyss, for problems

More information

A Virtual Deadline Scheduler for Window-Constrained Service Guarantees

A Virtual Deadline Scheduler for Window-Constrained Service Guarantees A Vrtual Deadlne Scheduler for Wndow-Constraned Servce Guarantees Yutng Zhang, Rchard West and Xn Q Computer Scence Department Boston Unversty Boston, MA 02215 {danazh,rchwest,xq}@cs.bu.edu Abstract Ths

More information

A Virtual Deadline Scheduler for Window-Constrained Service Guarantees

A Virtual Deadline Scheduler for Window-Constrained Service Guarantees A Vrtual Deadlne Scheduler for Wndow-Constraned Servce Guarantees Yutng Zhang, Rchard West and Xn Q Computer Scence Department Boston Unversty Boston, MA 02215 {danazh,rchwest,xq}@cs.bu.edu Abstract Ths

More information

Tests for Two Ordered Categorical Variables

Tests for Two Ordered Categorical Variables Chapter 253 Tests for Two Ordered Categorcal Varables Introducton Ths module computes power and sample sze for tests of ordered categorcal data such as Lkert scale data. Assumng proportonal odds, such

More information

/ Computational Genomics. Normalization

/ Computational Genomics. Normalization 0-80 /02-70 Computatonal Genomcs Normalzaton Gene Expresson Analyss Model Computatonal nformaton fuson Bologcal regulatory networks Pattern Recognton Data Analyss clusterng, classfcaton normalzaton, mss.

More information

CS 286r: Matching and Market Design Lecture 2 Combinatorial Markets, Walrasian Equilibrium, Tâtonnement

CS 286r: Matching and Market Design Lecture 2 Combinatorial Markets, Walrasian Equilibrium, Tâtonnement CS 286r: Matchng and Market Desgn Lecture 2 Combnatoral Markets, Walrasan Equlbrum, Tâtonnement Matchng and Money Recall: Last tme we descrbed the Hungaran Method for computng a maxmumweght bpartte matchng.

More information

Elements of Economic Analysis II Lecture VI: Industry Supply

Elements of Economic Analysis II Lecture VI: Industry Supply Elements of Economc Analyss II Lecture VI: Industry Supply Ka Hao Yang 10/12/2017 In the prevous lecture, we analyzed the frm s supply decson usng a set of smple graphcal analyses. In fact, the dscusson

More information

IN most real-time systems, predictability is achieved by

IN most real-time systems, predictability is achieved by 198 IEEE TRANSACTIONS ON COMPUTERS, VOL. 54, NO. 2, FEBRUARY 2005 Effcent Reclamng n Reservaton-Based Real-Tme Systems wth Varable Executon Tmes Marco Caccamo, Member, IEEE, Gorgo C. Buttazzo, Member,

More information

OPERATIONS RESEARCH. Game Theory

OPERATIONS RESEARCH. Game Theory OPERATIONS RESEARCH Chapter 2 Game Theory Prof. Bbhas C. Gr Department of Mathematcs Jadavpur Unversty Kolkata, Inda Emal: bcgr.umath@gmal.com 1.0 Introducton Game theory was developed for decson makng

More information

3: Central Limit Theorem, Systematic Errors

3: Central Limit Theorem, Systematic Errors 3: Central Lmt Theorem, Systematc Errors 1 Errors 1.1 Central Lmt Theorem Ths theorem s of prme mportance when measurng physcal quanttes because usually the mperfectons n the measurements are due to several

More information

EDC Introduction

EDC Introduction .0 Introducton EDC3 In the last set of notes (EDC), we saw how to use penalty factors n solvng the EDC problem wth losses. In ths set of notes, we want to address two closely related ssues. What are, exactly,

More information

A MODEL OF COMPETITION AMONG TELECOMMUNICATION SERVICE PROVIDERS BASED ON REPEATED GAME

A MODEL OF COMPETITION AMONG TELECOMMUNICATION SERVICE PROVIDERS BASED ON REPEATED GAME A MODEL OF COMPETITION AMONG TELECOMMUNICATION SERVICE PROVIDERS BASED ON REPEATED GAME Vesna Radonć Đogatovć, Valentna Radočć Unversty of Belgrade Faculty of Transport and Traffc Engneerng Belgrade, Serba

More information

Price and Quantity Competition Revisited. Abstract

Price and Quantity Competition Revisited. Abstract rce and uantty Competton Revsted X. Henry Wang Unversty of Mssour - Columba Abstract By enlargng the parameter space orgnally consdered by Sngh and Vves (984 to allow for a wder range of cost asymmetry,

More information

Economic Design of Short-Run CSP-1 Plan Under Linear Inspection Cost

Economic Design of Short-Run CSP-1 Plan Under Linear Inspection Cost Tamkang Journal of Scence and Engneerng, Vol. 9, No 1, pp. 19 23 (2006) 19 Economc Desgn of Short-Run CSP-1 Plan Under Lnear Inspecton Cost Chung-Ho Chen 1 * and Chao-Yu Chou 2 1 Department of Industral

More information

TCOM501 Networking: Theory & Fundamentals Final Examination Professor Yannis A. Korilis April 26, 2002

TCOM501 Networking: Theory & Fundamentals Final Examination Professor Yannis A. Korilis April 26, 2002 TO5 Networng: Theory & undamentals nal xamnaton Professor Yanns. orls prl, Problem [ ponts]: onsder a rng networ wth nodes,,,. In ths networ, a customer that completes servce at node exts the networ wth

More information

Appendix - Normally Distributed Admissible Choices are Optimal

Appendix - Normally Distributed Admissible Choices are Optimal Appendx - Normally Dstrbuted Admssble Choces are Optmal James N. Bodurtha, Jr. McDonough School of Busness Georgetown Unversty and Q Shen Stafford Partners Aprl 994 latest revson September 00 Abstract

More information

Analysis of Variance and Design of Experiments-II

Analysis of Variance and Design of Experiments-II Analyss of Varance and Desgn of Experments-II MODULE VI LECTURE - 4 SPLIT-PLOT AND STRIP-PLOT DESIGNS Dr. Shalabh Department of Mathematcs & Statstcs Indan Insttute of Technology Kanpur An example to motvate

More information

MgtOp 215 Chapter 13 Dr. Ahn

MgtOp 215 Chapter 13 Dr. Ahn MgtOp 5 Chapter 3 Dr Ahn Consder two random varables X and Y wth,,, In order to study the relatonshp between the two random varables, we need a numercal measure that descrbes the relatonshp The covarance

More information

Quiz on Deterministic part of course October 22, 2002

Quiz on Deterministic part of course October 22, 2002 Engneerng ystems Analyss for Desgn Quz on Determnstc part of course October 22, 2002 Ths s a closed book exercse. You may use calculators Grade Tables There are 90 ponts possble for the regular test, or

More information

Random Variables. b 2.

Random Variables. b 2. Random Varables Generally the object of an nvestgators nterest s not necessarly the acton n the sample space but rather some functon of t. Techncally a real valued functon or mappng whose doman s the sample

More information

Production and Supply Chain Management Logistics. Paolo Detti Department of Information Engeneering and Mathematical Sciences University of Siena

Production and Supply Chain Management Logistics. Paolo Detti Department of Information Engeneering and Mathematical Sciences University of Siena Producton and Supply Chan Management Logstcs Paolo Dett Department of Informaton Engeneerng and Mathematcal Scences Unversty of Sena Convergence and complexty of the algorthm Convergence of the algorthm

More information

- contrast so-called first-best outcome of Lindahl equilibrium with case of private provision through voluntary contributions of households

- contrast so-called first-best outcome of Lindahl equilibrium with case of private provision through voluntary contributions of households Prvate Provson - contrast so-called frst-best outcome of Lndahl equlbrum wth case of prvate provson through voluntary contrbutons of households - need to make an assumpton about how each household expects

More information

Problem Set 6 Finance 1,

Problem Set 6 Finance 1, Carnege Mellon Unversty Graduate School of Industral Admnstraton Chrs Telmer Wnter 2006 Problem Set 6 Fnance, 47-720. (representatve agent constructon) Consder the followng two-perod, two-agent economy.

More information

A Single-Product Inventory Model for Multiple Demand Classes 1

A Single-Product Inventory Model for Multiple Demand Classes 1 A Sngle-Product Inventory Model for Multple Demand Classes Hasan Arslan, 2 Stephen C. Graves, 3 and Thomas Roemer 4 March 5, 2005 Abstract We consder a sngle-product nventory system that serves multple

More information

2) In the medium-run/long-run, a decrease in the budget deficit will produce:

2) In the medium-run/long-run, a decrease in the budget deficit will produce: 4.02 Quz 2 Solutons Fall 2004 Multple-Choce Questons ) Consder the wage-settng and prce-settng equatons we studed n class. Suppose the markup, µ, equals 0.25, and F(u,z) = -u. What s the natural rate of

More information

Appendix for Solving Asset Pricing Models when the Price-Dividend Function is Analytic

Appendix for Solving Asset Pricing Models when the Price-Dividend Function is Analytic Appendx for Solvng Asset Prcng Models when the Prce-Dvdend Functon s Analytc Ovdu L. Caln Yu Chen Thomas F. Cosmano and Alex A. Hmonas January 3, 5 Ths appendx provdes proofs of some results stated n our

More information

ECE 586GT: Problem Set 2: Problems and Solutions Uniqueness of Nash equilibria, zero sum games, evolutionary dynamics

ECE 586GT: Problem Set 2: Problems and Solutions Uniqueness of Nash equilibria, zero sum games, evolutionary dynamics Unversty of Illnos Fall 08 ECE 586GT: Problem Set : Problems and Solutons Unqueness of Nash equlbra, zero sum games, evolutonary dynamcs Due: Tuesday, Sept. 5, at begnnng of class Readng: Course notes,

More information

II. Random Variables. Variable Types. Variables Map Outcomes to Numbers

II. Random Variables. Variable Types. Variables Map Outcomes to Numbers II. Random Varables Random varables operate n much the same way as the outcomes or events n some arbtrary sample space the dstncton s that random varables are smply outcomes that are represented numercally.

More information

Scribe: Chris Berlind Date: Feb 1, 2010

Scribe: Chris Berlind Date: Feb 1, 2010 CS/CNS/EE 253: Advanced Topcs n Machne Learnng Topc: Dealng wth Partal Feedback #2 Lecturer: Danel Golovn Scrbe: Chrs Berlnd Date: Feb 1, 2010 8.1 Revew In the prevous lecture we began lookng at algorthms

More information

Problems to be discussed at the 5 th seminar Suggested solutions

Problems to be discussed at the 5 th seminar Suggested solutions ECON4260 Behavoral Economcs Problems to be dscussed at the 5 th semnar Suggested solutons Problem 1 a) Consder an ultmatum game n whch the proposer gets, ntally, 100 NOK. Assume that both the proposer

More information

Economics 1410 Fall Section 7 Notes 1. Define the tax in a flexible way using T (z), where z is the income reported by the agent.

Economics 1410 Fall Section 7 Notes 1. Define the tax in a flexible way using T (z), where z is the income reported by the agent. Economcs 1410 Fall 2017 Harvard Unversty Yaan Al-Karableh Secton 7 Notes 1 I. The ncome taxaton problem Defne the tax n a flexble way usng T (), where s the ncome reported by the agent. Retenton functon:

More information

AC : THE DIAGRAMMATIC AND MATHEMATICAL APPROACH OF PROJECT TIME-COST TRADEOFFS

AC : THE DIAGRAMMATIC AND MATHEMATICAL APPROACH OF PROJECT TIME-COST TRADEOFFS AC 2008-1635: THE DIAGRAMMATIC AND MATHEMATICAL APPROACH OF PROJECT TIME-COST TRADEOFFS Kun-jung Hsu, Leader Unversty Amercan Socety for Engneerng Educaton, 2008 Page 13.1217.1 Ttle of the Paper: The Dagrammatc

More information

Lecture 7. We now use Brouwer s fixed point theorem to prove Nash s theorem.

Lecture 7. We now use Brouwer s fixed point theorem to prove Nash s theorem. Topcs on the Border of Economcs and Computaton December 11, 2005 Lecturer: Noam Nsan Lecture 7 Scrbe: Yoram Bachrach 1 Nash s Theorem We begn by provng Nash s Theorem about the exstance of a mxed strategy

More information

Solution of periodic review inventory model with general constrains

Solution of periodic review inventory model with general constrains Soluton of perodc revew nventory model wth general constrans Soluton of perodc revew nventory model wth general constrans Prof Dr J Benkő SZIU Gödöllő Summary Reasons for presence of nventory (stock of

More information

Response Time Analysis of Asynchronous Periodic and Sporadic Tasks Scheduled by a Fixed-Priority Preemptive Algorithm

Response Time Analysis of Asynchronous Periodic and Sporadic Tasks Scheduled by a Fixed-Priority Preemptive Algorithm Response Tme Analyss of Asynchronous Perodc and Sporadc Tasks Scheduled by a Fxed-Prorty Preemptve Algorthm Manuel Coutnho EDISOFT /IST-UTL manuel.coutnho@edsoft.pt José Rufno FCUL ruf@d.fc.ul.pt Carlos

More information

Cyclic Scheduling in a Job shop with Multiple Assembly Firms

Cyclic Scheduling in a Job shop with Multiple Assembly Firms Proceedngs of the 0 Internatonal Conference on Industral Engneerng and Operatons Management Kuala Lumpur, Malaysa, January 4, 0 Cyclc Schedulng n a Job shop wth Multple Assembly Frms Tetsuya Kana and Koch

More information

Finance 402: Problem Set 1 Solutions

Finance 402: Problem Set 1 Solutions Fnance 402: Problem Set 1 Solutons Note: Where approprate, the fnal answer for each problem s gven n bold talcs for those not nterested n the dscusson of the soluton. 1. The annual coupon rate s 6%. A

More information

c slope = -(1+i)/(1+π 2 ) MRS (between consumption in consecutive time periods) price ratio (across consecutive time periods)

c slope = -(1+i)/(1+π 2 ) MRS (between consumption in consecutive time periods) price ratio (across consecutive time periods) CONSUMPTION-SAVINGS FRAMEWORK (CONTINUED) SEPTEMBER 24, 2013 The Graphcs of the Consumpton-Savngs Model CONSUMER OPTIMIZATION Consumer s decson problem: maxmze lfetme utlty subject to lfetme budget constrant

More information

A New Uniform-based Resource Constrained Total Project Float Measure (U-RCTPF) Roni Levi. Research & Engineering, Haifa, Israel

A New Uniform-based Resource Constrained Total Project Float Measure (U-RCTPF) Roni Levi. Research & Engineering, Haifa, Israel Management Studes, August 2014, Vol. 2, No. 8, 533-540 do: 10.17265/2328-2185/2014.08.005 D DAVID PUBLISHING A New Unform-based Resource Constraned Total Project Float Measure (U-RCTPF) Ron Lev Research

More information

Financial mathematics

Financial mathematics Fnancal mathematcs Jean-Luc Bouchot jean-luc.bouchot@drexel.edu February 19, 2013 Warnng Ths s a work n progress. I can not ensure t to be mstake free at the moment. It s also lackng some nformaton. But

More information

Consumption Based Asset Pricing

Consumption Based Asset Pricing Consumpton Based Asset Prcng Mchael Bar Aprl 25, 208 Contents Introducton 2 Model 2. Prcng rsk-free asset............................... 3 2.2 Prcng rsky assets................................ 4 2.3 Bubbles......................................

More information

Optimising a general repair kit problem with a service constraint

Optimising a general repair kit problem with a service constraint Optmsng a general repar kt problem wth a servce constrant Marco Bjvank 1, Ger Koole Department of Mathematcs, VU Unversty Amsterdam, De Boelelaan 1081a, 1081 HV Amsterdam, The Netherlands Irs F.A. Vs Department

More information

Bayesian Budget Feasibility with Posted Pricing

Bayesian Budget Feasibility with Posted Pricing Bayesan Budget Feasblty wth Posted Prcng Erc Balkansk Harvard Unversty School of Engneerng and Appled Scences ercbalkansk@g.harvard.edu Jason D. Hartlne Northwestern Unversty EECS Department hartlne@eecs.northwestern.edu

More information

Optimal Service-Based Procurement with Heterogeneous Suppliers

Optimal Service-Based Procurement with Heterogeneous Suppliers Optmal Servce-Based Procurement wth Heterogeneous Supplers Ehsan Elah 1 Saf Benjaafar 2 Karen L. Donohue 3 1 College of Management, Unversty of Massachusetts, Boston, MA 02125 2 Industral & Systems Engneerng,

More information

UNIVERSITY OF NOTTINGHAM

UNIVERSITY OF NOTTINGHAM UNIVERSITY OF NOTTINGHAM SCHOOL OF ECONOMICS DISCUSSION PAPER 99/28 Welfare Analyss n a Cournot Game wth a Publc Good by Indraneel Dasgupta School of Economcs, Unversty of Nottngham, Nottngham NG7 2RD,

More information

ECO 209Y MACROECONOMIC THEORY AND POLICY LECTURE 8: THE OPEN ECONOMY WITH FIXED EXCHANGE RATES

ECO 209Y MACROECONOMIC THEORY AND POLICY LECTURE 8: THE OPEN ECONOMY WITH FIXED EXCHANGE RATES ECO 209 MACROECONOMIC THEOR AND POLIC LECTURE 8: THE OPEN ECONOM WITH FIXED EXCHANGE RATES Gustavo Indart Slde 1 OPEN ECONOM UNDER FIXED EXCHANGE RATES Let s consder an open economy wth no captal moblty

More information

University of Toronto November 9, 2006 ECO 209Y MACROECONOMIC THEORY. Term Test #1 L0101 L0201 L0401 L5101 MW MW 1-2 MW 2-3 W 6-8

University of Toronto November 9, 2006 ECO 209Y MACROECONOMIC THEORY. Term Test #1 L0101 L0201 L0401 L5101 MW MW 1-2 MW 2-3 W 6-8 Department of Economcs Prof. Gustavo Indart Unversty of Toronto November 9, 2006 SOLUTION ECO 209Y MACROECONOMIC THEORY Term Test #1 A LAST NAME FIRST NAME STUDENT NUMBER Crcle your secton of the course:

More information

University of Toronto November 9, 2006 ECO 209Y MACROECONOMIC THEORY. Term Test #1 L0101 L0201 L0401 L5101 MW MW 1-2 MW 2-3 W 6-8

University of Toronto November 9, 2006 ECO 209Y MACROECONOMIC THEORY. Term Test #1 L0101 L0201 L0401 L5101 MW MW 1-2 MW 2-3 W 6-8 Department of Economcs Prof. Gustavo Indart Unversty of Toronto November 9, 2006 SOLUTION ECO 209Y MACROECONOMIC THEORY Term Test #1 C LAST NAME FIRST NAME STUDENT NUMBER Crcle your secton of the course:

More information

Equilibrium in Prediction Markets with Buyers and Sellers

Equilibrium in Prediction Markets with Buyers and Sellers Equlbrum n Predcton Markets wth Buyers and Sellers Shpra Agrawal Nmrod Megddo Benamn Armbruster Abstract Predcton markets wth buyers and sellers of contracts on multple outcomes are shown to have unque

More information

Clearing Notice SIX x-clear Ltd

Clearing Notice SIX x-clear Ltd Clearng Notce SIX x-clear Ltd 1.0 Overvew Changes to margn and default fund model arrangements SIX x-clear ( x-clear ) s closely montorng the CCP envronment n Europe as well as the needs of ts Members.

More information

COS 511: Theoretical Machine Learning. Lecturer: Rob Schapire Lecture #21 Scribe: Lawrence Diao April 23, 2013

COS 511: Theoretical Machine Learning. Lecturer: Rob Schapire Lecture #21 Scribe: Lawrence Diao April 23, 2013 COS 511: Theoretcal Machne Learnng Lecturer: Rob Schapre Lecture #21 Scrbe: Lawrence Dao Aprl 23, 2013 1 On-Lne Log Loss To recap the end of the last lecture, we have the followng on-lne problem wth N

More information

Improved Response-Time Analysis Calculations

Improved Response-Time Analysis Calculations Improved Response-Tme Analyss Calculatons Mkael Sjödn Hans Hansson 2& Department of Computer Systems 2 Dept. of Computer Engneerng Uppsala Unversty Mälardalens Högskola Sweden Sweden fmc,hanshg@docs.uu.se

More information

Macroeconomic Theory and Policy

Macroeconomic Theory and Policy ECO 209 Macroeconomc Theory and Polcy Lecture 7: The Open Economy wth Fxed Exchange Rates Gustavo Indart Slde 1 Open Economy under Fxed Exchange Rates Let s consder an open economy wth no captal moblty

More information

>1 indicates country i has a comparative advantage in production of j; the greater the index, the stronger the advantage. RCA 1 ij

>1 indicates country i has a comparative advantage in production of j; the greater the index, the stronger the advantage. RCA 1 ij 69 APPENDIX 1 RCA Indces In the followng we present some maor RCA ndces reported n the lterature. For addtonal varants and other RCA ndces, Memedovc (1994) and Vollrath (1991) provde more thorough revews.

More information

ISE High Income Index Methodology

ISE High Income Index Methodology ISE Hgh Income Index Methodology Index Descrpton The ISE Hgh Income Index s desgned to track the returns and ncome of the top 30 U.S lsted Closed-End Funds. Index Calculaton The ISE Hgh Income Index s

More information

AFRL-IF-WP-TR

AFRL-IF-WP-TR AFRL-IF-WP-TR-2006-1509 POWERTAP: SYSTEM-WIDE POWER MANAGEMENT THROUGH POWER- AWARE SYSTEM SOFTWARE AND HARDWARE Babak Falsaf and Raj Rajkumar Carnege Mellon Unversty Computer Archtecture Lab (CALCM) Real-Tme

More information

Survey of Math: Chapter 22: Consumer Finance Borrowing Page 1

Survey of Math: Chapter 22: Consumer Finance Borrowing Page 1 Survey of Math: Chapter 22: Consumer Fnance Borrowng Page 1 APR and EAR Borrowng s savng looked at from a dfferent perspectve. The dea of smple nterest and compound nterest stll apply. A new term s the

More information

Creating a zero coupon curve by bootstrapping with cubic splines.

Creating a zero coupon curve by bootstrapping with cubic splines. MMA 708 Analytcal Fnance II Creatng a zero coupon curve by bootstrappng wth cubc splnes. erg Gryshkevych Professor: Jan R. M. Röman 0.2.200 Dvson of Appled Mathematcs chool of Educaton, Culture and Communcaton

More information

A Distributed Algorithm for Constrained Multi-Robot Task Assignment for Grouped Tasks

A Distributed Algorithm for Constrained Multi-Robot Task Assignment for Grouped Tasks A Dstrbuted Algorthm for Constraned Mult-Robot Tas Assgnment for Grouped Tass Lngzh Luo Robotcs Insttute Carnege Mellon Unversty Pttsburgh, PA 15213 lngzhl@cs.cmu.edu Nlanjan Charaborty Robotcs Insttute

More information

Ch Rival Pure private goods (most retail goods) Non-Rival Impure public goods (internet service)

Ch Rival Pure private goods (most retail goods) Non-Rival Impure public goods (internet service) h 7 1 Publc Goods o Rval goods: a good s rval f ts consumpton by one person precludes ts consumpton by another o Excludable goods: a good s excludable f you can reasonably prevent a person from consumng

More information

Measures of Spread IQR and Deviation. For exam X, calculate the mean, median and mode. For exam Y, calculate the mean, median and mode.

Measures of Spread IQR and Deviation. For exam X, calculate the mean, median and mode. For exam Y, calculate the mean, median and mode. Part 4 Measures of Spread IQR and Devaton In Part we learned how the three measures of center offer dfferent ways of provdng us wth a sngle representatve value for a data set. However, consder the followng

More information

Topics on the Border of Economics and Computation November 6, Lecture 2

Topics on the Border of Economics and Computation November 6, Lecture 2 Topcs on the Border of Economcs and Computaton November 6, 2005 Lecturer: Noam Nsan Lecture 2 Scrbe: Arel Procacca 1 Introducton Last week we dscussed the bascs of zero-sum games n strategc form. We characterzed

More information

Parallel Prefix addition

Parallel Prefix addition Marcelo Kryger Sudent ID 015629850 Parallel Prefx addton The parallel prefx adder presented next, performs the addton of two bnary numbers n tme of complexty O(log n) and lnear cost O(n). Lets notce the

More information

Single-Item Auctions. CS 234r: Markets for Networks and Crowds Lecture 4 Auctions, Mechanisms, and Welfare Maximization

Single-Item Auctions. CS 234r: Markets for Networks and Crowds Lecture 4 Auctions, Mechanisms, and Welfare Maximization CS 234r: Markets for Networks and Crowds Lecture 4 Auctons, Mechansms, and Welfare Maxmzaton Sngle-Item Auctons Suppose we have one or more tems to sell and a pool of potental buyers. How should we decde

More information

occurrence of a larger storm than our culvert or bridge is barely capable of handling? (what is The main question is: What is the possibility of

occurrence of a larger storm than our culvert or bridge is barely capable of handling? (what is The main question is: What is the possibility of Module 8: Probablty and Statstcal Methods n Water Resources Engneerng Bob Ptt Unversty of Alabama Tuscaloosa, AL Flow data are avalable from numerous USGS operated flow recordng statons. Data s usually

More information

Evaluating Performance

Evaluating Performance 5 Chapter Evaluatng Performance In Ths Chapter Dollar-Weghted Rate of Return Tme-Weghted Rate of Return Income Rate of Return Prncpal Rate of Return Daly Returns MPT Statstcs 5- Measurng Rates of Return

More information

A HEURISTIC SOLUTION OF MULTI-ITEM SINGLE LEVEL CAPACITATED DYNAMIC LOT-SIZING PROBLEM

A HEURISTIC SOLUTION OF MULTI-ITEM SINGLE LEVEL CAPACITATED DYNAMIC LOT-SIZING PROBLEM A eurstc Soluton of Mult-Item Sngle Level Capactated Dynamc Lot-Szng Problem A EUISTIC SOLUTIO OF MULTI-ITEM SIGLE LEVEL CAPACITATED DYAMIC LOT-SIZIG POBLEM Sultana Parveen Department of Industral and

More information

Chapter 10 Making Choices: The Method, MARR, and Multiple Attributes

Chapter 10 Making Choices: The Method, MARR, and Multiple Attributes Chapter 0 Makng Choces: The Method, MARR, and Multple Attrbutes INEN 303 Sergy Butenko Industral & Systems Engneerng Texas A&M Unversty Comparng Mutually Exclusve Alternatves by Dfferent Evaluaton Methods

More information

Macroeconomic Theory and Policy

Macroeconomic Theory and Policy ECO 209 Macroeconomc Theory and Polcy Lecture 7: The Open Economy wth Fxed Exchange Rates Gustavo Indart Slde 1 Open Economy under Fxed Exchange Rates Let s consder an open economy wth no captal moblty

More information

A Constant-Factor Approximation Algorithm for Network Revenue Management

A Constant-Factor Approximation Algorithm for Network Revenue Management A Constant-Factor Approxmaton Algorthm for Networ Revenue Management Yuhang Ma 1, Paat Rusmevchentong 2, Ma Sumda 1, Huseyn Topaloglu 1 1 School of Operatons Research and Informaton Engneerng, Cornell

More information

Elton, Gruber, Brown, and Goetzmann. Modern Portfolio Theory and Investment Analysis, 7th Edition. Solutions to Text Problems: Chapter 9

Elton, Gruber, Brown, and Goetzmann. Modern Portfolio Theory and Investment Analysis, 7th Edition. Solutions to Text Problems: Chapter 9 Elton, Gruber, Brown, and Goetzmann Modern Portfolo Theory and Investment Analyss, 7th Edton Solutons to Text Problems: Chapter 9 Chapter 9: Problem In the table below, gven that the rskless rate equals

More information

Finite Math - Fall Section Future Value of an Annuity; Sinking Funds

Finite Math - Fall Section Future Value of an Annuity; Sinking Funds Fnte Math - Fall 2016 Lecture Notes - 9/19/2016 Secton 3.3 - Future Value of an Annuty; Snkng Funds Snkng Funds. We can turn the annutes pcture around and ask how much we would need to depost nto an account

More information

A Bootstrap Confidence Limit for Process Capability Indices

A Bootstrap Confidence Limit for Process Capability Indices A ootstrap Confdence Lmt for Process Capablty Indces YANG Janfeng School of usness, Zhengzhou Unversty, P.R.Chna, 450001 Abstract The process capablty ndces are wdely used by qualty professonals as an

More information

Taxation and Externalities. - Much recent discussion of policy towards externalities, e.g., global warming debate/kyoto

Taxation and Externalities. - Much recent discussion of policy towards externalities, e.g., global warming debate/kyoto Taxaton and Externaltes - Much recent dscusson of polcy towards externaltes, e.g., global warmng debate/kyoto - Increasng share of tax revenue from envronmental taxaton 6 percent n OECD - Envronmental

More information

We consider the problem of scheduling trains and containers (or trucks and pallets)

We consider the problem of scheduling trains and containers (or trucks and pallets) Schedulng Trans and ontaners wth Due Dates and Dynamc Arrvals andace A. Yano Alexandra M. Newman Department of Industral Engneerng and Operatons Research, Unversty of alforna, Berkeley, alforna 94720-1777

More information

PASS Sample Size Software. :log

PASS Sample Size Software. :log PASS Sample Sze Software Chapter 70 Probt Analyss Introducton Probt and lot analyss may be used for comparatve LD 50 studes for testn the effcacy of drus desned to prevent lethalty. Ths proram module presents

More information

Dr. A. Sudhakaraiah* V. Rama Latha E.Gnana Deepika

Dr. A. Sudhakaraiah* V. Rama Latha E.Gnana Deepika Internatonal Journal Of Scentfc & Engneerng Research, Volume, Issue 6, June-0 ISSN - Splt Domnatng Set of an Interval Graph Usng an Algorthm. Dr. A. Sudhakaraah* V. Rama Latha E.Gnana Deepka Abstract :

More information

Lecture Note 2 Time Value of Money

Lecture Note 2 Time Value of Money Seg250 Management Prncples for Engneerng Managers Lecture ote 2 Tme Value of Money Department of Systems Engneerng and Engneerng Management The Chnese Unversty of Hong Kong Interest: The Cost of Money

More information

3/3/2014. CDS M Phil Econometrics. Vijayamohanan Pillai N. Truncated standard normal distribution for a = 0.5, 0, and 0.5. CDS Mphil Econometrics

3/3/2014. CDS M Phil Econometrics. Vijayamohanan Pillai N. Truncated standard normal distribution for a = 0.5, 0, and 0.5. CDS Mphil Econometrics Lmted Dependent Varable Models: Tobt an Plla N 1 CDS Mphl Econometrcs Introducton Lmted Dependent Varable Models: Truncaton and Censorng Maddala, G. 1983. Lmted Dependent and Qualtatve Varables n Econometrcs.

More information

Linear Combinations of Random Variables and Sampling (100 points)

Linear Combinations of Random Variables and Sampling (100 points) Economcs 30330: Statstcs for Economcs Problem Set 6 Unversty of Notre Dame Instructor: Julo Garín Sprng 2012 Lnear Combnatons of Random Varables and Samplng 100 ponts 1. Four-part problem. Go get some

More information

Chapter 3 Student Lecture Notes 3-1

Chapter 3 Student Lecture Notes 3-1 Chapter 3 Student Lecture otes 3-1 Busness Statstcs: A Decson-Makng Approach 6 th Edton Chapter 3 Descrbng Data Usng umercal Measures 005 Prentce-Hall, Inc. Chap 3-1 Chapter Goals After completng ths chapter,

More information

CHAPTER 9 FUNCTIONAL FORMS OF REGRESSION MODELS

CHAPTER 9 FUNCTIONAL FORMS OF REGRESSION MODELS CHAPTER 9 FUNCTIONAL FORMS OF REGRESSION MODELS QUESTIONS 9.1. (a) In a log-log model the dependent and all explanatory varables are n the logarthmc form. (b) In the log-ln model the dependent varable

More information

Online Appendix for Merger Review for Markets with Buyer Power

Online Appendix for Merger Review for Markets with Buyer Power Onlne Appendx for Merger Revew for Markets wth Buyer Power Smon Loertscher Lesle M. Marx July 23, 2018 Introducton In ths appendx we extend the framework of Loertscher and Marx (forthcomng) to allow two

More information

SIMPLE FIXED-POINT ITERATION

SIMPLE FIXED-POINT ITERATION SIMPLE FIXED-POINT ITERATION The fed-pont teraton method s an open root fndng method. The method starts wth the equaton f ( The equaton s then rearranged so that one s one the left hand sde of the equaton

More information

Introduction to game theory

Introduction to game theory Introducton to game theory Lectures n game theory ECON5210, Sprng 2009, Part 1 17.12.2008 G.B. Ashem, ECON5210-1 1 Overvew over lectures 1. Introducton to game theory 2. Modelng nteractve knowledge; equlbrum

More information

The evaluation method of HVAC system s operation performance based on exergy flow analysis and DEA method

The evaluation method of HVAC system s operation performance based on exergy flow analysis and DEA method The evaluaton method of HVAC system s operaton performance based on exergy flow analyss and DEA method Xng Fang, Xnqao Jn, Yonghua Zhu, Bo Fan Shangha Jao Tong Unversty, Chna Overvew 1. Introducton 2.

More information

Dr.Ram Manohar Lohia Avadh University, Faizabad , (Uttar Pradesh) INDIA 1 Department of Computer Science & Engineering,

Dr.Ram Manohar Lohia Avadh University, Faizabad , (Uttar Pradesh) INDIA 1 Department of Computer Science & Engineering, Vnod Kumar et. al. / Internatonal Journal of Engneerng Scence and Technology Vol. 2(4) 21 473-479 Generalzaton of cost optmzaton n (S-1 S) lost sales nventory model Vnod Kumar Mshra 1 Lal Sahab Sngh 2

More information

Static (or Simultaneous- Move) Games of Complete Information

Static (or Simultaneous- Move) Games of Complete Information Statc (or Smultaneous- Move) Games of Complete Informaton Nash Equlbrum Best Response Functon F. Valognes - Game Theory - Chp 3 Outlne of Statc Games of Complete Informaton Introducton to games Normal-form

More information

Understanding Annuities. Some Algebraic Terminology.

Understanding Annuities. Some Algebraic Terminology. Understandng Annutes Ma 162 Sprng 2010 Ma 162 Sprng 2010 March 22, 2010 Some Algebrac Termnology We recall some terms and calculatons from elementary algebra A fnte sequence of numbers s a functon of natural

More information

Analysis of the Influence of Expenditure Policies of Government on Macroeconomic behavior of an Agent- Based Artificial Economic System

Analysis of the Influence of Expenditure Policies of Government on Macroeconomic behavior of an Agent- Based Artificial Economic System Analyss of the Influence of Expendture olces of Government on Macroeconomc behavor of an Agent- Based Artfcal Economc System Shgeak Ogbayash 1 and Kouse Takashma 1 1 School of Socal Systems Scence Chba

More information

Microeconomics: BSc Year One Extending Choice Theory

Microeconomics: BSc Year One Extending Choice Theory mcroeconomcs notes from http://www.economc-truth.co.uk by Tm Mller Mcroeconomcs: BSc Year One Extendng Choce Theory Consumers, obvously, mostly have a choce of more than two goods; and to fnd the favourable

More information

Least Cost Strategies for Complying with New NOx Emissions Limits

Least Cost Strategies for Complying with New NOx Emissions Limits Least Cost Strateges for Complyng wth New NOx Emssons Lmts Internatonal Assocaton for Energy Economcs New England Chapter Presented by Assef A. Zoban Tabors Caramans & Assocates Cambrdge, MA 02138 January

More information

How to Share a Secret, Infinitely

How to Share a Secret, Infinitely How to Share a Secret, Infntely Ilan Komargodsk Mon Naor Eylon Yogev Abstract Secret sharng schemes allow a dealer to dstrbute a secret pece of nformaton among several partes such that only qualfed subsets

More information

Robust Stochastic Lot-Sizing by Means of Histograms

Robust Stochastic Lot-Sizing by Means of Histograms Robust Stochastc Lot-Szng by Means of Hstograms Abstract Tradtonal approaches n nventory control frst estmate the demand dstrbuton among a predefned famly of dstrbutons based on data fttng of hstorcal

More information

The Integration of the Israel Labour Force Survey with the National Insurance File

The Integration of the Israel Labour Force Survey with the National Insurance File The Integraton of the Israel Labour Force Survey wth the Natonal Insurance Fle Natale SHLOMO Central Bureau of Statstcs Kanfey Nesharm St. 66, corner of Bach Street, Jerusalem Natales@cbs.gov.l Abstact:

More information

EVOLUTIONARY OPTIMIZATION OF RESOURCE ALLOCATION IN REPETITIVE CONSTRUCTION SCHEDULES

EVOLUTIONARY OPTIMIZATION OF RESOURCE ALLOCATION IN REPETITIVE CONSTRUCTION SCHEDULES EVOLUTIONARY OPTIMIZATION OF RESOURCE ALLOCATION IN REPETITIVE CONSTRUCTION SCHEDULES SUBMITTED: October 2003 REVISED: September 2004 ACCEPTED: September 2005 at http://www.tcon.org/2005/18/ EDITOR: C.

More information

Mode is the value which occurs most frequency. The mode may not exist, and even if it does, it may not be unique.

Mode is the value which occurs most frequency. The mode may not exist, and even if it does, it may not be unique. 1.7.4 Mode Mode s the value whch occurs most frequency. The mode may not exst, and even f t does, t may not be unque. For ungrouped data, we smply count the largest frequency of the gven value. If all

More information