Factoring Decision Table Knowledge using Normalization Theory

Size: px
Start display at page:

Download "Factoring Decision Table Knowledge using Normalization Theory"

Transcription

1 ONDERZOEKSRAPPORT NR 9306 Factoring Decision Table Knowledge using Normalization Theor b Jan VANTHIENEN Monique SNOECK D/1993/2376/6

2 FACTO RING DECISION TABLE KNOWLEDGE USING NORMALIZATION THEORY J. V ANTIUENEN M. SNOECK Katholieke Universiteit Leuven Department of Applied Economic Sciences Dekenstraat 2, 3000 Leuven (Belgium) ABSTRACT Large decision tables can be transformed into a structure of table and subtables. Although it can be left to the designer to evaluate when and how a decision table should be transformed into a structure of related decision tables, it is eligible to rel on a uniform theoretical basis to structure decision tables, rather than reling on preferences and experience of the decision table builder. A major advantage is that if the structuring process is governed b clearl stated rules, automation of this process becomes feasible. In this paper a structuring process is proposed equivalent to normalization rules in relational database design, based on the correspondence between functional dependencies in database design and logical implication. Index Terms: Decision Modeling, Decision Tables, Decision Making, Knowledge Acquisition, Knowledge Representation, Normalization, Software Engineering, Sstems Analsis and Design

3 KNOWLEDGE FACTORING 2 1. PROBLEM DESCRIPTION Large decision tables can be transformed (factored) into a structure of dependent tables and subtables. Although it can be left to the user to evaluate when and how a decision table should be transformed into a structure of dependent decision tables, it is preferable to use a well-founded technique to investigate wether and how a decision table can be factored. The main reason to factor a decision table is the same as for a database relation : avoid redundanc and conflicting information (due to update anomalies), thereb enhancing consistenc, efficienc and maintainabilit of the knowledge stored in the tables. Even if in some cases it is possible to factor a decision table, this might not be desirable as the specific advantages of the decision table representation ma be lost in the factoring process. In addition to the argument of redundanc and conflict avoidance, the decision to factor a decision table depends on four other reasons [9]. A decision table can/should be factored : 1) To avoid large, unmanageable and complicated decision tables Decision tables tend to grow rapidl as the number of relevant conditions increase. For an expanded decision table, the number of columns is the product of the number of possible condition states for ever condition. For example, a table with 8 conditions with two states each will contain 256 columns in the expanded table. 2) To simplif complex decision situations and increase the intelligibilit Sometimes actions or conditions can be contracted into a single action or condition at a higher level of abstraction, in which case an action subtable (respectivel condition subtable) is obtained.

4 KNOWLEDGE FACfORING 3 3) To increase modularit and flexibilit Small changes in the decision logic can be localized into one or more small tables which will be easier to maintain. 4) Because some conditions require a preliminar action Sometimes sequence restrictions exist between conditions and actions. Actions can, for example, initialize certain values necessar in conditions. Representing these bounded conditions and actions in a single table leads to a mixing up of conditions and actions and results in a low readabilit of the decision table. In this paper a structuring process is proposed, based on the equivalence between functional dependencies in database design and (a subset of) propositional logic [4, 7]. Although the analog between decision table knowledge and database dependencies is striking, there are some major differences. In the case of a decision table the functional dependencies themselves are stored in the database and are the possible subject of updates. In contrast, the functional dependencies for database relations form an implicit set of rules which must be enforced when the database is updated, but the are not subject to change themselves. In spite of these important differences, the normalization rules of database design provide an excellent guideline for the factoring of decision tables. Because of the correspondence between logical implication and functional dependenc, the rules for normalization of database relations can be translated into rules for factoring decision tables into subtables. The following paragraph gives a short introduction to decision table theor. Next, the analog with database relations is established. Before the normalization rules for decision tables are formulated in the fifth paragraph, a short review of database relation normalization is given.

