On Correctness of Nonserializable Executions

Size: px
Start display at page:

Download "On Correctness of Nonserializable Executions"

Transcription

1 Journal of Computer and System Scences 56, 688 (1998) Artcle No. SS On Correctness of Nonseralzable Executons Rajeev Rastog,* Sharad Mehrotra, - Yur Bretbart, [,1 Henry F. Korth,* and Av Slberschatz* *Bell laboratores, 600 Mountan Avenue, Murray Hll, New Jersey ; - Department of Computer Scence, Unversty of Illnos, Urbana, Ilnos 61801; [ Department of Computer Scences, Unversty of Kentucky, Lexngton, Kentucky Receved July 4, 1996 In a number of applcaton envronments (e.g., computer aded desgn), seralzablty, the tradtonally accepted noton of correctness has been found to be too restrctve, and a number of alternate crtera have been proposed n the lterature. One such crteron s predcate-wse seralzablty (PWSR) whch requres only restrctons of schedules that access subsets of the database over whch ntegrty constrants are defned to be seralzable. In ths paper, we dentfy restrctons on the structure of transacton programs, ther concurrent executon, and ther access characterstcs under whch PWSR schedules preserve database consstency. ] 1998 Academc Press Key Words: transactons; schedules; concurrency control; ntegrty constrants; database states 1. INTRODUCTION In the standard transacton model [3], a database state s sad to be consstent f all database ntegrty constrants are satsfed. Each transacton, when executed n solaton, maps a consstent database state to another consstent database state. In the case of concurrent transacton executons, database consstency s ensured by requrng that the resultng executon be seralzable; that s, equvalent to some seral executon of the transactons. Snce each transacton, when executed alone, preserves database consstency, a seralzable executon preserves database consstency. Whle ths theory s attractve from the pont of vew of smplcty, n recent years, several papers have shown that employng the standard transacton model for certan ``new'' database applcatons or n a dstrbuted database envronment has unacceptable practcal consequences. For example, n applcatons such as computer-aded desgn, where transactons are of a long duraton, the standard transacton model may result n long-duraton wats mposed by the lockng protocols. In dstrbuted database applcatons, a potental loss of the local autonomy of the partcpatng databases may result. These problems are not only ssues concernng performance but also ssues concernng usablty, snce many of the ``new'' applcatons are nteractve andor dstrbuted. 1 Work supported n part by SNF Grant IRI The approaches taken to allevate the above-mentoned problems can be broadly classfed nto the followng three categores: v The frst approach s to explot the semantcs of the database operatons, whle stll ensurng seralzablty of executons. A transacton can be consdered as a sequence of hgh-level operatons (e.g., ncrement.) Commutatvty among operatons, and not the set of read and wrtes resultng from ther executon, s used to determne conflcts between transactons, thus enhancng concurrency. Early work n ths area ncludes [10]. More recent work ncludes [,5,9,15]. v The second approach s to explot the semantcs of transactons [68]. In ths approach, a transacton s broken nto a set of subtransactons, wth each of whch a type s assocated. The applcaton admnstrator, then determnes the set of nterleavngs of the subtransactons that are acceptable and that would not result n the volaton of database consstency. As an example, consder the saga transacton model n whch a transacton T s broken nto a sequence of subtransactons T 1, T,..., T n. Each T s an ndependent actvty by tself. After the termnaton of T the locks on data tems held by T can be released and the effects of T externalzed. Thus, n the saga transacton model all possble nterleavngs of the subtransactons are permtted. v The thrd approach s to explot the knowledge of the ntegrty constrants of the system. A fundamental technque used n several applcaton domans s to partton the database nto subdatabases, each wth ts own consstency constrants. Based on the applcaton doman, assumptons can be made regardng the degree to whch these subdatabases are ndependent (as n the concept of global and local data used n some work n multdatabase systems [1]) or regardng the nature of transactons executng aganst these subdatabases (such as an assumpton of preservaton of subdatabase consstency). One such applcaton doman s the computer-aded desgn and manufacturng envronment for whch predcate-wse seralzablty (PWSR) was ntroduced as a correctness crteron n [11]. In a nutshell, the PWSR correctness crteron states that f the Copyrght 1998 by Academc Press All rghts of reproducton n any form reserved. 68

2 CORRECTNESS OF NONSERIALIZABLE EXECUTIONS 69 database consstency constrant s expressed as a conjuncton of predcates, then for each possble schedule S, the restrcton of S to operatons that access data tems n every conjunct s seralzable. In [14], the authors propose the noton of setwse seralzablty whch s smlar to that of PWSR. The database s parttoned nto atomc data sets the consstency of every one of whch mples the consstency of the entre database. A setwse seralzable schedule s one whose restrcton to each atomc data set s seralzable. Whle substantal research has been done towards developng approaches to relax the seralzablty requrement, very lttle work has been done on dentfyng what consstency guarantees result from the above approaches to extendng the standard transacton model. For example, lttle work exsts on characterzng the applcaton domans n whch the usage of the saga transacton model ensures database consstency. In ths paper, we study the formal mplcatons of choosng PWSR as the correctness crteron. The mportance of the PWSR correctness crteron has been demonstrated n [4, 11]. In [11], t was shown that the PWSR correctness crteron can be used to allevate the long-duraton wats assocated wth long-duraton transactons n computeraded desgn and manufacturng envronments. More recently, n [4] t was shown that the PWSR correctness crteron (referred to as the local seralzablty (LSR) crteron) can be used to help allevate the autonomy-nduced problems n multdatabase system applcatons. In ths paper, we explore the formal mplcatons of the assumptons that may be requred n order to ensure database consstency when PWSR s employed as the correctness crteron. The assumptons examned nclude: v Parttonng of the database nto subdatabases. v Restrctng the form of consstency constrants. v Restrctng the structure of programs that generate transactons. v Restrctng the concurrent executon of transactons. v Restrctng the order n whch transactons access data. We show what combnaton of assumptons are and are not suffcent to guarantee consstency. In [14], the authors show that setwse seralzable schedules due to the executon of straght lne transactons preserve database consstency. Our work dffers from the work n [14] n a number of ways. Frst, n addton to restrctons on the structure of transactons (e.g., straght lne), we also consder addtonal restrctons on schedules and the order n whch transactons access data (ths enables us to relax all restrctons on the structure of transactons). Second, compared to [14], we follow a more rgorous approach to provng that schedules preserve database consstency. For example, n [14], n addton to not formally defnng the noton of straght lne transactons, the authors also do not use the fact that transactons are straght lne n any of ther proofs. We further elaborate on the shortcomngs of ther proof technques n Secton 3.1. In ths paper, not only do we dentfy the restrctons under whch PWSR schedules preserve database consstency, but we also develop rgorous methodologes based on nducton arguments for showng that database consstency s ndeed preserved by the schedules. The remander of the paper s organzed as follows. In Secton, we develop our transacton and schedule models that are suted for provng that nonseralzable executons preserve database consstency. In Secton 3, we dentfy the restrctons that must be placed on PWSR schedules so that database consstency s preserved. Fnally, concludng remarks are offered n Secton 4.. PRELIMINARIES In ths secton, we develop the basc notaton that wll be used n the remander of the paper. We frst formalze the noton of database consstency n terms of the preservaton of ntegrty constrants. We then develop our transacton model to help us n reasonng about nonseralzable executons. Fnally, we dscuss our noton of correctness of a schedule..1. Database Consstency In the standard transacton model [13], a consstent database state s mplctly defned by assumng that each transacton, when executed n solaton, maps a consstent database state to another consstent database state. Correctness n case of concurrent executon s defned n terms of seralzablty. In order to develop a theory of nonseralzable executons, we must explctly defne what a consstent database state s. We do ths n terms of ntegrty constrants, whch are dscussed below. A database conssts of a fnte set, D, of data tems. For each data tem d$#d, Dom(d$) denotes the doman of d$. A database state maps every data tem d$ to a value v$, where v$ # Dom(d$). Thus, a database state, denoted by DS, can be expressed as a set of ordered pars of data tems n D and ther values, DS=[(d$, v$): d$#d and v$ # Dom(d$)]. DS has the property that f (d$, v$ 1 )#DS and (d$, v$ )#DS, then v$ 1 =v$. The restrcton of DS to data tems n dd, s denoted by DS d. Thus, DS d =[(d$, v$): d$#d and (d$, v$) # DS]. Let d 1 D, d D, and DS 1, DS be database states. The unon of DS d 1 and DS d s denoted by DS d 1 _ DS d. 1 1 The operaton s smlar to the one tradtonally defned

3 70 RASTOGI ET AL. for sets, except that DS d 1 _ DS d s undefned f (d$, v$ 1 1)# DS d 1,(d$, v$ 1 )#DS d, and v$ 1 {v$. Integrty constrants n a database, denoted by IC, dstngush nconsstent database states from consstent ones. Tradtonally, ntegrty constrants are defned as a subset of all the possble database states, and a database state s consstent f t belongs to that subset [13]. In our model, ntegrty constrants are quantfer-free frst order formulae over the language consstng of: v Numercal and strng constants (e.g., 5, 100, ``Jm''), v Functons over numerc and strng constants (e.g., +, max), v Comparson operators (e.g., >, =), and v Set of varables (data tems n D). The terms and well-formed formulae are defned as n [1]. Snce a database state maps data tems (varables) to values t can be vewed as a varable assgnment [1]. A database state, DS, s consstent f t does not volate the ntegrty constrants. Let I be the standard nterpretaton for numercal and strng constants, functon symbols, and comparson operators. Thus, a database state DS s consstent ff I < DS IC. We shall use DS < IC to denote I < DS IC. For example, consder a database consstng of data tems a, b, and an ntegrty constrant, IC=(a=b). The database state DS 1 =[(a, 5),(b, 5)] s consstent. However, the database state DS =[(a, 5),(b, 6)] s not consstent. The restrcton of a database state, DS, to data tems n dd, DS d s consstent ff there exsts a consstent database state DS 1 such that DS d =DS d 1. That s, DS d s consstent ff there exst values for the data tems that are not n d whch extend DS d to some DS 1 that s consstent. Thus, even though DS s not consstent, ts restrctons may be consstent. For example, DS above s not consstent. However, ts restrctons, DS [a] =[(a, 5)] and DS [b] = [(b, 6)] are consstent. In the remander of the paper, we shall assume that IC=C 1 7 C 7 }}} 7 C l, where IC, C e are defned over data tems n D, d e, respectvely, such that d e & d f =< for all e{ f. Thus, we assume that the database can be parttoned nto data sets d 1,..., d l such that no ntegrty constrants are present between tems n any two data sets. In the followng lemma, we establsh the relatonshp between the consstency of database states and the consstency of ts subsets. The lemma bascally states that consstency of each data set d e mples the consstency of the entre database (see Fg. 1). Thus, followng the termnology of [14], each d e would be an atomc data set. Lemma 1. Let d$ e d e and DS be a database state. l DS d$ e e=1 s consstent ff for all e=1,,..., l, DS d$ e s consstent. Proof. (o ) If l DS d$ e e=1 s consstent, then for all e=1,,..., l, DS d$ e s consstent. Ths follows drectly from the defnton of database consstency. ( O ) We now prove that f for all e=1,,..., l, DS d$ e s consstent, then l DS d$ e e=1 s consstent. Snce DS d$ e are consstent, there exst consstent database states, DS e, such that DS d$ e =DS d$ e e, e=1,,..., l. Let DS0 be a database state such that DS d e =DS d e, e=1,,..., l (such a DS 0 e 0 exsts snce d e & d f =<, e{ f ). Snce DS e < C e, DS d e =DS d e, and C 0 e e s defned only over data tems n d e, DS 0 < C e, e=1,,..., l. Thus, DS 0 < C 1 7 C 7 }}} 7 C l. Also, l DS d$ e e=1 DS0. Thus, there exsts a consstent database state DS 0 such that l DS d$ e e=1 DS0. Hence, by defnton of database consstency, l e=1 DS d$ e s consstent. K Note that t s essental for the data tems over whch conjuncts are defned to be dsjont, f Lemma 1 s to hold. If data tems over whch conjuncts are defned are not dsjont, then database state DS 0 n the proof of Lemma 1 may not exst. For example, let IC=((a=5 b=5) 7 (c =5 b = 6)). Consder d$ 1 = [a] and d$ = [c]. Let FIG. 1. Lemma 1.

4 CORRECTNESS OF NONSERIALIZABLE EXECUTIONS 71 DS d$ 1 =[(a, 5)] and DS d$ =[(c, 5)]. Thus, even though DS d$ 1 and DS d$ are consstent, DS d$ 1 _ DS d$ s nconsstent... Transactons and Schedules In ths secton, we develop the transacton model, whch devates from the standard development to facltate reasonng about nonseralzable executons. A transacton s a sequence of operatons resultng from the executon of a transacton program. A transacton program s usually wrtten n a hgh-level programmng language wth assgnments, loops, condtonal statements, and other complex control structures. Executon of a transacton program startng at dfferent database states may result n dfferent transactons. Ths observaton has serous mplcatons when dealng wth nonseralzable executons, as wll become evdent later n the paper. Formally, a transacton T =(O T, O T ), where O T = [o 1, o,..., o n ] s a set of operatons and O T s a total order on O T. An operaton o s a 3-tuple ((acton(o ), entty(o ), value(o )): acton(o ) denotes an operaton type whch s ether a read (r) or wrte (w) operaton; entty(o ) s the data tem on whch the operaton s performed. If the operaton s a read operaton, value(o ) s the value returned by the read operaton for the data tem read. For a wrte operaton, value(o ) s the value assgned to the data tem by the wrte operaton. For smplcty of the exposton, we assume that each transacton reads and wrtes a data tem at most once and that t does not read a data tem after wrtng the data tem. Our transacton defnton dffers from the way they are tradtonally defned n the lterature (see, for example, [3, 13]). We nclude, along wth every operaton, a value attrbute, n addton to acton and entty attrbutes. Snce we relax the requrement of seralzablty as the correctness crteron, we need to deal wth certan nonseralzable executons. The value attrbute helps us n provng that such nonseralzable executons preserve database consstency. A schedule s a sequence of operatons resultng from the concurrent executon of a set of transacton programs. Formally, a schedule S=({ S, O S ) s a fnte set { S of transactons, together wth a total order, O S, on all operatons of the transactons such that for any two operatons o 1, o n S and some transacton T # { S, f o 1 O T o, then o 1 O S o. We use the notaton [DS 1 ]TP [DS ] to denote the fact that when a transacton program TP executes from a database state DS 1, t results n a database state DS. Smlar notaton s used to denote executon of operatons, transactons, and schedules (the ntended meanng wll be clear from the context). We next ntroduce some notaton for sequences of operatons. Let seq=o 1 o }}}o n be a subsequence of a schedule S (seq may be a transacton), and let dd. We defne the followng: v RS(seq) denotes the set of data tems read by operatons n seq: RS(seq)=[y: o # seq 7 y=entty(o ) 7 acton(o )=r]. v read(seq) denotes the database state ``seen'' as a result of the read operatons n seq: read(seq)=[( y, z): o # seq 7 y=entty(o ) 7 z =value(o ) 7 acton(o )=r]. v WS(seq) denotes the set of data tems wrtten by operatons n seq: WS(seq)=[y: o # seq 7 y=entty(o ) 7 acton(o )=w]. v wrte(seq) denotes the effects that the wrte operatons n seq have on the database: wrte(seq)=[( y, z): o # seq 7 y=entty(o ) 7 z =value(o ) 7 acton(o )=w]. v seq d denotes the subsequence of seq consstng of all operatons o such that entty(o )#d. We llustrate the above notaton n Example 1 below, where T s used to denote the transacton resultng from the executon of the transacton program TP. Operatons belongng to transacton T are subscrpted by. Thus, a read operaton on data tem a belongng to transacton T 1 s denoted by r 1 (a, v), where v s the value returned by the read operaton (ths notaton s used throughout the paper). Example 1. Consder the transacton programs TP 1 and TP : RP 1 : f(a0) then b :=c else c :=d TP : d :=a Consder the schedule S below resultng from the executon of TP 1 and TP from database state DS 1 =[(a, 0),(b, 10), (c, 5),(d, 10)], S: r 1 (a, 0),r 1 (a, 0),w (d, 0),r 1 (c, 5),w 1 (b, 5). In S, the transactons correspondng to TP 1 and TP are T 1 : r 1 (a, 0), r 1 (c, 5), w 1 (b, 5) T : r (a, 0), w (d, 0).

5 7 RASTOGI ET AL. Note that [DS 1 ]S[DS ], where DS =[(a, 0),(b, 5), (c, 5),(d, 0)]. The followng assertons can be made about transactons T 1 and T : RS(T 1 )==[a, c] read(t 1 )=[(a, 0),(c, 5)] WS(T 1 )=[b] wrte(t 1 )=[(b, 5)] T [b] 1 =w 1 (b, 5) S [a, c] =r (a, 0), r 1 (a, 0), r 1 (c, 5)..3. Strong Correctness In the tradtonal transacton model, transacton programs, when executed n solaton, are assumed to be correct; that s, transactons preserve the ntegrty constrants of the database. The task of the concurrency control scheme s to ensure that schedules resultng from the concurrent executon of the transacton programs preserve database consstency. However, a concurrency control scheme whch ensures that schedules preserve the database ntegrty constrants does not necessarly prevent transactons from ``seeng'' nconsstent database states. To overcome ths, we defne the noton of strong correctness, whch requres that transactons n a schedule read consstent data values, n addton to the requrement that schedules preserve database ntegrty constrants. Defnton 1. A schedule S s strongly correct ff v for all consstent database states DS 1, f t s the case that [DS 1 ]S[DS ], then DS s consstent, and v for all transactons T # { S, read(t ) s consstent. Every seralzable schedule s strongly correct, but there are strongly correct schedules that are not seralzable. For example, consder a database n a unversty envronment n whch there s one relaton for every course beng offered durng the semester that contans the students regstered for the course, and a relaton contanng the total hours that each student s regstered for durng the semester. An ntegrty constrant on each course relaton specfes the maxmum number of students that can be regstered for the course, and an ntegrty constrant on the student relaton specfes that each regstered student must be regstered for a certan mnmum number of hours. A regstraton transacton that updates the database s executed when a student regsters for courses at the start of the semester. Each regstraton transacton for a student conssts of subtransactons, each of whch nserts a record for the student n the relatons for the courses that the student wshes to regster for (the student record s not nserted nto a course relaton f the number of students regstered for the course exceeds the maxmum number of students that can be regstered for In ths paper, unless stated otherwse, by seralzablty we refer to conflct seralzablty (CSR) [13]. the course) and a fnal subtransacton that nserts the student record nto the students database, and updates the number of hours that the student s regstered for (f the number of hours that the student s regstered for s less than the mnmum, then the entre regstraton transacton s aborted and ts updates are rolled back). Thus, t follows that each regstraton transacton, when executed n solaton, preserves the database ntegrty constrants. Furthermore, the ntegrty constrants are also preserved by schedules that are not seralzable wth respect to regstraton transactons, but seralzable wth respect to ther subtransactons (snce ntegrty constrants do not span multple relatons, and each subtransacton updates a sngle relaton and preserves the ntegrty constrants for the relaton). In the next secton, we show that PWSR schedules are strongly correct f transacton programs and ntegrty constrants are of a restrcted nature. In the remander of the paper, we assume that all transacton programs and transactons are correct. 3. PREDICATEWISE SERIALIZABILITY The noton of predcate-wse seralzablty (PWSR) was ntroduced as an alternatve consstency crteron to seralzablty for applcatons wth long-duraton transactons, CADCAM applcatons, etc. [11]. Formally, PWSR s defned as follows. Defnton. A schedule S s sad to be PWSR f for all e, e=1,,..., l, S d e s seralzable. Snce PWSR schedules may not be seralzable, they, n general, do not preserve database consstency. Ths s llustrated by the followng example. Example. Consder a database contanng data tems D=[a, b, c] and the followng transacton programs TP 1 and TP : TP 1 : a :=1 ; f(c>0) then b := b +1; TP : f(a>0) then c :=b. Let IC=(C 1 7 C ), where C 1 =(a>0 b>0) and C = (c>0). The conjuncts are defned over dsjont sets of data tems. Consder the followng schedule resultng from the executon of TP 1 and TP from database state [(a, &1), (b, &1),(c, 1)], S: w 1 (a, 1),r (a, 1),r (b, &1),w (c, &1),r 1 (c, &1). The database state resultng from the executon of the above schedule s [(a, 1),(b, &1),(c, &1)], whch s nconsstent. Thus, PWSR schedules may not be strongly correct.

6 CORRECTNESS OF NONSERIALIZABLE EXECUTIONS 73 In the followng three subsectons, we dentfy dfferent sets of restrctons under whch PWSR schedules are strongly correct. We consder 1. restrctng the structure of transacton programs to be straght lne,. restrctng schedules to be ACA-lke, and 3. restrctng transactons to access data tems n conjuncts n an ordered fashon. Restrctons 1 and 3 permt a hgh degree of concurrency, but mpose orthogonal sets of constrants on the nature of transactons. Restrcton, on the other hand, permts arbtrary transactons, but could result n a lower degree of concurrency. Only restrcton 1 s consdered n [14] Restrctng Transacton Programs Let us examne the transacton programs whose concurrent executon resulted n a loss of database consstency n Example. In Example, transacton program TP 1 read the value of data tem c as beng less than 0. Thus, t dd not execute ts wrte operaton on data tem b. One way of preventng ths s to restrct transacton programs such that the structure of the transacton that results from ther executon s ndependent of the state from whch the transacton program executes. We refer to such transacton programs as fxed-structured transacton programs. In order to defne and reason about fxed-structured transacton programs, we need some addtonal notaton. Let seq be a subsequence of a schedule S and let p be an operaton n S: v struct(seq) denotes the structure assocated wth seq, whch s derved from seq by gnorng the values assocated wth the operatons n seq. Thus every operaton o n struct(seq) s a -tuple (acton(o ), entty(o )). v before(seq, p, S) denotes the subsequence of seq consstng of all the operatons that precede p n S. Ifp belongs to seq, then before(seq, p, S) ncludes p. v after(seq, p, S) denotes the subsequence of seq consstng of all operatons not n before(seq, p, S). Thus, n Example 1, f p=w (d, 0), then struct(t 1 )=r 1 (a), r 1 (c), w 1 (b); before(t, p, S)=r (a, 0),w (d, 0); after(t 1, p, S)=r 1 (c, 5),w 1 (b, 5). We are now n a poston to defne fxed-structured transacton programs. Defnton 3. Transacton program TP has a fxedstructure f for all pars (DS 1, DS ) of database states, struct(t 1 )=struct(t ), where T 1 and T are transactons resultng from the executon of TP from DS 1 and DS, respectvely. Note that n Example, the transacton program TP 1 does not have a fxed-structure. However, t s easy to see that TP 1 can be converted nto the followng fxed-structured transacton program TP$ 1 : TP$ 1 : a :=1 ; f(c>0) then b := b +1 else b :=b. If we replace TP 1 wth TP$ 1 n Example, then the schedule n the example would not be PWSR snce the restrcton of the schedule to the set of data tems n conjunct C 1 would not be seralzable. It can be shown that PWSR schedules that result from the executon of fxed-structured transacton programs are strongly correct. To prove ths, we need to frst show that every transacton n a PWSR schedule S ``sees'' a consstent database state. Snce a PWSR schedule may not be seralzable, correctness cannot be smply proved usng nducton over the order n whch transactons are seralzed n the schedule. In [14], the authors use nducton over the seralzaton order of transactons accessng each d e n order to prove correctness of schedules. However, ths approach to provng that PWSR schedules preserve database consstency s ncorrect snce a transacton T that may be frst n the seralzaton order of transactons accessng d e may not necessarly be frst n the seralzaton order of transactons accessng d f. As a result, snce when performng nducton, t s not known f data tems n d f read by T are consstent (the data tems n d f read by T could have been wrtten by a dfferent transacton T j seralzed before T ), we cannot conclude that T leaves d e n a consstent state. In Example, the seralzaton order of transactons s T 1 T on d 1 and T T 1 on d. Both T 1 and T read nconsstent data on d and d 1 (wrtten by T and T 1 ), respectvely. As a result, t s not possble to prove the correctness of PWSR schedules by nductng on the seralzaton order of transactons on data sets. Rather, to prove that transactons see a consstent database state, we use nducton over the order n whch operatons occur n the schedule. We show that for each operaton p and transacton T n a schedule S, the set of data tems that T reads before the occurrence of p, that s, read(before(t, p, S)), s consstent. Thus, by consderng p to be the last operaton n S, we can show that every transacton reads consstent data and leaves the database n a consstent state. It s trval to see that the clam holds f p s the frst operaton n S. Assume that the clam holds for every operaton n S before the occurrence of p. We need to show that for

7 74 RASTOGI ET AL. FIG.. Lemma. each transacton T, read(before(t, p, S)) s consstent. Let p belong to some transacton T and, further, let entty( p)#d k, where d k s the set of data tems n conjunct C k. By nducton hypothess, read(before(t j, p, S)) for each T j {T s consstent. We, therefore, only need to prove that read(before(t, p, S)) s consstent. To do so, we frst dentfy the subset of data tems n d k that T can possbly read before the occurrence of p. We refer to the above set as the vew set of transacton T, before operaton p, wth respect to data tems n d k. The followng lemma states that before p, a transacton T can read all tems except those wrtten after p by transactons seralzed before t (see Fg. ). Lemma. Let S be a schedule and dd such that S d s seralzable. Let T 1, T,..., T n be a seralzaton order of transactons n S d and let p be an operaton n S. For all =1,,..., n, RS(before(T d, p, S))VS(T, p, d, S), where VS(T, p, d, S) f = {d, VS(T &1, p, d, S)&WS(after(T d &1, p, S)), =1; f >1. Proof. RS(before(T d, p, S))d=VS(T 1 1, p, d, S). Thus, the result holds for T 1. To show that the result holds for any T, =, 3,..., n we wll show that f d$#d, and d$ VS(T, p, d, S), then d$ RS(before(T d, p, S)). From the defnton of the vew set of a transacton, we have the followng property about data tems whch do not belong to a transacton's vew set. If d$#d, and d$ VS(T, p, d, S), then for some j<, d$#ws(after(t d, p, S)). Snce S d j s seralzable and T j s seralzed before T,fT reads d$, then T must read the value of d$ after t s wrtten by T j. Thus, before p, T cannot read d$; that s, d$ RS(before(T d, p, S)). K wth respect to data tems n d s defned as follows (see Fg. 3): state(t, d, S, DS 1 ) DS d 1, f =1 ={state(t &1, d, S, DS 1 ) d&ws(t d &1 ) _ wrte(t d ), &1 f >1. In the above defnton, state(t &1, d, S, DS 1 ) d&ws(t d &1 ) denotes the restrcton of state(t &1, d, S, DS 1 ) to data tems n d&ws(t d ). For data tems not n WS(T d ), &1 &1 the values are the same n the states seen by T &1 and T ; however, for data tems n WS(T d &1 ), the values n the state seen by T are those wrtten by T &1. Thus, state(t, d, S, DS 1 ) s the state of the database wth respect to data tems n d as seen by T. Note that from the defnton of state and seralzablty, t follows that v read(t d )state(t, d, S, DS), and v f t the case that [DS 1 ]S[DS ], then t must be the case that [state(t n, d, S, DS 1 )]T d n [DSd]. The state of a transacton depends on the ntal state and the seralzaton order chosen and thus, may not be unque. In Example 1, S s seralzable wth seralzaton orders T 1, T or T, T 1. Wth seralzaton order T 1, T : state(t, [a, b, c], S, DS 1 )=[(a, 0),(b, 5),(c, 5)]. We next assocate the noton of a ``state'' wth a transacton. The state assocated wth the transacton s a possble state of the data tems n a conjunct that the transacton may have seen. The state seen by the transacton s an abstract noton and may never have been physcally realzed n a schedule. Defnton 4. Let S be a schedule resultng from database state DS 1 and dd such that S d s seralzable. Let T 1, T,..., T n be a seralzaton order of transactons n S d. The state of the database before the executon of each transacton FIG. 3. State of a transacton.

8 CORRECTNESS OF NONSERIALIZABLE EXECUTIONS 75 FIG. 4. Lemma 3. However, wth seralzaton order T, T 1 : state(t, [a, b, c], S, DS 1 )=[(a, 0),(b, 10),(c, 5)]. Recall that our task s to show that under the nducton hypothess, read(before(t, p, S)) s consstent, where p s an operaton belongng to transacton T and, further, entty( p)#d k. In order to do so, we need to establsh condtons under whch database consstency s preserved durng the executon of transactons. For an arbtrary transacton, t s dffcult to make any asserton about the consstency of the database state durng ts executon, snce all we know about a transacton s that, as an atomc unt, t s correct. However, f we restrct transactons to those resultng from the executon of fxed-structured transacton programs, we can make the followng asserton about the states whch exst durng ts executon. The followng lemma states that f before p, a fxed-structure transacton program sees a consstent state, then the state of tems (excludng tems wrtten by T after p) s also consstent (see Fg. 4). Lemma 3. Let S be a schedule consstng of a transacton T whch results from the executon of a fxed-structure transacton program TP (note that S=T ). Let DS 1, DS be database states such that [DS 1 ]T [DS ], and let p be an operaton n S. If DS d _ read(before(t 1, p, S)) s consstent, then DS d&ws(after(t, p, S)) s consstent. Proof. Let DS 3 be a consstent state such that DS d _ RS(before(T, p, S)) 3 =DS d _ read(before(t 1, p, S)). Let [DS 3 ]TP [DS 4 ]. Let T$ be the transacton and let S$ be the schedule resultng from the executon of TP from DS 3 (note that S$=T$ ). Snce TP has fxed-structure, struct(t$ ) =struct(t ). Thus, there exsts an operaton p$ n S$ such that Snce DS RS(before(T, p, S)) 3 =read(before(t, p, S)) and struct(t$ )=struct(t ), read(before(t, p, S))=read(before(T$, p$, S$)). Snce wrtes are a functon of the reads before them, T and T$ result from the executon of the same transacton program TP, DS d 1 =DS d 3 and struct(t$ )=struct(t ), DS d _ WS(before(T$, p$, S$))&WS(after(T$, p$, S$)) 4 =DS d _ WS(before(T, p, S))&WS(after(T, p, S)). Snce TP s a correct transacton program, DS 4 s consstent, and the lemma has been proven. K In Lemma 3, f transacton program TP does not have a fxed-structure, then struct(t$ ) may not be equal to struct(t ). As a result, WS(after(T$, p$, S$)) may not be equal to WS(after(T, p, S)) and thus, t followsthatds d&w(after(t, p, S)) may not be consstent. Ths s llustrated by the followng example. Example 3. Consder a database contanng data tems D=[a, b, c] and the followng transacton programs TP 1 and TP : TP 1 : a :=1 ; f(c>0) then b := b +1 TP : f(a>0) then c :=b. RS(before(T, p, S))=RS(before(T$, p$, S$)) WS(after(T, p, S))=WS(after(T$, p$, S$)). and Let IC=(C 1 7 C ), where C 1 =(a>0 b>0) and C = (c>0). The conjuncts are defned over dsjont sets of data tems. Consder the followng schedule resultng from the

9 76 RASTOGI ET AL. executon of TP 1 and TP from database state [(a, &1), (b, &1),(c, 1)]: S: w 1 (a, 1),r (a, 1),r (b, &1),w (c, &1),r 1 (c, &1). Let p=w 1 (a, 1). The database state resultng from the executon of the above schedule s DS =[(a, 1), (b, &1), (c, &1)], whch s nconsstent. Thus, although DS d _ 1 read(before(t 1, p, S)) s consstent, DS d&ws(after(t 1, p, S)) s nconsstent ([(a, 1),(b, &1)]). Ths s due to the fact that TP 1 does not have fxed-structure. Our goal s to show that for every transacton T and every operaton p, read(before(t, p, S)) s consstent. We show ths n Lemma 5 usng nducton. However, before that, n the followng lemma, usng the property of fxedstructured transacton programs dentfed n Lemma 3, we show that f for a transacton T and an operaton p for all transactons T j seralzed before T, read(before)(t j, p, S)) s consstent, then T 's vew set s consstent (see Fg. 5). Lemma 4. Let S be a schedule resultng from the executon of transacton programs wth fxed-structure from database state DS, and let p be an operaton n S. For any k, k=1,,..., l, f S d k s seralzable wth seralzaton order T 1, T,..., T n, DS d k s consstent, and for all j=1,,..., &1, read(before(t j, p, S)) s consstent, then state(t, d k, S, DS) VS(T, p, d k, S) s consstent, =1,,..., n. Proof. The proof s by nducton on the number of transactons. Bass (=1). Trval, as state(t 1, d k, S, DS) d k =DS d k, whch s gven to be consstent. Inducton. Assume true for =m (1m<n); that s, f for all j=1,,..., m&1, read(before(t j, p, S)), s consstent, then state(t m, d k, S, DS) VS(T m, p, d k, S) s consstent. We need to show the above to be true for =m+1. By IH, we know state(t m, d k, S, DS) T m, p, d k, S) s consstent. By Lemma, RS(before(T d k, p, S))VS(T m m, p, d k, S), and thus, state(t m, d k, S, DS) VS(T m, p, d k, S) _ read(before(t d k, p, S)) s conss- m tent. Snce d e & d f =<, e{ f, and read(before(t m, p, S)) s consstent, by Lemma 1, t follows that state(t m, d k, S, DS) VS(T m, p, d k, S) _ read(before(t m, p, S)) s consstent. As transacton program TP m has fxed-structure, by Lemma 3, state(t m+1, d k, S, DS) d s consstent (d=vs(t m, p, d k, S) &WS(after(T d k, p, S))). Snce VS(T m m+1, p, d k, S)=d, state(t m+1, d k, S, DS) VS(T m+1, p, d k, S) s consstent. Snce RS(before(T d k, p, S)) s a subset of the vew set, we have proved that read(before(t d k, p, S)) s consstent. Further, snce the sets of data tems over whch conjuncts are defned are dsjont, t follows from Lemma 1 that read(before(t, p, S)) s consstent. In the followng lemma, we use nducton to show that for every transacton T and operaton p, read(before(t, p, S)) s consstent. For an operaton p n S, depth( p, S) denotes the number of operatons precedng operaton p (but not ncludng p) n schedule S. Thus, n Example 1, f p=w (d, 0), then depth( p, S)=. Lemma 5. Let S be a schedule consstng of transactons resultng from the executon of transacton programs wth fxed-structure from a consstent database state DS, and let p be an arbtrary operaton n S. If S s a PWSR schedule, then for all transactons T # S, read(before(t, p, S)) s consstent. K FIG. 5. Lemma 4.

10 CORRECTNESS OF NONSERIALIZABLE EXECUTIONS 77 Proof. The proof s by nducton on depth( p, S). Bass (depth( p, S)=0). There are two cases: Case 1. ( p T ). read(before(t, p, S))=<, whch s consstent. Case. ( p # T ). Snce depth( p, S)=0, t follows that read(before(t, p, S))DS, whch s consstent. Inducton. Assume true for depth( p, S)=m (m0), that s, for all transactons T # S, read(before(t, p, S)) s consstent. We need to show that for depth( p, S)=m+1, for all transactons T # S, read(before(t, p, S)) s consstent. Consder two cases: Case 1. ( p T ). Trvally by IH, read(before(t, p, S)) s consstent. Case. ( p # T ). Let entty( p)#d k for some k=1,,..., l. Snce S s PWSR, S d k s seralzable. Let a seralzaton order of transactons n S d k be T1, T,..., T &1, T, T +1,..., T n.asp# T, p T j, for all j=1,,..., &1. Thus, by Case 1 of the nducton step above, read(before)(t j, p, S)) s consstent for all j=1,,..., &1. Hence, snce transacton programs have fxed-structure, from Lemma 4, state(t, d k, S, DS) VS(t, p, d k, S) s consstent. By Lemma, RS(before(T d k, p, S))VS(T, p, d k, S). Thus, read(before(t d k, p, S)) s consstent. By IH, read(before(t D&d k, p, S)) s consstent. Snce d e & d f =<, e{ f, by Lemma 1, read(before(t, p, S)) s consstent. K We have, therefore, establshed the followng theorem. Theorem 1. Let S be a schedule consstng of transactons resultng from the executon of transacton programs wth fxed-structure. If S s a PWSR schedule, then t s strongly correct. Proof. Let DS 1 be a consstent database state from whch schedule S results. Let [DS 1 ]S[DS ]. By Lemma 5, for all T # { S, read(t ) s consstent (choose p to be the last operaton n the schedule). We now show that DS d k for any k=1,,..., l s consstent. Let T 1, T,..., T n be a seralzaton order of transactons n S d k. Snce DS d k s consstent, 1 and d e & d f =<, e{ f, by Lemma 4, state(t n, d k, DS 1, S) s consstent (choose p to be the last operaton n the schedule). DS d k can be shown to be consstent by a smple applcaton of Lemma 3. Thus, by Lemma 1, DS s consstent, and, hence, S s strongly correct. K 3.. Restrctng Schedules In ths secton, we examne how, nstead of restrctng transacton programs, restrctng the nature of schedules may enable us to ensure strong correctness. To develop the ntuton, let us examne Example once agan. Note that n Example, n schedule S, transacton program TP reads data tem a wrtten by transacton program TP 1 before TP 1 fnshes executon (snce TP 1 executes the operaton r 1 (c, &1) after TP performs ts read operaton on a). Had the read operaton of TP been delayed untl after TP 1 fnshed executon, the schedule n Example that resulted n a loss of database consstency would not have been permtted. We refer to a schedule S n whch a transacton T cannot read a data tem wrtten by transacton T j untl after T j has completed all ts operatons as a delayed read (DR) schedule. In ths secton, we wll show that f S s a DR schedule, then the hypothess of Theorem 1 (that requres transacton programs to have fxed-structure f PWSR schedules are to be strongly correct) can be relaxed. Our nterest n DR schedules results from practcal consderatons. In practce, schedules produced by most DBMSs avod cascadng aborts; that s, most DBMSs produce ACA schedules [3]. It s trval to see that every ACA schedule s also DRhence our nterest. In order to formally defne the class of DR schedules, we frst defne the reads from relaton over operatons n a schedule. Let o, o j # S such that acton(o )=w, acton, (o j )=r, entty(o )=entty(o j ), and a O S o j. Operaton o j reads from o f for all o k # S such that o O S o k O S o j, ether entty(o k ){entty(o j ), or acton(o k ){w. We can now formally defne the class of DR schedules. Defnton 5. A schedule S s referred as a delayed read (DR) schedule f for all operatons o, o j # S, o # T 1, o j # T, f o j reads from o, then after(t 1, o j, S)==, the empty sequence. In a DR schedule, a transacton T does not read a data tem wrtten by transacton T j untl T j completes executon. However, note that T could wrte a data tem that s readwrtten by T j before T j completes executon. As a result, t s possble for a transacton T to read a data tem wrtten by T j before T j completes executon f some other transacton T k has overwrtten the tem after T j and has completed executon before T performs ts read operaton. Thus, the vew set of a transacton T n a DR schedule s restrcted to exclude data tems wrtten by ncomplete transactons (seralzed before T ) and that have not been subsequently overwrtten by a completed transacton (seralzed before T ), and s as stated n the followng lemma (see Fg. 6). Lemma 6. Let S be a DR schedule and dd such that S d s seralzable. Let T 1, T,..., T n be a seralzaton order of transactons n S d and let p be an operaton n S. For all =1,,..., n, RS(before(T d, p, S))VS(T, p, d, S), where f =1 VS(T &1, p, d, S)&WS(T VS(T, p, d, S)={d, d &1), f after (T &1, p, S){= VS(T &1, p, d, S) _ WS(T d ), &1 f after (T &1, p, S)==.

11 78 RASTOGI ET AL. FIG. 6. Lemma 6. Proof. RS(before(T d, p, S))d=VS(T 1 1, p, d, S). Thus the result holds for T 1. To show that the result holds for any T, =, 3,..., n, we wll show that f d$#d, and d$ VS(T, p, d, S), then d$ RS(before(T d, p, S)). From the defnton of the vew set of a transacton, we have the followng property about data tems whch do not belong to a transacton's vew set. If d$#d, and d$ VS(T, p, d, S), then for some j<, d$#ws(t d), such that after(t j j, p, S) {=, and for all k, k= j+1,..., &1, d$ WS(T d ). Let o k 1 be T j 's wrte operaton on d$. Suppose that d$#rs(before(t d, p, S)) and o s T 's read operaton of d$ such that o O S p or o = p. Snce T j s seralzed before T, t must be the case that o 1 O S o and, further, o reads from o 1. However, f o 1 O S o, and o reads from o 1, then snce S s DR, after(t j, o, S)== whch leads to a contradcton. Thus, before p, T cannot read d$; that s, d$ RS(before(T d, p, S)). K In the prevous secton, n our nductve proof of the correctness of PWSR schedules, the only place where we requred transacton programs to have fxed-structure was n Lemma 4 n whch we showed that for a transacton T, a conjunct C k, and an operaton p, f every transacton T j seralzed before T n S d k reads consstent data before p, then the vew set of T, before p, wth respect to d k, s consstent. We could prove the above n case transacton programs have fxed-structure snce t s possble to make clams about the consstency of the data tems durng the executon of fxed-structured transacton programs (Lemma 3). If, however, transacton programs are not fxed-structured, then the only clam we can make s that a transacton, f t executes from a consstent state, leaves the database n a consstent state (see Fg. 7). Lemma 7. Let S be a schedule consstng of a transacton T whch results from the executon of a transacton program TP (note that S=T ). Let DS 1 be a database state such that [DS 1 ]T [DS ]. If DS d _ read(t 1 ) s consstent, then DS d _ WS(T ) s consstent. Proof. Let DS 3 be a consstent database state such that DS d _ RS(T ) =DS d _ read(t 3 1 ). Furthermore, let [DS 3 ] TP [DS 4 ]. Let T$ be the transacton and let S$ be the schedule resultng from the executon of TP from DS 3 (note that S$=T$ ). Snce DS RS(T ) =read(t 3 ), read(t )=read(t$ ). Snce wrtes are a functon of the reads before them, T and T$ result from the executon of the same transacton program TP we have that T =T$. Snce, DS d=ds d and 1 3 T =T$, DS d _ WS(T ) 4 =DS d _ WS(T ). Snce TP s a correct transacton program, DS 4 s consstent, and the lemma has been proven. K Note that Lemma 7 requres DS d _ read(t 1 ) to be consstent f DS d _ WS(T ) s to be consstent. Consstency of DS d 1 and read(t ) does not ensure consstency of DS d _ WS(T ) snce DS d _ read(t 1 ) may not be consstent. As a result, even f DS d and read(t 1 ) are consstent, a consstent state DS 3 such that DS d _ RS(T ) =DS d _ read(t 3 1 ) may not exst. FIG. 7. Lemma 7.

12 CORRECTNESS OF NONSERIALIZABLE EXECUTIONS 79 Example 4. Consder a database wth data tems D= [a, b, c] and the transacton program TP 1, TP 1 : a :=c. Let IC=(a=b 7 b=c). Let d=[a, b] and let DS 1 = [(a, &1),(b, &1),(c, 1)]. Consder the executon of transacton program TP 1 from DS 1 that results n transacton T 1 : r 1 (c, 1), w 1 (a, 1). The database state DS, resultng from the executon of TP 1 from DS 1 s [(a, 1),(b, &1),(c, 1)]. Thus, even though DS d and read(t 1 1) are consstent, ther unon [(a, &1), (b, &1),(c, 1)] s nconsstent and, as a result, DS d _ WS(T 1 ) =[(a, 1),(b, &1)] s nconsstent. In Lemma 9, we use nducton to show that for every transacton T and operaton p, read(before(t, p, S)) s consstent. However, before that, as n Lemma 4, we show that f for a transacton T and an operaton p, f for all transactons T j seralzed before T, read(before(t j, p, S)) s consstent, then T 's vew set s consstent (see Fg. 5). Note that snce n the case that schedules are DR, the vew set of transactons s restrcted to contan data tems wrtten by only completed transactons. Thus, we do not need to consder partal transacton executons, and as long as an entre transacton executon preserves database consstency, the requrement n Lemma 4 for transacton programs to be fxed-structured can be relaxed. We, thus, can prove the followng lemma. Lemma 8. Let S be a DR schedule resultng from database state DS, and let p be an operaton n S. For any k, k=1,,..., l f S d k s seralzable wth seralzaton order T 1, T,..., T n, DS d k s consstent, and for all j=1,,..., &1, read(before(t j, p, S)) s consstent, then state(t, d k, S, DS) VS(T, p, d k, S) s consstent, =1,,..., n. Proof. The proof s by nducton on the number of transactons. Bass (=1). Trval, as state(t 1, d k, S, DS) d k =DS d k, whch s gven to be consstent. Inducton. Assume true for =m (1m<n), that s, f for all j=1,,..., m&1, read(before(t j, p, S)), s consstent, then state(t m, d k, S, DS) VS(T m, p, d k, S) s consstent. We need to show the above to be true for =m+1. There are two cases to consder: Case 1(after(T m, p, S){=). By IH, we know that state(t m, d k, S, DS) VS(T m, p, d k, S) s consstent. We need to show that state(t m+1, d k, S, DS) VS(T m, p, d k, S)&WS(T d k ) m s consstent, snce VS(T m+1, p, d k, S)=VS(T m, p, d k, S) &WS(T d k). From the defnton of state, we have m state(t m+1, d k, S, DS) VS(T m, p, d k, S)&WS(T d k m ) =state(t m, d k, S, DS) VS(T m, p, d k, S)&WS(T d k m ) (snce T m does not wrte data d tems n VS(T m, p, d k, S)&WS(T k m )). Snce state(t m, d k, S, DS) VS(T m, p, d k, S) s consstent, state(t m, d k, S, DS) VS(T m, p, d k, S)&WS(T d k ) m s consstent. Thus, state(t m+1, d k, S, DS) VS(T m+1, p, d k, S) s consstent. Case (after(t m, p, S)==). Snce after(t m, p, S) ==, RS(before(T m, p, S))=RS(T m ). By IH, we know that state(t m, d k, S, DS) VS(T m, p, d k, S) s consstent. By Lemma 6, RS(before(T d k, p, S))=RS(T d k )VS(T m m m, p, d k, S). Snce d e & d f =<, e{ f, and read(before(t m, p, S)) s consstent, by Lemma 1, state(t m, d k, S, DS) VS(T m, p, d k, S) _ read(t m ) s consstent. Thus, by Lemma 7, state(t m+1, d k, S, DS) VS(T m, p, d k, S) _ WS(T d k ) m s consstent. As VS(T m+1, p, d d k, S)=VS(T m, p, d k, S) _ WS(T k m ), state(t m+1, d k, S, DS) VS(T m+1, p, d k, S) s consstent. Hence t s proved. K Usng the above lemma, t s easy to see that the proof developed n the prevous secton can be used to show that for every operaton p and transacton T n a schedule S, read(before(t, p, S)) s consstent. Lemma 9. Let S be a schedule resultng from a consstent database state DS, and let p be an arbtrary operaton n S. If S s a PWSR schedule as well as DR, then for all transactons T # S, read(before(t, p, S)) s consstent. Proof. The proof s by nducton on depth( p, S). Bass (depth( p, S)=0). There are two cases: Case 1(pT ). read(before(t, p, S)=<, whch s consstent. Case (p # T ). Snce depth( p, S)=0, t follows that read(before(t, p, S))DS, whch s consstent. Inducton. Assume true for depth( p, S)=m (m0), that s, for all transactons T # S, read(before(t, p, S)) s consstent. We need to show for depth( p, S)=m+1, for all transactons T # S, read(before(t, p, S)) s consstent. Consder two cases: Case 1(pT ). Trvally by IH, read(before(t, p, S)) s consstent. Case (p # T ). Let entty( p)#d k, for some k=1,,..., l. Snce S s PWSR, S d k s seralzable. Let a seralzaton order of transactons n S d k be T1, T,..., T &1, T, T +1,..., T n.asp# T, p T j, for all j=1,,..., &1. Thus, by Case 1 of the nducton step above, read(before(t j, p, S)) s consstent, for all j=1,,..., &1. Hence, snce S s DR, by Lemma 8, state(t, d k, S, DS) VS(t, p, d k, S) s consstent. By Lemma 6, RS(before(t d k, p, S))VS(T, p, d k, S). Thus, read(before(t d k, p, S)) s consstent. By IH, read(before(t d&d k, p, S)) s consstent. Snce d e & d f =<, e{ f, by Lemma 1, read(before(t, p, S)) s consstent. K

13 80 RASTOGI ET AL. Thus, we can establsh the followng theorem. Theorem. Let S be a schedule that results from the executon of transactons programs. If S s both PWSR and DR, then S s strongly correct. Proof. Let DS 1 be a consstent database state that results n schedule S. Let [DS 1 ]S[DS ]. By Lemma 9, for all T # { S, read(t ) s consstent (choose p to be the last operaton n the schedule). We now show that DS d k for any k=1,,..., l s consstent. Let T 1, T,..., T n be a seralzaton order of transactons n S d k. Snce DS d k s consstent, 1 and d e & d f =<, e{ f, by Lemma 8, state(t n, d k, DS 1, S) s consstent (choose p to be the last operaton n the schedule). DS d k can be shown to be consstent by a smple applcaton of Lemma 7. Thus, by Lemma 1, DS s consstent, and hence, S s strongly correct. K 3.3. Restrctng Data Accesses In the prevous sectons, we showed that PWSR schedules are strongly correct f ether transacton programs are fxedstructured, or the schedules are DR. If, however, we can order the conjuncts n a manner that ensures that no transacton reads a data tem belongng to a hgher numbered conjunct and wrtes a data tem belongng to a lower numbered conjunct, then these requrements are unnecessary. In Example, transacton T 1 reads data tem c from conjunct C and wrtes data tem a n conjunct C 1, whle T reads data tem a from conjunct C 1 and wrtes data tem c n conjunct C. Thus, transactons T 1 and T access data tems n the conjuncts n a cyclc fashon that causes database consstency to be volated. We can formalze the requrement for the orderng between conjuncts by defnng a drected graph whch we refer to as the data access graph. The data access graph for S and IC, denoted by DAG(S, IC), conssts of a set of nodes, one for every conjunct C n IC. Furthermore, for conjuncts C, C j n IC, C {C j, there s a drected edge (C, C j ) n DAG(S, IC) f there exsts a transacton n S that reads a data tem n d and wrtes a data tem n d j. In the followng, we show that a PWSR schedule S s strongly correct f DAG(S, IC) s acyclc. We denote by { w (d, S), the set of transactons n S that have at least one wrte operaton on some data tem n d. Formally, { w (d, S)=[T # { S :(WS(T ) & d){<]. Thus, n Example 1, { w ([a, b], S)=[T 1 ]. Earler, n Lemma 7, we specfed condtons under whch the executon of a transacton preserves the consstency of a set of data tems. We now use Lemma 7 to develop condtons under whch schedules preserve the consstency of a set of data tems. Lemma 10. Let S be a schedule, dd, and DS 1 be a database state such that [DS 1 ]S[DS ]. If v S d s seralzable (let T 1, T,..., T n be a seralzaton order of transactons n S d ), v for all T # { w (d, S), f state(t, d, S, DS 1 ) s consstent, then state(t, s, S, DS 1 ) _ read(t ) s consstent, and v DS d 1 s consstent, then DS d s consstent and state(t, d, S, DS 1 ) s consstent for all, =1,,..., n. Proof. The proof s by nducton on. Bass (=1). state(t 1, d, S, DS 1 )=DS d 1, whch s gven to be consstent. Inducton. Assume true for =m (1m<n), that s, state(t m, d, S, DS 1 ) s consstent. We need to show the above for =m+1; that s, state(t m+1, d, S, DS 1 ) s consstent. Consder the followng two cases: Case 1 (T m { w (d, S)). Snce T m { w (d, S), t follows that state(t m+1, d, S, DS 1 )=state(t m, d, S, DS 1 ). By IH, snce state(t m, d, S, DS 1 ) s consstent, state(t m+1, d, S, DS 1 ) s consstent. Case (T m # { w (d, S)). Snce state(t m, d, S, DS 1 )s consstent, state(t m, d, S, DS 1 ) _ read(t m ) s consstent. By Lemma 7, state(t m+1, d, S, DS 1 ) s consstent. Thus, state(t, d, S, DS 1 ) s consstent for all, =1,,..., n. In partcular, state(t n, d, S, DS 1 ) s consstent. Thus, by Lemma 7 (usng a smlar argument as above) DS d s consstent. K Theorem 3. Let S be a PWSR schedule. If DAG(S, IC) s acyclc, then S s strongly correct. Proof. Wthout loss of generalty, let C 1, C,..., C l be a topologcal orderng of nodes n DAG(S, IC). Thus, every transacton that updates a data tem n d k only reads data tems belongng to conjuncts d 1, d,..., d k. Let DS 1 be a consstent database state that results n schedule S. Let [DS 1 ]S[DS ]. We prove by nducton on k that for all k=1,,..., l, DS d k s consstent, and for every transacton T # { S, read(t d k) s consstent. Bass (k=1). Let T 1, T,..., T n be a seralzaton order of transactons n S d 1. Snce transactons that update data tems n d 1 can only read data tems n d 1, RS(T )d 1 for all T # { w (d 1, S). Thus, for every transacton T # { w (d 1, S), snce read(t )state(t, d 1, S, DS 1 ), n state(t, d 1, S, DS 1 ) s consstent, then state(t, d 1, S, DS 1 ) _ read(t ) s consstent. Thus, by Lemma 10, DS d 1 s consstent and for all, =1,,..., n, state(t, d 1, S, DS 1 ) s consstent. Thus, for all =1,,..., n, snce read(t d 1)state(T, d 1, S, DS 1 ), read(t d 1) s consstent.

For instance, ; the five basic number-sets are increasingly more n A B & B A A = B (1)

For instance, ; the five basic number-sets are increasingly more n A B & B A A = B (1) Secton 1.2 Subsets and the Boolean operatons on sets If every element of the set A s an element of the set B, we say that A s a subset of B, or that A s contaned n B, or that B contans A, and we wrte A

More information

Transaction-Consistent Global Checkpoints in a Distributed Database System

Transaction-Consistent Global Checkpoints in a Distributed Database System Proceedngs of the World Congress on Engneerng 2008 Vol I Transacton-Consstent Global Checkponts n a Dstrbuted Database System Jang Wu, D. Manvannan and Bhavan Thurasngham Abstract Checkpontng and rollback

More information

Information Sciences

Information Sciences Informaton Scences 79 (9) 369 367 ontents lsts avalable at ScenceDrect Informaton Scences ournal homepage: www.elsever.com/locate/ns Necessary and suffcent condtons for transacton-consstent global checkponts

More information

6.854 Advanced Algorithms Petar Maymounkov Problem Set 11 (November 23, 2005) With: Benjamin Rossman, Oren Weimann, and Pouya Kheradpour

6.854 Advanced Algorithms Petar Maymounkov Problem Set 11 (November 23, 2005) With: Benjamin Rossman, Oren Weimann, and Pouya Kheradpour 6.854 Advanced Algorthms Petar Maymounkov Problem Set 11 (November 23, 2005) Wth: Benjamn Rossman, Oren Wemann, and Pouya Kheradpour Problem 1. We reduce vertex cover to MAX-SAT wth weghts, such that the

More information

Compiler Design. Spring Register Allocation. Sample Exercises and Solutions. Prof. Pedro C. Diniz

Compiler Design. Spring Register Allocation. Sample Exercises and Solutions. Prof. Pedro C. Diniz Compler Desgn Sprng 2014 Regster Allocaton Sample Exercses and Solutons Prof. Pedro C. Dnz USC / Informaton Scences Insttute 4676 Admralty Way, Sute 1001 Marna del Rey, Calforna 90292 pedro@s.edu Regster

More information

CMPS 10 Introduction to Computer Science Lecture Notes

CMPS 10 Introduction to Computer Science Lecture Notes CPS 0 Introducton to Computer Scence Lecture Notes Chapter : Algorthm Desgn How should we present algorthms? Natural languages lke Englsh, Spansh, or French whch are rch n nterpretaton and meanng are not

More information

CHAPTER 2 DECOMPOSITION OF GRAPHS

CHAPTER 2 DECOMPOSITION OF GRAPHS CHAPTER DECOMPOSITION OF GRAPHS. INTRODUCTION A graph H s called a Supersubdvson of a graph G f H s obtaned from G by replacng every edge uv of G by a bpartte graph,m (m may vary for each edge by dentfyng

More information

Parallelism for Nested Loops with Non-uniform and Flow Dependences

Parallelism for Nested Loops with Non-uniform and Flow Dependences Parallelsm for Nested Loops wth Non-unform and Flow Dependences Sam-Jn Jeong Dept. of Informaton & Communcaton Engneerng, Cheonan Unversty, 5, Anseo-dong, Cheonan, Chungnam, 330-80, Korea. seong@cheonan.ac.kr

More information

Hermite Splines in Lie Groups as Products of Geodesics

Hermite Splines in Lie Groups as Products of Geodesics Hermte Splnes n Le Groups as Products of Geodescs Ethan Eade Updated May 28, 2017 1 Introducton 1.1 Goal Ths document defnes a curve n the Le group G parametrzed by tme and by structural parameters n the

More information

Non-Split Restrained Dominating Set of an Interval Graph Using an Algorithm

Non-Split Restrained Dominating Set of an Interval Graph Using an Algorithm Internatonal Journal of Advancements n Research & Technology, Volume, Issue, July- ISS - on-splt Restraned Domnatng Set of an Interval Graph Usng an Algorthm ABSTRACT Dr.A.Sudhakaraah *, E. Gnana Deepka,

More information

Math Homotopy Theory Additional notes

Math Homotopy Theory Additional notes Math 527 - Homotopy Theory Addtonal notes Martn Frankland February 4, 2013 The category Top s not Cartesan closed. problem. In these notes, we explan how to remedy that 1 Compactly generated spaces Ths

More information

Complex Numbers. Now we also saw that if a and b were both positive then ab = a b. For a second let s forget that restriction and do the following.

Complex Numbers. Now we also saw that if a and b were both positive then ab = a b. For a second let s forget that restriction and do the following. Complex Numbers The last topc n ths secton s not really related to most of what we ve done n ths chapter, although t s somewhat related to the radcals secton as we wll see. We also won t need the materal

More information

such that is accepted of states in , where Finite Automata Lecture 2-1: Regular Languages be an FA. A string is the transition function,

such that is accepted of states in , where Finite Automata Lecture 2-1: Regular Languages be an FA. A string is the transition function, * Lecture - Regular Languages S Lecture - Fnte Automata where A fnte automaton s a -tuple s a fnte set called the states s a fnte set called the alphabet s the transton functon s the ntal state s the set

More information

Harvard University CS 101 Fall 2005, Shimon Schocken. Assembler. Elements of Computing Systems 1 Assembler (Ch. 6)

Harvard University CS 101 Fall 2005, Shimon Schocken. Assembler. Elements of Computing Systems 1 Assembler (Ch. 6) Harvard Unversty CS 101 Fall 2005, Shmon Schocken Assembler Elements of Computng Systems 1 Assembler (Ch. 6) Why care about assemblers? Because Assemblers employ some nfty trcks Assemblers are the frst

More information

An Optimal Algorithm for Prufer Codes *

An Optimal Algorithm for Prufer Codes * J. Software Engneerng & Applcatons, 2009, 2: 111-115 do:10.4236/jsea.2009.22016 Publshed Onlne July 2009 (www.scrp.org/journal/jsea) An Optmal Algorthm for Prufer Codes * Xaodong Wang 1, 2, Le Wang 3,

More information

Chapter 6 Programmng the fnte element method Inow turn to the man subject of ths book: The mplementaton of the fnte element algorthm n computer programs. In order to make my dscusson as straghtforward

More information

Solving two-person zero-sum game by Matlab

Solving two-person zero-sum game by Matlab Appled Mechancs and Materals Onlne: 2011-02-02 ISSN: 1662-7482, Vols. 50-51, pp 262-265 do:10.4028/www.scentfc.net/amm.50-51.262 2011 Trans Tech Publcatons, Swtzerland Solvng two-person zero-sum game by

More information

Introduction. Leslie Lamports Time, Clocks & the Ordering of Events in a Distributed System. Overview. Introduction Concepts: Time

Introduction. Leslie Lamports Time, Clocks & the Ordering of Events in a Distributed System. Overview. Introduction Concepts: Time Lesle Laports e, locks & the Orderng of Events n a Dstrbuted Syste Joseph Sprng Departent of oputer Scence Dstrbuted Systes and Securty Overvew Introducton he artal Orderng Logcal locks Orderng the Events

More information

The Codesign Challenge

The Codesign Challenge ECE 4530 Codesgn Challenge Fall 2007 Hardware/Software Codesgn The Codesgn Challenge Objectves In the codesgn challenge, your task s to accelerate a gven software reference mplementaton as fast as possble.

More information

Problem Set 3 Solutions

Problem Set 3 Solutions Introducton to Algorthms October 4, 2002 Massachusetts Insttute of Technology 6046J/18410J Professors Erk Demane and Shaf Goldwasser Handout 14 Problem Set 3 Solutons (Exercses were not to be turned n,

More information

A NOTE ON FUZZY CLOSURE OF A FUZZY SET

A NOTE ON FUZZY CLOSURE OF A FUZZY SET (JPMNT) Journal of Process Management New Technologes, Internatonal A NOTE ON FUZZY CLOSURE OF A FUZZY SET Bhmraj Basumatary Department of Mathematcal Scences, Bodoland Unversty, Kokrajhar, Assam, Inda,

More information

Specifying Database Updates Using A Subschema

Specifying Database Updates Using A Subschema Specfyng Database Updates Usng A Subschema Sona Rstć, Pavle Mogn 2, Ivan Luovć 3 Busness College, V. Perća 4, 2000 Nov Sad, Yugoslava sdrstc@uns.ns.ac.yu 2 Vctora Unversty of Wellngton, School of Mathematcal

More information

Assembler. Shimon Schocken. Spring Elements of Computing Systems 1 Assembler (Ch. 6) Compiler. abstract interface.

Assembler. Shimon Schocken. Spring Elements of Computing Systems 1 Assembler (Ch. 6) Compiler. abstract interface. IDC Herzlya Shmon Schocken Assembler Shmon Schocken Sprng 2005 Elements of Computng Systems 1 Assembler (Ch. 6) Where we are at: Human Thought Abstract desgn Chapters 9, 12 abstract nterface H.L. Language

More information

An Application of the Dulmage-Mendelsohn Decomposition to Sparse Null Space Bases of Full Row Rank Matrices

An Application of the Dulmage-Mendelsohn Decomposition to Sparse Null Space Bases of Full Row Rank Matrices Internatonal Mathematcal Forum, Vol 7, 2012, no 52, 2549-2554 An Applcaton of the Dulmage-Mendelsohn Decomposton to Sparse Null Space Bases of Full Row Rank Matrces Mostafa Khorramzadeh Department of Mathematcal

More information

Support Vector Machines

Support Vector Machines /9/207 MIST.6060 Busness Intellgence and Data Mnng What are Support Vector Machnes? Support Vector Machnes Support Vector Machnes (SVMs) are supervsed learnng technques that analyze data and recognze patterns.

More information

ALEKSANDROV URYSOHN COMPACTNESS CRITERION ON INTUITIONISTIC FUZZY S * STRUCTURE SPACE

ALEKSANDROV URYSOHN COMPACTNESS CRITERION ON INTUITIONISTIC FUZZY S * STRUCTURE SPACE mercan Journal of Mathematcs and cences Vol. 5, No., (January-December, 206) Copyrght Mnd Reader Publcatons IN No: 2250-302 www.journalshub.com LEKNDROV URYOHN COMPCTNE CRITERION ON INTUITIONITIC FUZZY

More information

Mathematics 256 a course in differential equations for engineering students

Mathematics 256 a course in differential equations for engineering students Mathematcs 56 a course n dfferental equatons for engneerng students Chapter 5. More effcent methods of numercal soluton Euler s method s qute neffcent. Because the error s essentally proportonal to the

More information

y and the total sum of

y and the total sum of Lnear regresson Testng for non-lnearty In analytcal chemstry, lnear regresson s commonly used n the constructon of calbraton functons requred for analytcal technques such as gas chromatography, atomc absorpton

More information

Analysis of Continuous Beams in General

Analysis of Continuous Beams in General Analyss of Contnuous Beams n General Contnuous beams consdered here are prsmatc, rgdly connected to each beam segment and supported at varous ponts along the beam. onts are selected at ponts of support,

More information

The Greedy Method. Outline and Reading. Change Money Problem. Greedy Algorithms. Applications of the Greedy Strategy. The Greedy Method Technique

The Greedy Method. Outline and Reading. Change Money Problem. Greedy Algorithms. Applications of the Greedy Strategy. The Greedy Method Technique //00 :0 AM Outlne and Readng The Greedy Method The Greedy Method Technque (secton.) Fractonal Knapsack Problem (secton..) Task Schedulng (secton..) Mnmum Spannng Trees (secton.) Change Money Problem Greedy

More information

More on the Linear k-arboricity of Regular Graphs R. E. L. Aldred Department of Mathematics and Statistics University of Otago P.O. Box 56, Dunedin Ne

More on the Linear k-arboricity of Regular Graphs R. E. L. Aldred Department of Mathematics and Statistics University of Otago P.O. Box 56, Dunedin Ne More on the Lnear k-arborcty of Regular Graphs R E L Aldred Department of Mathematcs and Statstcs Unversty of Otago PO Box 56, Dunedn New Zealand Ncholas C Wormald Department of Mathematcs Unversty of

More information

A New Approach For the Ranking of Fuzzy Sets With Different Heights

A New Approach For the Ranking of Fuzzy Sets With Different Heights New pproach For the ankng of Fuzzy Sets Wth Dfferent Heghts Pushpnder Sngh School of Mathematcs Computer pplcatons Thapar Unversty, Patala-7 00 Inda pushpndersnl@gmalcom STCT ankng of fuzzy sets plays

More information

GSLM Operations Research II Fall 13/14

GSLM Operations Research II Fall 13/14 GSLM 58 Operatons Research II Fall /4 6. Separable Programmng Consder a general NLP mn f(x) s.t. g j (x) b j j =. m. Defnton 6.. The NLP s a separable program f ts objectve functon and all constrants are

More information

Parallel matrix-vector multiplication

Parallel matrix-vector multiplication Appendx A Parallel matrx-vector multplcaton The reduced transton matrx of the three-dmensonal cage model for gel electrophoress, descrbed n secton 3.2, becomes excessvely large for polymer lengths more

More information

Data Representation in Digital Design, a Single Conversion Equation and a Formal Languages Approach

Data Representation in Digital Design, a Single Conversion Equation and a Formal Languages Approach Data Representaton n Dgtal Desgn, a Sngle Converson Equaton and a Formal Languages Approach Hassan Farhat Unversty of Nebraska at Omaha Abstract- In the study of data representaton n dgtal desgn and computer

More information

Clustering on antimatroids and convex geometries

Clustering on antimatroids and convex geometries Clusterng on antmatrods and convex geometres YULIA KEMPNER 1, ILYA MUCNIK 2 1 Department of Computer cence olon Academc Insttute of Technology 52 Golomb tr., P.O. Box 305, olon 58102 IRAEL 2 Department

More information

Module Management Tool in Software Development Organizations

Module Management Tool in Software Development Organizations Journal of Computer Scence (5): 8-, 7 ISSN 59-66 7 Scence Publcatons Management Tool n Software Development Organzatons Ahmad A. Al-Rababah and Mohammad A. Al-Rababah Faculty of IT, Al-Ahlyyah Amman Unversty,

More information

Ramsey numbers of cubes versus cliques

Ramsey numbers of cubes versus cliques Ramsey numbers of cubes versus clques Davd Conlon Jacob Fox Choongbum Lee Benny Sudakov Abstract The cube graph Q n s the skeleton of the n-dmensonal cube. It s an n-regular graph on 2 n vertces. The Ramsey

More information

Oracle Database: SQL and PL/SQL Fundamentals Certification Course

Oracle Database: SQL and PL/SQL Fundamentals Certification Course Oracle Database: SQL and PL/SQL Fundamentals Certfcaton Course 1 Duraton: 5 Days (30 hours) What you wll learn: Ths Oracle Database: SQL and PL/SQL Fundamentals tranng delvers the fundamentals of SQL and

More information

A New Transaction Processing Model Based on Optimistic Concurrency Control

A New Transaction Processing Model Based on Optimistic Concurrency Control A New Transacton Processng Model Based on Optmstc Concurrency Control Wang Pedong,Duan Xpng,Jr. Abstract-- In ths paper, to support moblty and dsconnecton of moble clents effectvely n moble computng envronment,

More information

Lecture 5: Multilayer Perceptrons

Lecture 5: Multilayer Perceptrons Lecture 5: Multlayer Perceptrons Roger Grosse 1 Introducton So far, we ve only talked about lnear models: lnear regresson and lnear bnary classfers. We noted that there are functons that can t be represented

More information

Semi - - Connectedness in Bitopological Spaces

Semi - - Connectedness in Bitopological Spaces Journal of AL-Qadsyah for computer scence an mathematcs A specal Issue Researches of the fourth Internatonal scentfc Conference/Second صفحة 45-53 Sem - - Connectedness n Btopologcal Spaces By Qays Hatem

More information

Memory Modeling in ESL-RTL Equivalence Checking

Memory Modeling in ESL-RTL Equivalence Checking 11.4 Memory Modelng n ESL-RTL Equvalence Checkng Alfred Koelbl 2025 NW Cornelus Pass Rd. Hllsboro, OR 97124 koelbl@synopsys.com Jerry R. Burch 2025 NW Cornelus Pass Rd. Hllsboro, OR 97124 burch@synopsys.com

More information

Assignment # 2. Farrukh Jabeen Algorithms 510 Assignment #2 Due Date: June 15, 2009.

Assignment # 2. Farrukh Jabeen Algorithms 510 Assignment #2 Due Date: June 15, 2009. Farrukh Jabeen Algorthms 51 Assgnment #2 Due Date: June 15, 29. Assgnment # 2 Chapter 3 Dscrete Fourer Transforms Implement the FFT for the DFT. Descrbed n sectons 3.1 and 3.2. Delverables: 1. Concse descrpton

More information

A mathematical programming approach to the analysis, design and scheduling of offshore oilfields

A mathematical programming approach to the analysis, design and scheduling of offshore oilfields 17 th European Symposum on Computer Aded Process Engneerng ESCAPE17 V. Plesu and P.S. Agach (Edtors) 2007 Elsever B.V. All rghts reserved. 1 A mathematcal programmng approach to the analyss, desgn and

More information

Sum of Linear and Fractional Multiobjective Programming Problem under Fuzzy Rules Constraints

Sum of Linear and Fractional Multiobjective Programming Problem under Fuzzy Rules Constraints Australan Journal of Basc and Appled Scences, 2(4): 1204-1208, 2008 ISSN 1991-8178 Sum of Lnear and Fractonal Multobjectve Programmng Problem under Fuzzy Rules Constrants 1 2 Sanjay Jan and Kalash Lachhwan

More information

Tsinghua University at TAC 2009: Summarizing Multi-documents by Information Distance

Tsinghua University at TAC 2009: Summarizing Multi-documents by Information Distance Tsnghua Unversty at TAC 2009: Summarzng Mult-documents by Informaton Dstance Chong Long, Mnle Huang, Xaoyan Zhu State Key Laboratory of Intellgent Technology and Systems, Tsnghua Natonal Laboratory for

More information

Brave New World Pseudocode Reference

Brave New World Pseudocode Reference Brave New World Pseudocode Reference Pseudocode s a way to descrbe how to accomplsh tasks usng basc steps lke those a computer mght perform. In ths week s lab, you'll see how a form of pseudocode can be

More information

User Authentication Based On Behavioral Mouse Dynamics Biometrics

User Authentication Based On Behavioral Mouse Dynamics Biometrics User Authentcaton Based On Behavoral Mouse Dynamcs Bometrcs Chee-Hyung Yoon Danel Donghyun Km Department of Computer Scence Department of Computer Scence Stanford Unversty Stanford Unversty Stanford, CA

More information

Assembler. Building a Modern Computer From First Principles.

Assembler. Building a Modern Computer From First Principles. Assembler Buldng a Modern Computer From Frst Prncples www.nand2tetrs.org Elements of Computng Systems, Nsan & Schocken, MIT Press, www.nand2tetrs.org, Chapter 6: Assembler slde Where we are at: Human Thought

More information

AP PHYSICS B 2008 SCORING GUIDELINES

AP PHYSICS B 2008 SCORING GUIDELINES AP PHYSICS B 2008 SCORING GUIDELINES General Notes About 2008 AP Physcs Scorng Gudelnes 1. The solutons contan the most common method of solvng the free-response questons and the allocaton of ponts for

More information

Repeater Insertion for Two-Terminal Nets in Three-Dimensional Integrated Circuits

Repeater Insertion for Two-Terminal Nets in Three-Dimensional Integrated Circuits Repeater Inserton for Two-Termnal Nets n Three-Dmensonal Integrated Crcuts Hu Xu, Vasls F. Pavlds, and Govann De Mchel LSI - EPFL, CH-5, Swtzerland, {hu.xu,vasleos.pavlds,govann.demchel}@epfl.ch Abstract.

More information

Comparison of Heuristics for Scheduling Independent Tasks on Heterogeneous Distributed Environments

Comparison of Heuristics for Scheduling Independent Tasks on Heterogeneous Distributed Environments Comparson of Heurstcs for Schedulng Independent Tasks on Heterogeneous Dstrbuted Envronments Hesam Izakan¹, Ath Abraham², Senor Member, IEEE, Václav Snášel³ ¹ Islamc Azad Unversty, Ramsar Branch, Ramsar,

More information

A Binarization Algorithm specialized on Document Images and Photos

A Binarization Algorithm specialized on Document Images and Photos A Bnarzaton Algorthm specalzed on Document mages and Photos Ergna Kavalleratou Dept. of nformaton and Communcaton Systems Engneerng Unversty of the Aegean kavalleratou@aegean.gr Abstract n ths paper, a

More information

The Erdős Pósa property for vertex- and edge-disjoint odd cycles in graphs on orientable surfaces

The Erdős Pósa property for vertex- and edge-disjoint odd cycles in graphs on orientable surfaces Dscrete Mathematcs 307 (2007) 764 768 www.elsever.com/locate/dsc Note The Erdős Pósa property for vertex- and edge-dsjont odd cycles n graphs on orentable surfaces Ken-Ich Kawarabayash a, Atsuhro Nakamoto

More information

UNIT 2 : INEQUALITIES AND CONVEX SETS

UNIT 2 : INEQUALITIES AND CONVEX SETS UNT 2 : NEQUALTES AND CONVEX SETS ' Structure 2. ntroducton Objectves, nequaltes and ther Graphs Convex Sets and ther Geometry Noton of Convex Sets Extreme Ponts of Convex Set Hyper Planes and Half Spaces

More information

Helsinki University Of Technology, Systems Analysis Laboratory Mat Independent research projects in applied mathematics (3 cr)

Helsinki University Of Technology, Systems Analysis Laboratory Mat Independent research projects in applied mathematics (3 cr) Helsnk Unversty Of Technology, Systems Analyss Laboratory Mat-2.08 Independent research projects n appled mathematcs (3 cr) "! #$&% Antt Laukkanen 506 R ajlaukka@cc.hut.f 2 Introducton...3 2 Multattrbute

More information

Learning the Kernel Parameters in Kernel Minimum Distance Classifier

Learning the Kernel Parameters in Kernel Minimum Distance Classifier Learnng the Kernel Parameters n Kernel Mnmum Dstance Classfer Daoqang Zhang 1,, Songcan Chen and Zh-Hua Zhou 1* 1 Natonal Laboratory for Novel Software Technology Nanjng Unversty, Nanjng 193, Chna Department

More information

Optimization Methods: Integer Programming Integer Linear Programming 1. Module 7 Lecture Notes 1. Integer Linear Programming

Optimization Methods: Integer Programming Integer Linear Programming 1. Module 7 Lecture Notes 1. Integer Linear Programming Optzaton Methods: Integer Prograng Integer Lnear Prograng Module Lecture Notes Integer Lnear Prograng Introducton In all the prevous lectures n lnear prograng dscussed so far, the desgn varables consdered

More information

Space-Optimal, Wait-Free Real-Time Synchronization

Space-Optimal, Wait-Free Real-Time Synchronization 1 Space-Optmal, Wat-Free Real-Tme Synchronzaton Hyeonjoong Cho, Bnoy Ravndran ECE Dept., Vrgna Tech Blacksburg, VA 24061, USA {hjcho,bnoy}@vt.edu E. Douglas Jensen The MITRE Corporaton Bedford, MA 01730,

More information

Tree Spanners for Bipartite Graphs and Probe Interval Graphs 1

Tree Spanners for Bipartite Graphs and Probe Interval Graphs 1 Algorthmca (2007) 47: 27 51 DOI: 10.1007/s00453-006-1209-y Algorthmca 2006 Sprnger Scence+Busness Meda, Inc. Tree Spanners for Bpartte Graphs and Probe Interval Graphs 1 Andreas Brandstädt, 2 Feodor F.

More information

Loop-Free Multipath Routing Using Generalized Diffusing Computations

Loop-Free Multipath Routing Using Generalized Diffusing Computations 1 Loop-Free Multpath Routng Usng Generalzed Dffusng Computatons Wllam T. Zaumen J.J. Garca-Luna-Aceves Sun Mcrosystems, Inc. Computer Engneerng Department 901 San Antono Avenue School of Engneerng Palo

More information

LOOP ANALYSIS. The second systematic technique to determine all currents and voltages in a circuit

LOOP ANALYSIS. The second systematic technique to determine all currents and voltages in a circuit LOOP ANALYSS The second systematic technique to determine all currents and voltages in a circuit T S DUAL TO NODE ANALYSS - T FRST DETERMNES ALL CURRENTS N A CRCUT AND THEN T USES OHM S LAW TO COMPUTE

More information

2x x l. Module 3: Element Properties Lecture 4: Lagrange and Serendipity Elements

2x x l. Module 3: Element Properties Lecture 4: Lagrange and Serendipity Elements Module 3: Element Propertes Lecture : Lagrange and Serendpty Elements 5 In last lecture note, the nterpolaton functons are derved on the bass of assumed polynomal from Pascal s trangle for the fled varable.

More information

Bridges and cut-vertices of Intuitionistic Fuzzy Graph Structure

Bridges and cut-vertices of Intuitionistic Fuzzy Graph Structure Internatonal Journal of Engneerng, Scence and Mathematcs (UGC Approved) Journal Homepage: http://www.jesm.co.n, Emal: jesmj@gmal.com Double-Blnd Peer Revewed Refereed Open Access Internatonal Journal -

More information

Load Balancing for Hex-Cell Interconnection Network

Load Balancing for Hex-Cell Interconnection Network Int. J. Communcatons, Network and System Scences,,, - Publshed Onlne Aprl n ScRes. http://www.scrp.org/journal/jcns http://dx.do.org/./jcns.. Load Balancng for Hex-Cell Interconnecton Network Saher Manaseer,

More information

F Geometric Mean Graphs

F Geometric Mean Graphs Avalable at http://pvamu.edu/aam Appl. Appl. Math. ISSN: 1932-9466 Vol. 10, Issue 2 (December 2015), pp. 937-952 Applcatons and Appled Mathematcs: An Internatonal Journal (AAM) F Geometrc Mean Graphs A.

More information

NETWORKS of dynamical systems appear in a variety of

NETWORKS of dynamical systems appear in a variety of Necessary and Suffcent Topologcal Condtons for Identfablty of Dynamcal Networks Henk J. van Waarde, Petro Tes, and M. Kanat Camlbel arxv:807.09v [math.oc] 2 Jul 208 Abstract Ths paper deals wth dynamcal

More information

THE THEORY OF REGIONALIZED VARIABLES

THE THEORY OF REGIONALIZED VARIABLES CHAPTER 4 THE THEORY OF REGIONALIZED VARIABLES 4.1 Introducton It s ponted out by Armstrong (1998 : 16) that Matheron (1963b), realzng the sgnfcance of the spatal aspect of geostatstcal data, coned the

More information

ROBOT KINEMATICS. ME Robotics ME Robotics

ROBOT KINEMATICS. ME Robotics ME Robotics ROBOT KINEMATICS Purpose: The purpose of ths chapter s to ntroduce you to robot knematcs, and the concepts related to both open and closed knematcs chans. Forward knematcs s dstngushed from nverse knematcs.

More information

Lecture 5: Probability Distributions. Random Variables

Lecture 5: Probability Distributions. Random Variables Lecture 5: Probablty Dstrbutons Random Varables Probablty Dstrbutons Dscrete Random Varables Contnuous Random Varables and ther Dstrbutons Dscrete Jont Dstrbutons Contnuous Jont Dstrbutons Independent

More information

Intro. Iterators. 1. Access

Intro. Iterators. 1. Access Intro Ths mornng I d lke to talk a lttle bt about s and s. We wll start out wth smlartes and dfferences, then we wll see how to draw them n envronment dagrams, and we wll fnsh wth some examples. Happy

More information

the nber of vertces n the graph. spannng tree T beng part of a par of maxmally dstant trees s called extremal. Extremal trees are useful n the mxed an

the nber of vertces n the graph. spannng tree T beng part of a par of maxmally dstant trees s called extremal. Extremal trees are useful n the mxed an On Central Spannng Trees of a Graph S. Bezrukov Unverstat-GH Paderborn FB Mathematk/Informatk Furstenallee 11 D{33102 Paderborn F. Kaderal, W. Poguntke FernUnverstat Hagen LG Kommunkatonssysteme Bergscher

More information

Subspace clustering. Clustering. Fundamental to all clustering techniques is the choice of distance measure between data points;

Subspace clustering. Clustering. Fundamental to all clustering techniques is the choice of distance measure between data points; Subspace clusterng Clusterng Fundamental to all clusterng technques s the choce of dstance measure between data ponts; D q ( ) ( ) 2 x x = x x, j k = 1 k jk Squared Eucldean dstance Assumpton: All features

More information

AADL : about scheduling analysis

AADL : about scheduling analysis AADL : about schedulng analyss Schedulng analyss, what s t? Embedded real-tme crtcal systems have temporal constrants to meet (e.g. deadlne). Many systems are bult wth operatng systems provdng multtaskng

More information

b * -Open Sets in Bispaces

b * -Open Sets in Bispaces Internatonal Journal of Mathematcs and Statstcs Inventon (IJMSI) E-ISSN: 2321 4767 P-ISSN: 2321-4759 wwwjmsorg Volume 4 Issue 6 August 2016 PP- 39-43 b * -Open Sets n Bspaces Amar Kumar Banerjee 1 and

More information

R s s f. m y s. SPH3UW Unit 7.3 Spherical Concave Mirrors Page 1 of 12. Notes

R s s f. m y s. SPH3UW Unit 7.3 Spherical Concave Mirrors Page 1 of 12. Notes SPH3UW Unt 7.3 Sphercal Concave Mrrors Page 1 of 1 Notes Physcs Tool box Concave Mrror If the reflectng surface takes place on the nner surface of the sphercal shape so that the centre of the mrror bulges

More information

Active Contours/Snakes

Active Contours/Snakes Actve Contours/Snakes Erkut Erdem Acknowledgement: The sldes are adapted from the sldes prepared by K. Grauman of Unversty of Texas at Austn Fttng: Edges vs. boundares Edges useful sgnal to ndcate occludng

More information

Report on On-line Graph Coloring

Report on On-line Graph Coloring 2003 Fall Semester Comp 670K Onlne Algorthm Report on LO Yuet Me (00086365) cndylo@ust.hk Abstract Onlne algorthm deals wth data that has no future nformaton. Lots of examples demonstrate that onlne algorthm

More information

Pass by Reference vs. Pass by Value

Pass by Reference vs. Pass by Value Pass by Reference vs. Pass by Value Most methods are passed arguments when they are called. An argument may be a constant or a varable. For example, n the expresson Math.sqrt(33) the constant 33 s passed

More information

may not precede all other operations of the subtransaction) in the G rw L r model. If

may not precede all other operations of the subtransaction) in the G rw L r model. If transaction may not precede all other operations of the subtransaction) in the L r model. If there are no integrity constraints between local and global data items, and global transactions have xed-structure,

More information

Wishing you all a Total Quality New Year!

Wishing you all a Total Quality New Year! Total Qualty Management and Sx Sgma Post Graduate Program 214-15 Sesson 4 Vnay Kumar Kalakband Assstant Professor Operatons & Systems Area 1 Wshng you all a Total Qualty New Year! Hope you acheve Sx sgma

More information

Some kinds of fuzzy connected and fuzzy continuous functions

Some kinds of fuzzy connected and fuzzy continuous functions Journal of Babylon Unversty/Pure and Appled Scences/ No(9)/ Vol(): 4 Some knds of fuzzy connected and fuzzy contnuous functons Hanan Al Hussen Deptof Math College of Educaton for Grls Kufa Unversty Hananahussen@uokafaq

More information

CSE 326: Data Structures Quicksort Comparison Sorting Bound

CSE 326: Data Structures Quicksort Comparison Sorting Bound CSE 326: Data Structures Qucksort Comparson Sortng Bound Steve Setz Wnter 2009 Qucksort Qucksort uses a dvde and conquer strategy, but does not requre the O(N) extra space that MergeSort does. Here s the

More information

Summarizing Data using Bottom-k Sketches

Summarizing Data using Bottom-k Sketches Summarzng Data usng Bottom-k Sketches Edth Cohen AT&T Labs Research 8 Park Avenue Florham Park, NJ 7932, USA edth@research.att.com Ham Kaplan School of Computer Scence Tel Avv Unversty Tel Avv, Israel

More information

Priority queues and heaps Professors Clark F. Olson and Carol Zander

Priority queues and heaps Professors Clark F. Olson and Carol Zander Prorty queues and eaps Professors Clark F. Olson and Carol Zander Prorty queues A common abstract data type (ADT) n computer scence s te prorty queue. As you mgt expect from te name, eac tem n te prorty

More information

124 Chapter 8. Case Study: A Memory Component ndcatng some error condton. An exceptonal return of a value e s called rasng excepton e. A return s ssue

124 Chapter 8. Case Study: A Memory Component ndcatng some error condton. An exceptonal return of a value e s called rasng excepton e. A return s ssue Chapter 8 Case Study: A Memory Component In chapter 6 we gave the outlne of a case study on the renement of a safe regster. In ths chapter wepresent the outne of another case study on persstent communcaton;

More information

Querying by sketch geographical databases. Yu Han 1, a *

Querying by sketch geographical databases. Yu Han 1, a * 4th Internatonal Conference on Sensors, Measurement and Intellgent Materals (ICSMIM 2015) Queryng by sketch geographcal databases Yu Han 1, a * 1 Department of Basc Courses, Shenyang Insttute of Artllery,

More information

an assocated logc allows the proof of safety and lveness propertes. The Unty model nvolves on the one hand a programmng language and, on the other han

an assocated logc allows the proof of safety and lveness propertes. The Unty model nvolves on the one hand a programmng language and, on the other han UNITY as a Tool for Desgn and Valdaton of a Data Replcaton System Phlppe Quennec Gerard Padou CENA IRIT-ENSEEIHT y Nnth Internatonal Conference on Systems Engneerng Unversty of Nevada, Las Vegas { 14-16

More information

Agenda & Reading. Simple If. Decision-Making Statements. COMPSCI 280 S1C Applications Programming. Programming Fundamentals

Agenda & Reading. Simple If. Decision-Making Statements. COMPSCI 280 S1C Applications Programming. Programming Fundamentals Agenda & Readng COMPSCI 8 SC Applcatons Programmng Programmng Fundamentals Control Flow Agenda: Decsonmakng statements: Smple If, Ifelse, nested felse, Select Case s Whle, DoWhle/Untl, For, For Each, Nested

More information

Virtual Machine Migration based on Trust Measurement of Computer Node

Virtual Machine Migration based on Trust Measurement of Computer Node Appled Mechancs and Materals Onlne: 2014-04-04 ISSN: 1662-7482, Vols. 536-537, pp 678-682 do:10.4028/www.scentfc.net/amm.536-537.678 2014 Trans Tech Publcatons, Swtzerland Vrtual Machne Mgraton based on

More information

Cluster Analysis of Electrical Behavior

Cluster Analysis of Electrical Behavior Journal of Computer and Communcatons, 205, 3, 88-93 Publshed Onlne May 205 n ScRes. http://www.scrp.org/ournal/cc http://dx.do.org/0.4236/cc.205.350 Cluster Analyss of Electrcal Behavor Ln Lu Ln Lu, School

More information

Notes on Organizing Java Code: Packages, Visibility, and Scope

Notes on Organizing Java Code: Packages, Visibility, and Scope Notes on Organzng Java Code: Packages, Vsblty, and Scope CS 112 Wayne Snyder Java programmng n large measure s a process of defnng enttes (.e., packages, classes, methods, or felds) by name and then usng

More information

5 The Primal-Dual Method

5 The Primal-Dual Method 5 The Prmal-Dual Method Orgnally desgned as a method for solvng lnear programs, where t reduces weghted optmzaton problems to smpler combnatoral ones, the prmal-dual method (PDM) has receved much attenton

More information

NUMERICAL SOLVING OPTIMAL CONTROL PROBLEMS BY THE METHOD OF VARIATIONS

NUMERICAL SOLVING OPTIMAL CONTROL PROBLEMS BY THE METHOD OF VARIATIONS ARPN Journal of Engneerng and Appled Scences 006-017 Asan Research Publshng Network (ARPN). All rghts reserved. NUMERICAL SOLVING OPTIMAL CONTROL PROBLEMS BY THE METHOD OF VARIATIONS Igor Grgoryev, Svetlana

More information

cos(a, b) = at b a b. To get a distance measure, subtract the cosine similarity from one. dist(a, b) =1 cos(a, b)

cos(a, b) = at b a b. To get a distance measure, subtract the cosine similarity from one. dist(a, b) =1 cos(a, b) 8 Clusterng 8.1 Some Clusterng Examples Clusterng comes up n many contexts. For example, one mght want to cluster journal artcles nto clusters of artcles on related topcs. In dong ths, one frst represents

More information

CHARUTAR VIDYA MANDAL S SEMCOM Vallabh Vidyanagar

CHARUTAR VIDYA MANDAL S SEMCOM Vallabh Vidyanagar CHARUTAR VIDYA MANDAL S SEMCOM Vallabh Vdyanagar Faculty Name: Am D. Trved Class: SYBCA Subject: US03CBCA03 (Advanced Data & Fle Structure) *UNIT 1 (ARRAYS AND TREES) **INTRODUCTION TO ARRAYS If we want

More information

3D vector computer graphics

3D vector computer graphics 3D vector computer graphcs Paolo Varagnolo: freelance engneer Padova Aprl 2016 Prvate Practce ----------------------------------- 1. Introducton Vector 3D model representaton n computer graphcs requres

More information

Related-Mode Attacks on CTR Encryption Mode

Related-Mode Attacks on CTR Encryption Mode Internatonal Journal of Network Securty, Vol.4, No.3, PP.282 287, May 2007 282 Related-Mode Attacks on CTR Encrypton Mode Dayn Wang, Dongda Ln, and Wenlng Wu (Correspondng author: Dayn Wang) Key Laboratory

More information

PHYSICS-ENHANCED L-SYSTEMS

PHYSICS-ENHANCED L-SYSTEMS PHYSICS-ENHANCED L-SYSTEMS Hansrud Noser 1, Stephan Rudolph 2, Peter Stuck 1 1 Department of Informatcs Unversty of Zurch, Wnterthurerstr. 190 CH-8057 Zurch Swtzerland noser(stuck)@f.unzh.ch, http://www.f.unzh.ch/~noser(~stuck)

More information