5 KNOWLEDGE FACTORING 4 2. KNOWLEDGE REPRESENTATION USING DECISION TABLES In order to make a meaningful use of decision tables possible, the decision table has to be defined clearl and must meet the important requirements of consistenc and completeness. For these purposes, the decision table is defined as a function. - CS = { CSj} (i=l..cnum) is the set of condition subjects; - CD = { CDj} (i=l..cnum) is the set of condition domains, with CDi the domain of condition i, i.e. the set of all possible values of condition subject CSi; - CT = {CTil (i=l..cnum) is the set of condition state sets, with CTi = {Si,k} (k=l..ni) an ordered set of ni condition states Si,k Each condition state Si,k is a logical expression concerning the elements of CDi, that determines a subset of CDi, such that the set of all these subsets constitutes a partition of CDi (completeness and exclusivit of the condition states); - AS= {ASj} (j=l..anum) is the set of action subjects; - A V = {A Vj} (j= Lanum) is the set of action value sets, with A Vj = {true (x), false (-)} 1 the set of action values, which is, in first instance, equal for ever action subject, for reasons of consistenc checking. The (expanded) decision table is a relation between the Cartesian product of the condition states CT 1 x... x CT en urn and the Cartesian product of the action values A V 1 x... x A V anum More particularl, as each combination of condition values must be mapped to at most one action configuration, the decision table can be defined as a function from CT 1 x... x CT cnum toav 1 x... x AVanum 1. Sometimes the value nil (.) is included in the set of action values, but in this paper this value is omitted to avoid confusion with null values in database theor, without however affecting the generalit of the discussion.

6 KNOWLEDGE FACTORING 5 In this definition, the decision table concept is deliberatel restricted to the so called singlehit table, where columns are mutuall exclusive. Onl this tpe of table allows eas checking for consistenc and completeness. If each column onl contains simple states (no contractions or irrelevant conditions), the table is called an expanded decision table (canonical form), in the other case the table is called a contracted decision table (consolidated form). The translation from one form to the other is defined as expansion (rule expansion) and contraction (consolidation) respectivel [1]. 3. THE DECISION TABLE AS DATABASE RELATION The decision table can be seen a set of ordered n-tuples (ct1,...,ctcnum av 1..., av anum), with c~ e CTi and avj e AVj, that can be represented as a relational table. The attributes of the relation are the condition subjects and action subjects, while the domains of the relation correspond with the condition state sets CT 1,..., CTcnum and the action value sets AV 1,..., AV anum The attribute values are the condition states and action values. The number of tuples in the relation equals the cardinalit of the condition space CR, because of the demand of completeness and exclusivit. The degree of the relation equals the number of conditions plus the number of actions. The relational table, as representation of a decision table, has the following characteristics [2]: - each row represents a column of the decision table; - the rows do not have an particular order (but some orderings are more useful);

7 KNOWLEDGE FACTORING 6 - all rows are distinct (exclusivit); - the order of the columns (conditions and actions) is not important to the description of the problem at the logical level (unless a certain order has to be respected at execution time because of side effects, for instance an ordering of the actions); - the meaning of each column is explained through a named domain as heading (condition or action subject); - on each row/column position of the table, an attribute value (a condition state or an action value, possibl "nil") is found, and not a set of values. It is clear that such relational table is identical to the transposed expanded decision table, so that the rows correspond with the columns of the decision table and vice versa. The identit is formal and does not refer to the utilit of both representation methods. This becomes important when the dimensions increase and the table must be split. Since ever condition combination occurs precisel once in the relation, the condition attribute values uniquel identif the n-tuples in the relation (candidate ke). It is, indeed, the intention of the decision table to indicate which actions should be executed for a given combination of conditions. So the set of condition attributes is defined as primar ke. The action attributes can then be indicated as the non-ke attributes. A combination of non-ke attributes (actions), that is part of the primar ke of another table and so refers to that table (foreign ke), corresponds with a condition assignment as action in a condition subtable (called condition reference). B analog with dependencies in relational tables, the relationship between conditions and actions (or possibl the interrelationship between conditions or actions) in decision tables can be expressed as a cause-effect relation. Such logical if...then... -relation corresponds with the

8 KNOWLEDGE FACfORING 7 implication in propositional logic, which is equivalent to the "dependenc statement" for functional dependencies. The decision table, being a set of implications, can therefore be described in terms of functional dependencies. In the first instance, especiall the dependenc between conditions and actions is important, so that functional dependenc can be defined as: Given a decision table DT with conditions Ci (i=l..cnum) and actions Aj (j=l..anum) and, Y subsets of resp. the condition set and action set of DT. Y is functional dependent on (notation: ~ Y) if with ever combination of values in DT corresponds one and onl one configuration of Y -values. Since ever combination of condition states occurs at most once, each action is functional dependent on the complete condition set (primar ke). The formal correspondence between the decision table and the relational table is given in figure 2. Decision table condition (row) condition states condition reference action action value stub number of rows entr column number of columns Relational table ke attribute (column) ke domain foreign ke non-ke attribute non-ke domain heading degree attribute value n-tuple cardinalit figure 2: terminolog of the decision table and the relational table Since the decision table is equivalent to the relational table, the relational technique (in the form of a relational DBMS) can be used to construct the decision table. This means that both

9 KNOWLEDGE FACTORING 8 the phsical storage and the construction and manipulation of the decision table can be partl executed through the relational structure and operators (relational algebra) [8]. 4. FUNCTIONAL DEPENDENCIES AND NORMAUZATION 4.1. Functional dependencies : definition To define functional dependenc [7], we make use of a projection of tuples on a subset of the set of attribute tpes (column selection). The selection of one attribute tpe is defined as: 1tDi : R(Dl,...,Dn) -+ Di : (dl dn) -+ (di) If more than one attribute tpe is selected and is the subset of {D 1,...,Dn} that indicates the attributes to select, then 1tx is defined as follows: 7tx: R(DI,...,Dn)-+ Di 1 x... xdik: (d 1,...,dn)-+ (dir" dik) where = {Dil''.. Dik} Given a relation R(D 1,...,Dn) and, Y subsets of {D 1,...,Dn}, then Y is functionall dependent on (denoted as ~ Y) if ever two tuples in R having the same values, have the same Y -values at an one time. More formall : Y is full functionall dependent on if ~ Y and there is no subset of of which Y is functional dependent : ~ Y and ---.(:3 ' c, ' =t : ' ~ Y) Y is non-transitivel dependent on if ~ Y and if there is no set of attributes S c {D 1,...,Dn} for which holds that ~ SandS~ Y unless also S ~.

10 KNOWLEDGE FACI'ORING 9 Y is multi-valued functionall dependent on ( ~~ Y) if the set of Y-values that matches a given (-value,z-value) pair (Z ~ {D 1,...,D 0 }\) in R depends onl on the value and is independent of the Z-value Normalization In order to avoid update anomalies, database relations should be normalized. The normalization procedure will decompose a single relation into a set of relations in such a wa that the decomposition is reversible. This reversibilit is important because it means that no information is lost during the normalization process. A database relation is in [2][4][5] First Normal Form : if and onl if the domain of ever attribute is a set of atomic values. This means that an attribute value can not be a set or a repeating group. Second Normal Form : if and onl if it is in First Normal Form and ever non-ke attribute is full functional dependent on the primar ke. Third Normal Form: if and onl if it is in Second Normal Form and ever non-ke attribute is nontransitivel dependent on the primar ke. We do not discuss the fourth and fifth normal form as the do not have a meaningful equivalent for decision tables.

11 KNOWLEDGE FACfORING NORMALIZATION RULES FOR DECISION TABLES In the case of actions and conditions the functional dependenc can be translated into a logical implication in a straightforward wa : if action Ai is functional dependent on condition subject CSj, then CSj logicall implies Ai. In both cases the notation is the same: CSj ~ Ai. When Ai is full functional dependent on CSj, we sa that CSj strictl implies Ai. The equivalence between functional dependenc and logical implication has been thoroughl investigated b Sagiv et al. [7]. Because of this equivalence, the same normalization rules can be applied to both database relations and decision tables. Both normalization of relations and of decision tables has as primar goal to avoid redundanc and update anomalies. In addition the normalization of decision tables simplifies decision tables and increases their readabilit. As the normalization procedure for decision tables is derived form the normalization process for database relations, we ma assume that also this decomposition process is reversible. In fact it can be proved b means of proposition logic that the join of the decision tables resulting from the decomposition process gives rise to the same set of decision rules. More formall, if a set of original decision rules D (Dis represented as a decision table) is decomposed into a set of new decision tables {D 1,..., D }, 0 then D and D 1 u D2 u... u 0 0 are equivalent First Normal Form Definition : An expanded decision table is in first normal form (lnf) if ever condition state and ever action value is an atomic value and not a set.

12 KNOWLEDGE FACfORING 11 Ever decision table that conforms the definition of the second paragraph automaticall is in first normal form. Indeed, the condition states are logical expressions2, and onl limited entr actions3 are considered whose values exclude each other. Not accepting sets of values for condition states the significantl facilitates the checking for consistenc and completeness of the decision table. Cl N Cl N C2 N N --> C2 N N Premium 2 :11 f ~ $: A~~: PR. 1 PR. 2 PR. 3 Figure 3 : Conversion to First Normal Form 5.2. Second Normal Form Original Second Normal Form Definition : An expanded decision table is in second normal form (2NF) if and onl if it is in first normal form and ever action is full dependent on all the conditions. More formall: 2. Remark that although the logical expression can denote a set of values, it is the logical expression itself which is the condition value and which is indeed an atomic value. 3. Limited entr action values ('x' or'-') are alwas atomic, but of course also other action values are allowed b the first normal form, as long as these values are atomic (e.g. '1' is atomic but '1,2' is not).

13 KNOWLEDGE FACfORING 12 Cl N C2 a b c a b c Al A2 Figure 4 : A table in Second Normal Form The second normal form is a strong demand. Indeed, decision tables are a powerful wa to clearl represent relations between conditions and actions, even if some actions are determined b onl part of the conditions. The breakdown of decision tables into a structure of decision table in second normal form is theoreticall appealing but not alwas of practical use, because the overview can be lost b the breakdown. This is illustrated in the next figure: Cl N Cl N Al C2 N N --> Al Cl N A2 C2 N N A2 Figure 5 : Conversion to Second Normal Form Except in a number of specific cases, the conversion to second normal form leads to a number of sequential decision tables in which certain conditions (or actions) are repeated. This repetition of conditions is seen as inconvenient and a significant loss of readabilit while at the same time it introduces inefficienc due to repeated testing of the same conditions. The more that it is exactl a major goal of the decision table technique to visualize the combined effect of a set of conditions. The consequences of not meeting the

14 KNOWLEDGE FACTORING 13 second normal form are not alwas a sufficient reason to split a decision table as illustrated in figure 5. However, in man cases the transformation to second normal form significantl simplifies the decision table because the resulting decision tables are smaller and easier to read. There are indeed some specific decision table constructs in which the transformed decision table is alwas a better representation of the decision logic. In this wa a number of variants of the second normal form are derived which are weaker than the second normal form but generall applicable : ever decision table is supposed to meet these weaker variants of the second normal form Weaker variants ofthe Second Normal Form Elementar second normal form Definition : A decision table is in Elementar 2NF (E2NF) if and onl if it is in first normal form and the complete action set is full dependent of the whole condition set. In other words : there does not exist a subset of the condition set of which the whole action set is dependent. More formall : -, (3 CT c CT, CT' * CT : CT ---7 A V) Cl N Cl N C2 N N --> C3 N N C3 N N N N Al Al A2 A Figure 6 : conversion to Elementar 2NF

15 KNOWLEDGE FACTORING 14 In a decision table that is not in elementar second normal form, superfluous conditions can be found which can be deleted from the decision table without an loss of knowledge. E2NF does not impl that ever single action is full dependent of the whole set of conditions. The possible dependencies that can occur in a decision table in elementar second normal form are listed below : Given the set of condition subjects CS = {CS1,... CScnum}, then Aj (1 $; j $; anum) is implied b CS (b definition); {Al,..., Aanuml is implied b CS (union); Aj (1 $;j $;anum) is strictl implied b CS (2NF); {Al,..., Aanum} is strictl implied b CS (elementar 2NF); Disjunctive second normal form Definition: A decision table is in disjunctive 2NF (D2NF) if and onl if it is in lnf and it is not composed of unrelated sets of condition and action subjects. This means that there does not exist a subset of the action subjects that is full dependent of a subset of the condition subjects while the remainder of the action subjects are dependent of the remainder of the condition subjects. More formall : --.( :3 CT c CT, A' ca: (CT'--? A' A C1\CT--? A \A')) This is illustrated in figure 7 where the global decision table is a composition of two completel independent decision tables. The split decision table obviousl is a better representation than the original table (under the assumption that there are no sequence restrictions between the condition subjects). In this case the transformation alwas leads to a smaller number of columns, except in the case of limited entr conditions with two values where the number of columns remains equal.

16 KNOWLEDGE FACfORING 15 Cl N Cl N C3 N N C2 N N Al - - C3 N N N N --> Al A2 - - C2 N A2 Figure 7 : Normalization of unrelated subsets. In one special situation there might be action subjects that must alwas be executed and are dependent on none of the condition subjects. Such actions can be put in a separate table, but are most of the time kept in the original table to keep the overview. The same is valid for action subjects that must never be executed and which are in fact superfluous. Partiall related second normal form Definition : A decision table is in partiall related 2NF (P2NF)4 if and onl if it is in lnf and there is no subset of action subjects (i) that is full dependent of a subset of the condition subjects while the remainder of the action subjects is dependent of a subset of the same condition subjects together with the remainder of the condition subjects and (ii) for which holds that the different configurations5 of the actions with relation to the common condition subjects do not have other common actions or condition subjects. 4. P2NF implies D2NF, which in tum implies E2NF. 5. A configuration is the configuration of values a certain set of actions takes for a given condition.

17 KNOWLEDGE FACI'ORING 16 More Formall : --, (3 CC c CT, CT c Cf, Cf n CC = 0, A' c A V : ( CC u Cf' ~A' A CC u (Cl\(CC u CT)) ~A V\A')) This is illustrated in figure 8. In this case subtables Tl and T2 are in parallel with each other : onl one of both will be executed, depending on the result of condition 1. Cl N Cl N Tl T2 C2 N --> C3 N Tl C2 N T2 Figure 8 : Normalization of partiall related subsets One could argue that in this case the global decision table is shorter and clearer than the normalized structure and as a consequence there is no advantage to split the global table. This, however, is not alwas the case. The partiall related 2NF splits condition and actions subjects from the common action and condition subjects, but onl if the different action configurations do not have conditions or actions in common with the subset, to avoid repetition. Figure 9 illustrates this with a few examples. The splitting of the table must in all respects be considered at construction and manipulation time. For validation purposes the global decision table might sometimes be preferred, which can then be considered as a view.

18 KNOWLEDGE FACTORING 17 Cl a b c Cl a b c Al Tl C2 N N --> (Two configurations of A2 and A3 with respect to C 1 are equal, the other configurations have no actions or conditions in common) Cl a b c Cl a b c C2 N N C2 N N Al A2 A3 (no configurations are equal, different configurations have C2 in common) (two configurations are equal; different configurations have A2 in common) Figure 9: Partiall related 2NF. Beside the maintenance and isolation advantages, there are two major reasons to perform this nonnalization: 1) The global decision table will not alwas be as clear as the normalized structure, as the ordering of conditions plas a central role in the readabilit of the decision table. While the ordering of the parallel conditions is irrelevant for the resulting width of the decision table, the ordering of the common conditions is. Placing the common conditions at the end of the list, makes the decision table unsurveable and obscures the existence of unrelated conditions (see figure 10).

19 KNOWLEDGE FACfORING 18 C3 N Cl N C2 N N C2 N Cl N N N --> C3 N Al A2 Al A2 Figure 10 : hidden mutual unrelated conditions 2) The don't care smbol as entr for an unrelated condition does not alwas indicate an irrelevanc. Testing this condition is not alwas onl irrelevant, it might be undesirable, because of possible side-effects. This is the case when the condition is in fact a condition subtable or when the condition has a hidden bound action. Reordering of conditions is of no help; in fact the don't care smbol should be replaced b a "do not test" smbol. In figure 11 two illustrations of this case are given. In the left table the irrelevanc is not correct as there never was a jur decision (this is different than saing "no matter what the decided..."). The same is true for the table on the right hand side where the credit limit can not be found as the client does not exist et. These kind of problems can be avoided b using a different notation, but in turn this is no solution for the condition ordering problem. Splitting the table solves both problems. Sit for all exams N Client exists N Favourable decision Jur Y N - Credit limit OK Y N - Actions Actions Figure 11 : improper use of the don't care smbol

20 KNO~GEFACTO&mG Third Normal Form Definition : A decision table is in third normal form if and onl if it is in second normal form (possibl onl elementar 2NF) and ever action is non transitivel dependent of the conditions. More formall : -.(3 cr c CT, ci e cr. q e: cr : cr ~ q) Third normal form is alwas a matter of related condition or action subjects. When action subjects are mutuall related it is most of the time sufficient to combine them into one action subject or an action subtable without conditions. Dependencies between conditions, (in fact impossibilities) indicate that a certain condition is dependent of other condition combinations and plas the role of an action. This can be obtained b putting the condition in a condition subtable where the actions determine the value of the condition subject (see figure 12 where C3 H ((ClA C2) v (-.ClA -.C2))). If splitting the condition table does not impl repetition of conditions and actions, the conversion to third normal form is alwas recommendable. If repetitions are necessar the surveabilit might be lost so that the global decision table is preferable. t Condition 1 N Condition 2 N N Condition 3 N N N N --> Condition 3? N Condition 1 N Action Impossible Condition 2 N N v Condition 3 N N Figure 12 : conversion to third normal form

21 KNOWLEDGE FACfORING PRACTICAL IMPLICATIONS As has been illustrated in the various examples, normalization rules for decision tables are an excellent technique to investigate how and when a decision table can be factored. It was however also clear from the examples that a possible factoring is not alwas recommendable from a readabilit or surveabilit point of view. As with normalization, ultimate decomposition ma be abandoned for well-defined reasons, as long as one is aware of the potential risk of redundanc or dependenc. 7. CONCLUSION In this paper it was demonstrated how normalization rules for database design can successfull be transposed to the decision table formalism b making use of the strict correspondence between functional dependenc and (a subset of) propositional logic. The resulting rules can be used as a guideline for decision table factoring.

22 KNOWLEDGE FACTORING 21 REFERENCES [1] Codasl, "A Modern Appraisal of Decision Tables", Report of the Decision Table Task Group, ACM, New York, 1982, pp [2] Codd E., "A Relational Model of Data for Large Shared Data Banks", Communications of the ACM, 13(6), pp , [3] Date C. J., "An introduction to Database Sstems, Volume 1, Fifth Edition", Addison Wesle Publishing Compan, 1990, 854pp. [4] Fagin, R., Functional Dependencies in a Relational Database and Propositional Logic, IBM Journal of Research & Development, 21(6), Nov. 1977, pp [5] Kent, W. [83], A Simple Guide to Five Normal Forms in Relational Database Theor, Communications of the ACM, 26(2), Febr. 1983, pp [6] Sagiv J., Delobel C., Parker D. S., Fagin R., "An equivalence Between Relational Database Dependencies and a Fragment of Propositional Logic", JACM, Vol. 28, No.3, Jul 1981, [7] Ullman, J., Principles of Database Sstems, Computer Science Press, Inc., 1980, 379 pp. [8] Vanthienen J., "Automatiserings-aspecten van de specificatie, constructie en manipulatie van beslissingstabellen", K.U.Leuven Dept. Applied Econ. Doctoral Dissertation, 378 pp, [9] Verhelst M., "De Praktijk van Beslissingstabellen", Kluwer, Deventer/Antwerpen, 175 pp, 1980.

KNOWLEDGE FACTORING USING NORMALIZATION THEORY

KNOWLEDGE FACTORING USING NORMALIZATION THEORY KNOWLEDGE FACTORING USING NORMALIZATION THEORY J. VANTHIENEN M. SNOECK Katholieke Universiteit Leuven Department of Applied Economic Sciences Dekenstraat 2, 3000 Leuven (Belgium) tel. (+32) 16 28 58 09

More information

3. Relational Model and Relational Algebra

3. Relational Model and Relational Algebra ECS-165A WQ 11 36 3. Relational Model and Relational Algebra Contents Fundamental Concepts of the Relational Model Integrity Constraints Translation ER schema Relational Database Schema Relational Algebra

More information

MAT188H1S Lec0101 Burbulla

MAT188H1S Lec0101 Burbulla Winter 206 Linear Transformations A linear transformation T : R m R n is a function that takes vectors in R m to vectors in R n such that and T (u + v) T (u) + T (v) T (k v) k T (v), for all vectors u

More information

A. TRUE-FALSE: GROUP 2 PRACTICE EXAMPLES FOR THE REVIEW QUIZ:

A. TRUE-FALSE: GROUP 2 PRACTICE EXAMPLES FOR THE REVIEW QUIZ: GROUP 2 PRACTICE EXAMPLES FOR THE REVIEW QUIZ: Review Quiz will contain very similar question as below. Some questions may even be repeated. The order of the questions are random and are not in order of

More information

Determination of the normalization level of database schemas through equivalence classes of attributes

Determination of the normalization level of database schemas through equivalence classes of attributes Computer Science Journal of Moldova, vol.17, no.2(50), 2009 Determination of the normalization level of database schemas through equivalence classes of attributes Cotelea Vitalie Abstract In this paper,

More information

MCQs~Databases~Relational Model and Normalization http://en.wikipedia.org/wiki/database_normalization

MCQs~Databases~Relational Model and Normalization http://en.wikipedia.org/wiki/database_normalization http://en.wikipedia.org/wiki/database_normalization Database normalization is the process of organizing the fields and tables of a relational database to minimize redundancy. Normalization usually involves

More information

Database Design and Normalization

Database Design and Normalization Database Design and Normalization CPS352: Database Systems Simon Miner Gordon College Last Revised: 9/27/12 Agenda Check-in Functional Dependencies (continued) Design Project E-R Diagram Presentations

More information

Downloaded from www.heinemann.co.uk/ib. equations. 2.4 The reciprocal function x 1 x

Downloaded from www.heinemann.co.uk/ib. equations. 2.4 The reciprocal function x 1 x Functions and equations Assessment statements. Concept of function f : f (); domain, range, image (value). Composite functions (f g); identit function. Inverse function f.. The graph of a function; its

More information

The process of database development. Logical model: relational DBMS. Relation

The process of database development. Logical model: relational DBMS. Relation The process of database development Reality (Universe of Discourse) Relational Databases and SQL Basic Concepts The 3rd normal form Structured Query Language (SQL) Conceptual model (e.g. Entity-Relationship

More information

COSC344 Database Theory and Applications. Lecture 9 Normalisation. COSC344 Lecture 9 1

COSC344 Database Theory and Applications. Lecture 9 Normalisation. COSC344 Lecture 9 1 COSC344 Database Theory and Applications Lecture 9 Normalisation COSC344 Lecture 9 1 Overview Last Lecture Functional Dependencies This Lecture Normalisation Introduction 1NF 2NF 3NF BCNF Source: Section

More information

C# Cname Ccity.. P1# Date1 Qnt1 P2# Date2 P9# Date9 1 Codd London.. 1 21.01 20 2 23.01 2 Martin Paris.. 1 26.10 25 3 Deen London.. 2 29.

C# Cname Ccity.. P1# Date1 Qnt1 P2# Date2 P9# Date9 1 Codd London.. 1 21.01 20 2 23.01 2 Martin Paris.. 1 26.10 25 3 Deen London.. 2 29. 4. Normalisation 4.1 Introduction Suppose we are now given the task of designing and creating a database. How do we produce a good design? What relations should we have in the database? What attributes

More information

Normalization in OODB Design

Normalization in OODB Design Normalization in OODB Design Byung S. Lee Graduate Programs in Software University of St. Thomas St. Paul, Minnesota bslee@stthomas.edu Abstract When we design an object-oriented database schema, we need

More information

Normalization. Functional Dependence. Normalization. Normalization. GIS Applications. Spring 2011

Normalization. Functional Dependence. Normalization. Normalization. GIS Applications. Spring 2011 Normalization Normalization Normalization is a foundation for relational database design Systematic approach to efficiently organize data in a database GIS Applications Spring 2011 Objectives Minimize

More information

Introduction to Matrices for Engineers

Introduction to Matrices for Engineers Introduction to Matrices for Engineers C.T.J. Dodson, School of Mathematics, Manchester Universit 1 What is a Matrix? A matrix is a rectangular arra of elements, usuall numbers, e.g. 1 0-8 4 0-1 1 0 11

More information

Database Design and Normal Forms

Database Design and Normal Forms Database Design and Normal Forms Database Design coming up with a good schema is very important How do we characterize the goodness of a schema? If two or more alternative schemas are available how do

More information

Chapter 5: Logical Database Design and the Relational Model Part 2: Normalization. Introduction to Normalization. Normal Forms.

Chapter 5: Logical Database Design and the Relational Model Part 2: Normalization. Introduction to Normalization. Normal Forms. Chapter 5: Logical Database Design and the Relational Model Part 2: Normalization Modern Database Management 6 th Edition Jeffrey A. Hoffer, Mary B. Prescott, Fred R. McFadden Robert C. Nickerson ISYS

More information

RELATIONAL DATABASE DESIGN

RELATIONAL DATABASE DESIGN RELATIONAL DATABASE DESIGN g Good database design - Avoiding anomalies g Functional Dependencies g Normalization & Decomposition Using Functional Dependencies g 1NF - Atomic Domains and First Normal Form

More information

COMPONENTS OF VECTORS

COMPONENTS OF VECTORS COMPONENTS OF VECTORS To describe motion in two dimensions we need a coordinate sstem with two perpendicular aes, and. In such a coordinate sstem, an vector A can be uniquel decomposed into a sum of two

More information

DATABASE NORMALIZATION

DATABASE NORMALIZATION DATABASE NORMALIZATION Normalization: process of efficiently organizing data in the DB. RELATIONS (attributes grouped together) Accurate representation of data, relationships and constraints. Goal: - Eliminate

More information

2. Basic Relational Data Model

2. Basic Relational Data Model 2. Basic Relational Data Model 2.1 Introduction Basic concepts of information models, their realisation in databases comprising data objects and object relationships, and their management by DBMS s that

More information

2D Geometrical Transformations. Foley & Van Dam, Chapter 5

2D Geometrical Transformations. Foley & Van Dam, Chapter 5 2D Geometrical Transformations Fole & Van Dam, Chapter 5 2D Geometrical Transformations Translation Scaling Rotation Shear Matri notation Compositions Homogeneous coordinates 2D Geometrical Transformations

More information

Functional Dependency and Normalization for Relational Databases

Functional Dependency and Normalization for Relational Databases Functional Dependency and Normalization for Relational Databases Introduction: Relational database design ultimately produces a set of relations. The implicit goals of the design activity are: information

More information

Factoring bivariate polynomials with integer coefficients via Newton polygons

Factoring bivariate polynomials with integer coefficients via Newton polygons Filomat 27:2 (2013), 215 226 DOI 10.2298/FIL1302215C Published b Facult of Sciences and Mathematics, Universit of Niš, Serbia Available at: http://www.pmf.ni.ac.rs/filomat Factoring bivariate polnomials

More information

Relational model. Relational model - practice. Relational Database Definitions 9/27/11. Relational model. Relational Database: Terminology

Relational model. Relational model - practice. Relational Database Definitions 9/27/11. Relational model. Relational Database: Terminology COS 597A: Principles of Database and Information Systems elational model elational model A formal (mathematical) model to represent objects (data/information), relationships between objects Constraints

More information

Functional Dependencies and Finding a Minimal Cover

Functional Dependencies and Finding a Minimal Cover Functional Dependencies and Finding a Minimal Cover Robert Soulé 1 Normalization An anomaly occurs in a database when you can update, insert, or delete data, and get undesired side-effects. These side

More information

Chapter 7: Relational Database Design

Chapter 7: Relational Database Design Chapter 7: Relational Database Design Database System Concepts, 5th Ed. See www.db book.com for conditions on re use Chapter 7: Relational Database Design Features of Good Relational Design Atomic Domains

More information

Normalization in Database Design

Normalization in Database Design in Database Design Marek Rychly mrychly@strathmore.edu Strathmore University, @ilabafrica & Brno University of Technology, Faculty of Information Technology Advanced Databases and Enterprise Systems 14

More information

BCA. Database Management System

BCA. Database Management System BCA IV Sem Database Management System Multiple choice questions 1. A Database Management System (DBMS) is A. Collection of interrelated data B. Collection of programs to access data C. Collection of data

More information

Mathematics for Computer Science/Software Engineering. Notes for the course MSM1F3 Dr. R. A. Wilson

Mathematics for Computer Science/Software Engineering. Notes for the course MSM1F3 Dr. R. A. Wilson Mathematics for Computer Science/Software Engineering Notes for the course MSM1F3 Dr. R. A. Wilson October 1996 Chapter 1 Logic Lecture no. 1. We introduce the concept of a proposition, which is a statement

More information

LOGICAL DATABASE DESIGN

LOGICAL DATABASE DESIGN MODULE 8 LOGICAL DATABASE DESIGN OBJECTIVE QUESTIONS There are 4 alternative answers to each question. One of them is correct. Pick the correct answer. Do not guess. A key is given at the end of the module

More information

Normalization. Reduces the liklihood of anomolies

Normalization. Reduces the liklihood of anomolies Normalization Normalization Tables are important, but properly designing them is even more important so the DBMS can do its job Normalization the process for evaluating and correcting table structures

More information

Schema Refinement, Functional Dependencies, Normalization

Schema Refinement, Functional Dependencies, Normalization Schema Refinement, Functional Dependencies, Normalization MSCI 346: Database Systems Güneş Aluç, University of Waterloo Spring 2015 MSCI 346: Database Systems Chapter 19 1 / 42 Outline 1 Introduction Design

More information

CS143 Notes: Normalization Theory

CS143 Notes: Normalization Theory CS143 Notes: Normalization Theory Book Chapters (4th) Chapters 7.1-6, 7.8, 7.10 (5th) Chapters 7.1-6, 7.8 (6th) Chapters 8.1-6, 8.8 INTRODUCTION Main question How do we design good tables for a relational

More information

Functional Dependencies and Normalization

Functional Dependencies and Normalization Functional Dependencies and Normalization 5DV119 Introduction to Database Management Umeå University Department of Computing Science Stephen J. Hegner hegner@cs.umu.se http://www.cs.umu.se/~hegner Functional

More information

Regular Expressions and Automata using Haskell

Regular Expressions and Automata using Haskell Regular Expressions and Automata using Haskell Simon Thompson Computing Laboratory University of Kent at Canterbury January 2000 Contents 1 Introduction 2 2 Regular Expressions 2 3 Matching regular expressions

More information

Chapter 3. Cartesian Products and Relations. 3.1 Cartesian Products

Chapter 3. Cartesian Products and Relations. 3.1 Cartesian Products Chapter 3 Cartesian Products and Relations The material in this chapter is the first real encounter with abstraction. Relations are very general thing they are a special type of subset. After introducing

More information

Pricing of Limit Orders in the Electronic Security Trading System Xetra

Pricing of Limit Orders in the Electronic Security Trading System Xetra Pricing of Limit Orders in the Electronic Security Trading System Xetra Li Xihao Bielefeld Graduate School of Economics and Management Bielefeld University, P.O. Box 100 131 D-33501 Bielefeld, Germany

More information

Chapter 5: FUNCTIONAL DEPENDENCIES AND NORMALIZATION FOR RELATIONAL DATABASES

Chapter 5: FUNCTIONAL DEPENDENCIES AND NORMALIZATION FOR RELATIONAL DATABASES 1 Chapter 5: FUNCTIONAL DEPENDENCIES AND NORMALIZATION FOR RELATIONAL DATABASES INFORMAL DESIGN GUIDELINES FOR RELATION SCHEMAS We discuss four informal measures of quality for relation schema design in

More information

Math 152, Intermediate Algebra Practice Problems #1

Math 152, Intermediate Algebra Practice Problems #1 Math 152, Intermediate Algebra Practice Problems 1 Instructions: These problems are intended to give ou practice with the tpes Joseph Krause and level of problems that I epect ou to be able to do. Work

More information

COMPUTING PRACTICES ASlMPLE GUIDE TO FIVE NORMAL FORMS IN RELATIONAL DATABASE THEORY

COMPUTING PRACTICES ASlMPLE GUIDE TO FIVE NORMAL FORMS IN RELATIONAL DATABASE THEORY COMPUTING PRACTICES ASlMPLE GUIDE TO FIVE NORMAL FORMS IN RELATIONAL DATABASE THEORY W LL AM KErr International Business Machines Corporation Author's Present Address: William Kent, International Business

More information

MATH 102 College Algebra

MATH 102 College Algebra FACTORING Factoring polnomials ls is simpl the reverse process of the special product formulas. Thus, the reverse process of special product formulas will be used to factor polnomials. To factor polnomials

More information

An Algorithmic Approach to Database Normalization

An Algorithmic Approach to Database Normalization An Algorithmic Approach to Database Normalization M. Demba College of Computer Science and Information Aljouf University, Kingdom of Saudi Arabia bah.demba@ju.edu.sa ABSTRACT When an attempt is made to

More information

7.3 Solving Systems by Elimination

7.3 Solving Systems by Elimination 7. Solving Sstems b Elimination In the last section we saw the Substitution Method. It turns out there is another method for solving a sstem of linear equations that is also ver good. First, we will need

More information

Integrating Pattern Mining in Relational Databases

Integrating Pattern Mining in Relational Databases Integrating Pattern Mining in Relational Databases Toon Calders, Bart Goethals, and Adriana Prado University of Antwerp, Belgium {toon.calders, bart.goethals, adriana.prado}@ua.ac.be Abstract. Almost a

More information

WHAT ARE MATHEMATICAL PROOFS AND WHY THEY ARE IMPORTANT?

WHAT ARE MATHEMATICAL PROOFS AND WHY THEY ARE IMPORTANT? WHAT ARE MATHEMATICAL PROOFS AND WHY THEY ARE IMPORTANT? introduction Many students seem to have trouble with the notion of a mathematical proof. People that come to a course like Math 216, who certainly

More information

Database Management System

Database Management System UNIT -6 Database Design Informal Design Guidelines for Relation Schemas; Functional Dependencies; Normal Forms Based on Primary Keys; General Definitions of Second and Third Normal Forms; Boyce-Codd Normal

More information

Normalization of Database

Normalization of Database Normalization of Database UNIT-4 Database Normalisation is a technique of organizing the data in the database. Normalization is a systematic approach of decomposing tables to eliminate data redundancy

More information

Notes on Factoring. MA 206 Kurt Bryan

Notes on Factoring. MA 206 Kurt Bryan The General Approach Notes on Factoring MA 26 Kurt Bryan Suppose I hand you n, a 2 digit integer and tell you that n is composite, with smallest prime factor around 5 digits. Finding a nontrivial factor

More information

www.gr8ambitionz.com

www.gr8ambitionz.com Data Base Management Systems (DBMS) Study Material (Objective Type questions with Answers) Shared by Akhil Arora Powered by www. your A to Z competitive exam guide Database Objective type questions Q.1

More information

Regular Languages and Finite Automata

Regular Languages and Finite Automata Regular Languages and Finite Automata 1 Introduction Hing Leung Department of Computer Science New Mexico State University Sep 16, 2010 In 1943, McCulloch and Pitts [4] published a pioneering work on a

More information

Introduction to Databases

Introduction to Databases Introduction to Databases IT University of Copenhagen January 7, 2005 This exam consists of 6 problems with a total of 16 questions. The weight of each problem is stated. You have 4 hours to answer all

More information

Normalisation to 3NF. Database Systems Lecture 11 Natasha Alechina

Normalisation to 3NF. Database Systems Lecture 11 Natasha Alechina Normalisation to 3NF Database Systems Lecture 11 Natasha Alechina In This Lecture Normalisation to 3NF Data redundancy Functional dependencies Normal forms First, Second, and Third Normal Forms For more

More information

INVESTIGATIONS AND FUNCTIONS 1.1.1 1.1.4. Example 1

INVESTIGATIONS AND FUNCTIONS 1.1.1 1.1.4. Example 1 Chapter 1 INVESTIGATIONS AND FUNCTIONS 1.1.1 1.1.4 This opening section introduces the students to man of the big ideas of Algebra 2, as well as different was of thinking and various problem solving strategies.

More information

IT2305 Database Systems I (Compulsory)

IT2305 Database Systems I (Compulsory) Database Systems I (Compulsory) INTRODUCTION This is one of the 4 modules designed for Semester 2 of Bachelor of Information Technology Degree program. CREDITS: 04 LEARNING OUTCOMES On completion of this

More information

Modern Systems Analysis and Design

Modern Systems Analysis and Design Modern Systems Analysis and Design Prof. David Gadish Structuring System Data Requirements Learning Objectives Concisely define each of the following key data modeling terms: entity type, attribute, multivalued

More information

6. The given function is only drawn for x > 0. Complete the function for x < 0 with the following conditions:

6. The given function is only drawn for x > 0. Complete the function for x < 0 with the following conditions: Precalculus Worksheet 1. Da 1 1. The relation described b the set of points {(-, 5 ),( 0, 5 ),(,8 ),(, 9) } is NOT a function. Eplain wh. For questions - 4, use the graph at the right.. Eplain wh the graph

More information

Relational Databases

Relational Databases Relational Databases Jan Chomicki University at Buffalo Jan Chomicki () Relational databases 1 / 18 Relational data model Domain domain: predefined set of atomic values: integers, strings,... every attribute

More information

Linear Codes. Chapter 3. 3.1 Basics

Linear Codes. Chapter 3. 3.1 Basics Chapter 3 Linear Codes In order to define codes that we can encode and decode efficiently, we add more structure to the codespace. We shall be mainly interested in linear codes. A linear code of length

More information

SECTION 7-4 Algebraic Vectors

SECTION 7-4 Algebraic Vectors 7-4 lgebraic Vectors 531 SECTIN 7-4 lgebraic Vectors From Geometric Vectors to lgebraic Vectors Vector ddition and Scalar Multiplication Unit Vectors lgebraic Properties Static Equilibrium Geometric vectors

More information

2 Elements of classical computer science

2 Elements of classical computer science 2 Elements of classical computer science 11 Good references for the material of this section are [3], Chap. 3, [5], Secs. 2 and 3, [7], Sec. 6.1, and [11] as a nice readable account of complexit with some

More information

The core theory of relational databases. Bibliography

The core theory of relational databases. Bibliography The core theory of relational databases Slide 1 La meilleure pratique... c est une bonne théorie Bibliography M.Levene, G.Loizou, Guided Tour of Relational Databases and Beyond, Springer, 625 pages,1999.

More information

Identifying second degree equations

Identifying second degree equations Chapter 7 Identifing second degree equations 7.1 The eigenvalue method In this section we appl eigenvalue methods to determine the geometrical nature of the second degree equation a 2 + 2h + b 2 + 2g +

More information

Advanced Relational Database Design

Advanced Relational Database Design APPENDIX B Advanced Relational Database Design In this appendix we cover advanced topics in relational database design. We first present the theory of multivalued dependencies, including a set of sound

More information

RELATIONAL DATABASE DESIGN. Basic Concepts

RELATIONAL DATABASE DESIGN. Basic Concepts Basic Concepts a database is an collection of logically related records a relational database stores its data in 2-dimensional tables a table is a two-dimensional structure made up of rows (tuples, records)

More information

Math, Trigonometry and Vectors. Geometry. Trig Definitions. sin(θ) = opp hyp. cos(θ) = adj hyp. tan(θ) = opp adj. Here's a familiar image.

Math, Trigonometry and Vectors. Geometry. Trig Definitions. sin(θ) = opp hyp. cos(θ) = adj hyp. tan(θ) = opp adj. Here's a familiar image. Math, Trigonometr and Vectors Geometr Trig Definitions Here's a familiar image. To make predictive models of the phsical world, we'll need to make visualizations, which we can then turn into analtical

More information

Florida Algebra I EOC Online Practice Test

Florida Algebra I EOC Online Practice Test Florida Algebra I EOC Online Practice Test Directions: This practice test contains 65 multiple-choice questions. Choose the best answer for each question. Detailed answer eplanations appear at the end

More information

A Review of Database Schemas

A Review of Database Schemas A Review of Database Schemas Introduction The purpose of this note is to review the traditional set of schemas used in databases, particularly as regards how the conceptual schemas affect the design of

More information

DATABASE SYSTEMS. Chapter 7 Normalisation

DATABASE SYSTEMS. Chapter 7 Normalisation DATABASE SYSTEMS DESIGN IMPLEMENTATION AND MANAGEMENT INTERNATIONAL EDITION ROB CORONEL CROCKETT Chapter 7 Normalisation 1 (Rob, Coronel & Crockett 978184480731) In this chapter, you will learn: What normalization

More information

Improving Knowledge-Based System Performance by Reordering Rule Sequences

Improving Knowledge-Based System Performance by Reordering Rule Sequences Improving Knowledge-Based System Performance by Reordering Rule Sequences Neli P. Zlatareva Department of Computer Science Central Connecticut State University 1615 Stanley Street New Britain, CT 06050

More information

More Equations and Inequalities

More Equations and Inequalities Section. Sets of Numbers and Interval Notation 9 More Equations and Inequalities 9 9. Compound Inequalities 9. Polnomial and Rational Inequalities 9. Absolute Value Equations 9. Absolute Value Inequalities

More information

How to Use the WHERE Statement

How to Use the WHERE Statement How to Use the WHERE Statement Juliana Meimei Ma, Quintiles INTRODUCTION This tutorial explores the WHERE statement used in both DATA steps and Procedures as well as the WHERE data set option. With the

More information

Virtual Power Limiter System which Guarantees Stability of Control Systems

Virtual Power Limiter System which Guarantees Stability of Control Systems Virtual Power Limiter Sstem which Guarantees Stabilit of Control Sstems Katsua KANAOKA Department of Robotics, Ritsumeikan Universit Shiga 525-8577, Japan Email: kanaoka@se.ritsumei.ac.jp Abstract In this

More information

Database Design Overview. Conceptual Design ER Model. Entities and Entity Sets. Entity Set Representation. Keys

Database Design Overview. Conceptual Design ER Model. Entities and Entity Sets. Entity Set Representation. Keys Database Design Overview Conceptual Design. The Entity-Relationship (ER) Model CS430/630 Lecture 12 Conceptual design The Entity-Relationship (ER) Model, UML High-level, close to human thinking Semantic

More information

Bridge from Entity Relationship modeling to creating SQL databases, tables, & relations

Bridge from Entity Relationship modeling to creating SQL databases, tables, & relations 1 Topics for this week: 1. Good Design 2. Functional Dependencies 3. Normalization Readings for this week: 1. E&N, Ch. 10.1-10.6; 12.2 2. Quickstart, Ch. 3 3. Complete the tutorial at http://sqlcourse2.com/

More information

Part 6. Normalization

Part 6. Normalization Part 6 Normalization Normal Form Overview Universe of All Data Relations (normalized / unnormalized 1st Normal Form 2nd Normal Form 3rd Normal Form Boyce-Codd Normal Form (BCNF) 4th Normal Form 5th Normal

More information

Extended Principle of Orthogonal Database Design

Extended Principle of Orthogonal Database Design Proceedings of the 5th WSEAS Int. Conf. on Artificial Intelligence, Knowledge Engineering and Data Bases, Madrid, Spain, February 5-7, 006 (pp360-365) Extended Principle of Orthogonal Database Design ERKI

More information

An Introduction to Relational Database Management System

An Introduction to Relational Database Management System History The concept of relational databases was first described by Edgar Frank Codd (almost exclusively referenced as E. F. Codd in technical literature) in the IBM research report RJ599, dated August

More information

Introduction to normalization. Introduction to normalization

Introduction to normalization. Introduction to normalization Introduction to normalization Lecture 4 Instructor Anna Sidorova Agenda Presentation Review of relational models, in class exersise Introduction to normalization In-class exercises Discussion of HW2 1

More information

The Relation between Two Present Value Formulae

The Relation between Two Present Value Formulae James Ciecka, Gary Skoog, and Gerald Martin. 009. The Relation between Two Present Value Formulae. Journal of Legal Economics 15(): pp. 61-74. The Relation between Two Present Value Formulae James E. Ciecka,

More information

BLOOD DONATION SYSTEM FOR ONLINE USERS

BLOOD DONATION SYSTEM FOR ONLINE USERS BLOOD DONATION SYSTEM FOR ONLINE USERS San San Tint 1 and Htoi Mai 2 1 Department of Research and Development II, University of Computer Studies, Mandalay, Myanmar 2 Master of Computer Science, University

More information

Chapter 10. Functional Dependencies and Normalization for Relational Databases

Chapter 10. Functional Dependencies and Normalization for Relational Databases Chapter 10 Functional Dependencies and Normalization for Relational Databases Chapter Outline 1 Informal Design Guidelines for Relational Databases 1.1Semantics of the Relation Attributes 1.2 Redundant

More information

How To Find Out What A Key Is In A Database Engine

How To Find Out What A Key Is In A Database Engine Database design theory, Part I Functional dependencies Introduction As we saw in the last segment, designing a good database is a non trivial matter. The E/R model gives a useful rapid prototyping tool,

More information

Functions and Graphs CHAPTER INTRODUCTION. The function concept is one of the most important ideas in mathematics. The study

Functions and Graphs CHAPTER INTRODUCTION. The function concept is one of the most important ideas in mathematics. The study Functions and Graphs CHAPTER 2 INTRODUCTION The function concept is one of the most important ideas in mathematics. The stud 2-1 Functions 2-2 Elementar Functions: Graphs and Transformations 2-3 Quadratic

More information

IT2304: Database Systems 1 (DBS 1)

IT2304: Database Systems 1 (DBS 1) : Database Systems 1 (DBS 1) (Compulsory) 1. OUTLINE OF SYLLABUS Topic Minimum number of hours Introduction to DBMS 07 Relational Data Model 03 Data manipulation using Relational Algebra 06 Data manipulation

More information

Affine Transformations

Affine Transformations A P P E N D I X C Affine Transformations CONTENTS C The need for geometric transformations 335 C2 Affine transformations 336 C3 Matri representation of the linear transformations 338 C4 Homogeneous coordinates

More information

CS 377 Database Systems. Database Design Theory and Normalization. Li Xiong Department of Mathematics and Computer Science Emory University

CS 377 Database Systems. Database Design Theory and Normalization. Li Xiong Department of Mathematics and Computer Science Emory University CS 377 Database Systems Database Design Theory and Normalization Li Xiong Department of Mathematics and Computer Science Emory University 1 Relational database design So far Conceptual database design

More information

Tiers, Preference Similarity, and the Limits on Stable Partners

Tiers, Preference Similarity, and the Limits on Stable Partners Tiers, Preference Similarity, and the Limits on Stable Partners KANDORI, Michihiro, KOJIMA, Fuhito, and YASUDA, Yosuke February 7, 2010 Preliminary and incomplete. Do not circulate. Abstract We consider

More information

CMSC 858T: Randomized Algorithms Spring 2003 Handout 8: The Local Lemma

CMSC 858T: Randomized Algorithms Spring 2003 Handout 8: The Local Lemma CMSC 858T: Randomized Algorithms Spring 2003 Handout 8: The Local Lemma Please Note: The references at the end are given for extra reading if you are interested in exploring these ideas further. You are

More information

UPDATES OF LOGIC PROGRAMS

UPDATES OF LOGIC PROGRAMS Computing and Informatics, Vol. 20, 2001,????, V 2006-Nov-6 UPDATES OF LOGIC PROGRAMS Ján Šefránek Department of Applied Informatics, Faculty of Mathematics, Physics and Informatics, Comenius University,

More information

Character Code Structure and Extension Techniques

Character Code Structure and Extension Techniques Standard ECMA-35 6th Edition - December 1994 Standardizing Information and Communication Systems Character Code Structure and Extension Techniques Phone: +41 22 849.60.00 - Fax: +41 22 849.60.01 - X.400:

More information

Math/Stats 425 Introduction to Probability. 1. Uncertainty and the axioms of probability

Math/Stats 425 Introduction to Probability. 1. Uncertainty and the axioms of probability Math/Stats 425 Introduction to Probability 1. Uncertainty and the axioms of probability Processes in the real world are random if outcomes cannot be predicted with certainty. Example: coin tossing, stock

More information

A simple algorithm with no simple verication

A simple algorithm with no simple verication A simple algorithm with no simple verication Laszlo Csirmaz Central European University Abstract The correctness of a simple sorting algorithm is resented, which algorithm is \evidently wrong" at the rst

More information

6.830 Lecture 3 9.16.2015 PS1 Due Next Time (Tuesday!) Lab 1 Out today start early! Relational Model Continued, and Schema Design and Normalization

6.830 Lecture 3 9.16.2015 PS1 Due Next Time (Tuesday!) Lab 1 Out today start early! Relational Model Continued, and Schema Design and Normalization 6.830 Lecture 3 9.16.2015 PS1 Due Next Time (Tuesday!) Lab 1 Out today start early! Relational Model Continued, and Schema Design and Normalization Animals(name,age,species,cageno,keptby,feedtime) Keeper(id,name)

More information

Lines and Planes 1. x(t) = at + b y(t) = ct + d

Lines and Planes 1. x(t) = at + b y(t) = ct + d 1 Lines in the Plane Lines and Planes 1 Ever line of points L in R 2 can be epressed as the solution set for an equation of the form A + B = C. The equation is not unique for if we multipl both sides b

More information

Introduction to Databases, Fall 2005 IT University of Copenhagen. Lecture 5: Normalization II; Database design case studies. September 26, 2005

Introduction to Databases, Fall 2005 IT University of Copenhagen. Lecture 5: Normalization II; Database design case studies. September 26, 2005 Introduction to Databases, Fall 2005 IT University of Copenhagen Lecture 5: Normalization II; Database design case studies September 26, 2005 Lecturer: Rasmus Pagh Today s lecture Normalization II: 3rd

More information

Chapter 15 Basics of Functional Dependencies and Normalization for Relational Databases

Chapter 15 Basics of Functional Dependencies and Normalization for Relational Databases Chapter 15 Basics of Functional Dependencies and Normalization for Relational Databases Copyright 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 15 Outline Informal Design Guidelines

More information

C3: Functions. Learning objectives

C3: Functions. Learning objectives CHAPTER C3: Functions Learning objectives After studing this chapter ou should: be familiar with the terms one-one and man-one mappings understand the terms domain and range for a mapping understand the

More information

Solution to Homework 2

Solution to Homework 2 Solution to Homework 2 Olena Bormashenko September 23, 2011 Section 1.4: 1(a)(b)(i)(k), 4, 5, 14; Section 1.5: 1(a)(b)(c)(d)(e)(n), 2(a)(c), 13, 16, 17, 18, 27 Section 1.4 1. Compute the following, if

More information

How To Write A Diagram

How To Write A Diagram Data Model ing Essentials Third Edition Graeme C. Simsion and Graham C. Witt MORGAN KAUFMANN PUBLISHERS AN IMPRINT OF ELSEVIER AMSTERDAM BOSTON LONDON NEW YORK OXFORD PARIS SAN DIEGO SAN FRANCISCO SINGAPORE

More information

Zeros of Polynomial Functions. The Fundamental Theorem of Algebra. The Fundamental Theorem of Algebra. zero in the complex number system.

Zeros of Polynomial Functions. The Fundamental Theorem of Algebra. The Fundamental Theorem of Algebra. zero in the complex number system. _.qd /7/ 9:6 AM Page 69 Section. Zeros of Polnomial Functions 69. Zeros of Polnomial Functions What ou should learn Use the Fundamental Theorem of Algebra to determine the number of zeros of polnomial

More information