74 Pages

Ch25_DedDB_2007

Course: CS 561, Fall 2009
School: Uni. Worcester
Rating:
 
 
 
 
 

Word Count: 3418

Document Preview

SQL, Recursive Deductive Databases, Query Evaluation Slides based on book chapter, By Ramankrishnan and Gehrke DBMS Systems, 3rd ed. cs561 1 Motivation Can SQL-92 express queries: Are we running low on any parts needed to build a ZX600 sports car? What is total component and assembly cost to build ZX600 at today's part prices? Can we extend the query language to cover such queries? Yes, by adding...

Register Now

Unformatted Document Excerpt

Coursehero >> United Kingdom >> Uni. Worcester >> CS 561

Course Hero has millions of student submitted documents similar to the one
below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.

Course Hero has millions of student submitted documents similar to the one below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.
SQL, Recursive Deductive Databases, Query Evaluation Slides based on book chapter, By Ramankrishnan and Gehrke DBMS Systems, 3rd ed. cs561 1 Motivation Can SQL-92 express queries: Are we running low on any parts needed to build a ZX600 sports car? What is total component and assembly cost to build ZX600 at today's part prices? Can we extend the query language to cover such queries? Yes, by adding recursion. 2 Towards Semantics : Datalog SQL queries can be read as follows: "If some tuples exist in FROM tables that satisfy WHERE conditions, then SELECT tuple is in answer." Datalog is query language with if-then flavor: Important extra: Answer table can appear in From clause, i.e., be defined recursively. It's a logic: Prolog style syntax commonly used. 3 trike 3 1 wheel frame 2 1 1 1 spoke tire seat pedal 1 1 rim tube trike trike part Example wheel 3 frame 1 1 frame seat frame pedal 1 wheel spoke 2 wheel tire tire tire rim tube 1 1 1 4 Assembly instance number subpart wheel frame 2 1 1 1 spoke tire seat pedal 1 1 rim tube trike trike part 3 1 wheel 3 frame 1 1 frame seat frame pedal 1 wheel spoke 2 wheel tire tire tire rim tube 1 1 1 Query : "Find all components of trike !" Can you write relational algebra query to compute answer on the given instance of Assembly? Assembly instance 5 number subpart Example trike 3 1 wheel frame 2 1 1 1 spoke tire seat pedal 1 1 rim tube trike trike part trike wheel 3 frame 1 1 frame seat frame pedal 1 wheel spoke 2 wheel tire tire tire rim tube 1 1 1 Query : Find components of `trike'! There is no relational algebra (or SQL-92) query that computes answer on all Assembly instances. Assembly instance 6 number subpart Example wheel frame 2 1 1 1 spoke tire seat pedal 1 1 rim tube trike trike part Example 3 1 wheel 3 frame 1 1 frame seat Find the components of a trike? We can write a relational algebra query to compute the answer on the given instance of Assembly. But there is no R.A. (or SQL-92) query that computes the answer on all Assembly instances. frame pedal 1 wheel spoke 2 wheel tire tire tire rim tube 1 1 1 Assembly instance 7 number subpart trike Problem with R.A. / SQL-92 Intuitively, we must join Assembly with itself to deduce that trike contains spoke and tire. Takes us one level down Assembly hierarchy. To find components that are yet one level deeper (e.g., rim), we need another join. To find all components, need as many joins as there are levels in the given instance! 8 Problem with R.A. and SQL-92 Conclude : we need as many joins as there are levels in the given instance! Problem : For any RA expression, we can create an Assembly instance for which some answers are not computed by including more levels than number of joins in expression! 9 Datalog Query that Does the Job Given: Assembly(Part, DirectSubParts, Qty). Compute: Comp(Part, AllSubparts). Comp(Part, Subpt) : Assembly(Part, Subpt, Qty). Comp(Part, Subpt) : Assembly(Part, Part2, Qty), Comp(Part2, Subpt). head of rule implication body of rule Can read second rule as follows: "For all values of Part, Subpt and Qty, if there is a tuple (Part, Part2, Qty) in Assembly and a tuple (Part2, Subpt) in Comp, then there must be a tuple (Part, Subpt) in Comp." 10 Datalog 11 Datalog Datalog : Relational QL inspired by Prolog. Program : A collection of rules Rule : If RHS exists, must be in LHS result. 12 Using Rule to Deduce New Tuples Each rule is a template for making inferences: by assigning constants to variables so that each body "literal" is a tuple in the corresponding relation, we identify tuple(s) that must be in head relation. 13 Using Rule to Deduce New Tuples Example: Comp(Part, Subpt) : Assembly(Part, Subpt, Qty). By setting (Part=trike, Subpt=wheel, Qty=3) in rule, we deduce that tuple < trike, wheel > is in relation Comp. This is called an inference using the rule. Rule Application : Given a set of tuples, we apply rule by making all possible inferences with tuples in body. 14 Example of Datalog Comp(Part, Subpt) : Assembly(Part, Subpt, Qty), Qty>2 Conjunctive queries : PROJECT (SELECT ( JOIN )). Conjunctive queries with UNION: Several rules. Conjunctive queries are "monotonic" : Applying to superset of instances will return a larger equal result. 15 Example: Computation with Recursion Comp(Part, Subpt) : Assembly(Part, Subpt, Qty). Comp(Part, Subpt) : Assembly(Part, Part2, Qty), Comp(Part2, Subpt). For any instance of Assembly, we compute all Comp tuples by repeatedly applying two rules. Actually: apply Rule 1 just once (projection) then apply Rule 2 repeatedly ( cross-product with equality join ) 16 trike trike wheel 3 frame 1 1 trike trike trike trike spoke tire seat pedal trike trike trike trike wheel wheel trike trike spoke tire seat pedal rim tube rim tube frame seat frame pedal 1 wheel spoke 2 wheel tire tire tire rim tube 1 1 1 wheel rim wheel tube Comp tuples by applying Rule 2 once Assembly instance Comp(Part, Subpt) : Assembly(Part, Part2, Qty), Comp(Part2, Subpt). Comp tuples by applying Rule 2 twice 17 Example trike trike trike trike spoke tire seat pedal trike trike trike trike spoke tire seat pedal For any instance of Assembly, we can compute all Comp tuples by repeatedly applying the two rules. (Actually, we can apply Rule 1 just once, then apply Rule 2 repeatedly.) wheel rim wheel tube Comp tuples got by applying Rule 2 once wheel rim wheel tube trike trike rim tube Comp tuples got by applying Rule 2 twice 18 Datalog vs. SQL Notation A collection of Datalog rules can be rewritten in SQL syntax with recursion Comp(Part, Subpt) :Assembly(Part, Subpt, Qty). Comp(Part, Subpt) :Assembly(Part, Part2, Qty), Comp(Part2, Subpt). 19 Datalog vs. SQL Notation Datalog rules rewritten into SQL syntax: WITH RECURSIVE Comp(Part, Subpt) AS (SELECT A1.Part, A1.Subpt FROM Assembly A1) UNION (SELECT A2.Part, C1.Subpt FROM Assembly A2, Comp C1 WHERE A2.Subpt=C1.Part); SELECT * FROM Comp C2; 20 Datalog vs. SQL Notation Or, modify query to have selection: WITH RECURSIVE Comp(Part, Subpt) AS (SELECT A1.Part, A1.Subpt FROM Assembly A1) UNION (SELECT A2.Part, C1.Subpt FROM Assembly A2, Comp C1 WHERE A2.Subpt=C1.Part); SELECT * FROM Comp C2 Where C2.part = trike ; 21 Theoretical Foundations (least fixpoint semantics conceptual evaluation strategy a la relational algebra ) 22 Fixpoint Let f be a function that takes values from domain D and returns values from D. A value v in D is a fixpoint of f if f(v)=v. 23 Fixpoints Consider function double+ on integers. Example: double+({1,2,5}) = {2,4,10} Union {1,2,5} What are example fixpoints for double+? 24 Fixpoints Function double+ : double+ ({1,2,5})={2,4,10} Union {1,2,5} Example Fixpoints (input sets): The set of all integers is a fixpoint of double+. The set of all even integers is another fixpoint The set of integer zero is another fixpoint. 25 Least Fixpoint Semantics Least fixpoint of a function f is a fixpoint v of f such that every other fixpoint of f is larger than or equal to v. Observations : Least fixpoint may not be unique, i.e., multiple exist. If two minimal fixpoints, neither is smaller than the other. Least fixpoint of double+ ? 26 Least Fixpoint Semantics for Datalog Datalog ~~ function defined by relational algebra (without set-difference). Datalog program is a function that applied to set of tuples returns another set of tuples Result : Datalog (fortunately) always has least fixpoint ! What does "least fixpoint" mean for us ? 27 Least Fixpoint Semantics for Datalog Comp = PROJECT [1,5] (PROJECT[1,2] (Assembly) UNION (Assembly JOIN[2=1] Comp) ) with Comp = function (Comp, Assembly) defined by RA expression. Least Fixpoint ~ Is instance of Comp that satisfies this query (our query answer). Yeah ! 28 Least Fixpoint Semantics for Datalog The least fixpoint of a function f is a fixpoint v of f such that every other fixpoint of f is smaller than or equal to v. Eg., Big depends on Small table. In general, there may be no least fixpoint (we could have two minimal fixpoints, neither of which is smaller than the other). If we think of a Datalog program as a function that is applied to a set of tuples and returns another set of tuples, this function (fortunately!) always has a least fixpoint. 29 Unsafe/Safe Datalog Program If an unbound variable on RHS, then program is unsafe: PriceParts (Part,Price) : Assembly(Part, Subpart, Qty), Qty>2. Note: Infinite number of different values for Price would all make the rule correct. If least model of program is not finite, then program is unsafe. Conclusion : all variables in head of rule must also appear in body (range-restricted). 30 Negation (Set-Difference) Big(Part) : Assembly(Part, Subpt, Qty), not Small(Part). What is it in relational algebra? Big(Part) = PROJECT_part (Assembly) DIFFERENCE PROJECT_part (Assembly JOIN_on_part Small ). 31 Negation (Set-Difference) What problem does it cause ? Big(Part) : Assembly(Part, Subpt, Qty), Qty >2, not Small(Part). Small(Part) : Assembly(Part, Subpt, Qty), not Big(Part). If rules contain negation, then there may not be a least fixpoint. 32 Negation Big(Part) : Assembly(Part, Subpt, Qty), Qty >2, not Small(Part). Small(Part) : Assembly(Part, Subpt, Qty), not Big(Part). No one least fixpoint? Consider our example Assembly instance What is intuitive answer? trike is the only part that has 3 or more copies of some subpart. Intuitively, it should be in Big() If we apply Rule 1 first, we have Big (trike). If we apply Rule 2 first, we have Small (trike) and Big () is empty. All other parts are in Small () in both fixpoints. 33 Which one is right answer to our query ? ? ? Negation Big(Part) : Assembly(Part, Subpt, Qty), Qty >2, not Small(Part). Small(Part) : Assembly(Part, Subpt, Qty), not Big(Part). If rules contain not, then there may be two or more least fixpoints. Order of applying rules determines answer Bad ! Unpredictable result ! Need method to choose intended fixpoint. Analysis : Order of applying rules determines answer because : Addition of tuples into one output relation may disallow inference of other tuples 34 "NOT" in Body? Still Safe : Not always, must be careful ! Range-restricted program : every variable X in head of rule appears in some relation occurrence in body. every variable appears in some positive (nonnegated) predicate p in body , and p is either a base relation or defined by a safe rule. Big(Part) :- Assembly(Part, Subpt, Qty), Qty >2 35 Stratification : Technique to determine if recursive datalog with negation is safe 36 Stratification ( Solution ) T depends on S if some rule with T in the head contains S or (recursively) some predicate that depends on S, in the body. Big () depends on Small (). Example: Stratified program: If T depends on not S, then S cannot depend on T (or not T). 37 Stratification If program is stratified, tables in program can be partitioned into strata (fully order dependencies using topological sort ): Stratum 0: All tables. database Stratum I: Tables defined in terms of tables in Stratum I and lower strata. (1) If T depends on not S, S is in lower stratum than T. (2) Or, table in stratum I depends negatively only on tables in stratum I- 38 Stratified Program Datalog query is safe if stratification exits. Graph Method: Each relation and predicate is a node Each dependency is an edge Each dependency on negated predicate (on RHS) is marked as negative edge. Check: Find all strongly connected componts If there is a negative edge in a strongly connected compoentn, query is not safe. Otherwise, query is safe. Find Strata: Use topological sort starting from base relations 39 Stratified Program Question : Is below Big/Small program stratified? Big(Part) :- Assembly(Part, Subpt, Qty), Qty >2, not Small(Part). Small(Part) :- Assembly(Part, Subpt, Qty), 40 Stratified Program Question : Is Big/Small program stratified? Big(Part) :- Assembly(Part, Subpt, Qty), Qty >2, not Small(Part). Small(Part) :- Assembly(Part, Subpt, Qty), not Big(Part). Big/Small: Mutually recursive tables 41 Fixpoint Semantics for Stratified Programs Semantics of stratified program given by one of its minimal fixpoints. This fixpoint identified by operational definition: Stratum 0 tables are fixed First compute least fixpoint of all tables in Stratum 1. Then, compute least fixpoint of tables in Stratum 2. Then, compute least fixpoint of tables in Stratum 3, and so on, stratum-by-stratum. 42 Fixpoint Semantics for Stratified Programs This evaluation strategy is sometimes called "bottom-up" semantics. It is guaranteed to find one minimal fixpoint (even if several may exist). RA : Corresponds to range-restricted stratified Datalog. SQL3 requires stratified programs. 43 Aggregate Operators 44 Aggregate Operators SELECT A.Part, SUM(A.Qty) FROM Assembly A GROUP BY A.Part NumParts(Part, SUM(<Qty>)) : Assembly(Part, Subpt, Qty). The < ... > notation in head indicates grouping; remaining arguments (Part) are GROUP BY fields. To apply such rule, must have all of Assembly relation available. (not on partial computed relation). Stratification with respect to use of < ... > is restriction to deal with this problem; 45 similar to negation. So far Semantics, Now Query Optimization 46 Evaluation of Datalog Programs Avoid Avoid Repeated inferences Unnecessary inferences 47 Query Optimization #1. 48 Evaluation of Datalog Programs Avoid Repeated inferences: When recursive rules are repeatedly applied in nave way, we make same inferences in several iterations. 49 trike trike wheel 3 frame 1 1 trike trike trike trike spoke tire seat pedal trike trike trike trike spoke tire seat pedal frame seat frame pedal 1 wheel spoke 2 wheel tire tire tire rim tube 1 1 1 wheel rim wheel tube Comp tuples by applying Rule 2 once wheel rim wheel tube trike trike rim tube Assembly instance Comp(Part, Subpt) : Assembly(Part, Part2, Qty), Comp(Part2, Subpt). Comp tuples by applying Rule 2 twice 50 Avoiding Repeated Inferences Semi-naive Fixpoint Evaluation: Ensure that when rule is applied, at least one of body facts used was generated in most recent iteration. Such new inference could not have been carried out in earlier iterations. 51 Avoiding Repeated Inferences Idea: For each recursive table P, use table delta_P to store P tuples generated in previous iteration. 1. Rewrite program to use delta tables 2. Update delta tables between iterations. Comp(Part, Subpt) : Assembly(Part, Part2, Qty), Comp(Part2, Subpt). Comp(Part, Subpt) : Assembly(Part, Part2, Qty), delta_Comp(Part2, Subpt). 52 Query Optimization #2. 53 Avoiding Unnecessary Inferences WITH RECURSIVE Comp(Part, Subpt) AS (SELECT A1.Part, A1.Subpt FROM Assembly A1) UNION (SELECT A2.Part, C1.Subpt FROM Assembly A2, Comp C1 WHERE A2.Subpt=C1.Part) SELECT * FROM Comp C2 Where C2.part = trike. 54 Evaluation of Datalog Programs Unnecessary inferences: If we just want to find components of a particular part, say wheel, then first computing general fixpoint of Comp program and then at end selecting tuples with wheel in the first column is wasteful. This computes many irrelevant facts. 55 Evaluation of Datalog Programs Avoid Idea: unnecessary inference ! How ? How to push selection into datalog program? 56 Avoiding Unnecessary Inferences SameLev(S1,S2) : Assembly(P1,S1,Q1), Assembly(P1,S2,Q2). SameLev(S1,S2) : Assembly(P1,S1,Q1), SameLev(P1,P2), Assembly(P2,S2,Q2). Semantics? 3 trike 1 wheel frame 2 1 1 1 spoke tire seat pedal 1 1 rim tube 57 Avoiding Unnecessary Inferences SameLev(S1,S2) : Assembly(P1,S1,Q1), Assembly(P1,S2,Q2). SameLev(S1,S2) : Assembly(P1,S1,Q1), SameLev(P1,P2), Assembly(P2,S2,Q2). Tuple (S1,S2) is in SameLev : if there is path up from S1 to some node and down to S2 with same number of up and down edges. 3 trike 1 wheel frame 2 1 1 1 spoke tire seat pedal 1 1 rim tube 58 Avoiding Unnecessary Inferences Query: Want all SameLev tuples with spoke in first column. Intuition: Push this selection into fixpoint computation. How SameLev(S1,S2) : SameLev(spoke ,S2) : Assembly(P1,S1,Q1), Assembly(P1,spoke,Q1), SameLev(P1,P2), SameLev(P1?spoke?,P2), Assembly(P2,S2,Q2). Assembly(P2,S2,Q2). 59 do that? Avoiding Unnecessary Inferences Intuition: "Push" this selection with spoke SameLev(spoke ,S2) : SameLev(S1,S2) : Assembly(P1,spoke,Q1), Assembly(P1,S1,Q1), SameLev(P1,P2), SameLev(P1,P2), Assembly(P2,S2,Q2). Assembly(P2,S2,Q2). SameLev(spoke,seat) : Assembly(wheel,spoke,2), SameLev(wheel,frame), Assembly(frame,seat,1). into fixpoint computation. Other SameLev tuples are needed to compute all such tuples with spoke, e.g., wheel60 "Magic Sets" Idea 1. Define "filter" table that computes all relevant values 2. Restrict computation of SameLev to infer only tuples with relevant value in first column. 61 Intuition : Relevant Values General: Relevant values contains all tuples t for which we have to compute all same-level tuples with t in first column to answer query. Example : relevant values are all Same-Level tuples whose first field contains value on path trike from spoke up to root. 3 1 wheel frame 2 1 1 1 spoke tire seat pedal 1 1 rim tube 62 We call it Magic-SameLevel "Magic Sets" in Example Idea: Define "filter" table that computes all relevant values Here : C...

Find millions of documents on Course Hero - Study Guides, Lecture Notes, Reference Materials, Practice Exams and more. Course Hero has millions of course specific materials providing students with the best way to expand their education.

Below is a small sample set of documents:

Uni. Worcester - CS - 561
Alert: Transforming Passive to Active DBMSIBM Almaden Research CentnerCS561Minimal Extension of RDBMSActive Tables: Onlyappend new tuples Be aware what is new dataActive Queries Specifiedover Active Tables Implement Via new cursor behavior : &quot;fet
Uni. Worcester - CS - 561
ORDB Implementation DiscussionFrom RDB to ORDBIssues to address when adding OO extensions to DBMS systemLayout of DataDeal with large data types : ADTs/blobs special-purpose file space for such data, with special access methods Large fields in one tup
Uni. Worcester - CS - 561
RDB OODB - ORDB ComparisonRDB what's good ? Simple data model (but less versatile) Simpler for user to learn (OO programmer?) Easier to optimize (for simple access?) Strong market-share (inertia ofAdvantages of Adding OORicher Data Types Simplify DB d
Utah - ECON - 00000
1Graduate Programs for All Kinds of Heterodox EconomistsCompiled by Fred Lee University of Missouri-Kansas City May, 2004 (First published in URPE Newsletter, 34.1, Fall, 2002, pp. 12 15) The programs listed below include in their curricula a variety of
Washington - MATH - 126
Taylor Polynomials and Taylor Series Math 126 Autumn 2006 In many problems in science and engineering we have a function f (x) which is too complicated to answer the questions we'd like to ask. In this chapter, we will use local information near a point x
jeg - CS - 200
Intel Assembler 80186 and higherTRANSFER Name Comment MOV Move (copy) XCHG Exchange STC CLC CMC STD CLD STI CLI PUSH PUSHF PUSHA POP POPF POPA CBW CWD CWDE Set Carry Clear Carry Complement Carry Set Direction Clear Direction Set Interrupt Clear Interrupt
Marietta - CS - 4001
Network Working Group S. HambridgeRequest For Comments: 1855 Intel Corp.FYI: 28 October 1995Category: Informational Netiquette GuidelinesStatus of This Memo This memo provides information for the Internet community. This memo does not specify an I
Idaho - CHEM - 302
PERIODIC TABLE OF THE ELEMENTS1A 1 HHydrogen8A 2 HeHelium1.012A 4 BeBeryllium3A 5 BBoron4A 6 CCarbon5A 7 NNitrogen6A 8 OOxygen7A 9 FFluorine4.003 LiLithium10 NeNeon6.949.0110.8112.0114.0116.0019.0020.1811 NaSodium12 MgMag
Cornell - ECON - 102
Economics 102 Introductory Macroeconomics Spring 2006, Professor J. Wissink Problem Set 6 Due: Wednesday April 26 at the start of class Boxes will be removed ten minutes after the start of class. Remember: We will NOT accept problem sets late. Period. Tha
Cornell - ECON - 102
Economics 102 Introductory Macroeconomics Spring 2006, Professor J. Wissink Problem Set 7 - ANSWERS rue or False (could you explain your decision?):1.Ta. TRUE: According to the Keynesians, unemployment persists because wages are sticky in the downward d
University of Toronto - CS - 364
gYR V RY rTWT# sv tt w t v v ~v wt ~ wv t s z yt wv s rqiu~xqqxffqxfeTuwqxdiqdTqfxtqd4dhxdTxt~d|vqcfw_gxtdTutr pk q da E redHG x k yo V W gYaP WS o nk Y m Y XP #`p m k P nk s l qhYhihdE ge j vG f EYa #eP vyP g g aVYy b#Fa x wgHv`us EP Xt gY XP r`qpi g
University of Toronto - CS - 364
%!PS-Adobe-2.0 %Creator: dvips(k) 5.86 Copyright 1999 Radical Eye Software %Title: recover.dvi %Pages: 1 %PageOrder: Ascend %BoundingBox: 0 0 612 792 %EndComments %DVIPSWebPage: (www.radicaleye.com) %DVIPSCommandLine: dvips -o recover.ps recover.dvi %DVIP
Wilfrid Laurier - DOCS - 562
Regress+Appendix A A Compendium of Common Probability DistributionsVersion 2.3 Dr. Michael P. McLaughlin 1993-2001 Third printing This software and its documentation are distributed free of charge and may neither be sold nor repackaged for sale in whol
Wilfrid Laurier - ECE - 6731
Regress+Appendix A A Compendium of Common Probability DistributionsVersion 2.3 Dr. Michael P. McLaughlin 1993-2001 Third printing This software and its documentation are distributed free of charge and may neither be sold nor repackaged for sale in whol
CSU Northridge - HCMGT - 004
BUS497A paper tips Spring 2009 Prof. Abe Feinberg DO: Write formally, not just use informal speech Include an Executive summary Use Section Headings At least half a page on Mission and Vision Discuss Strengths and Weaknesses in Internal Analysis which mus
CUNY Baruch - CS - 291
List Abstraction! A list is a linear configuration of nodesRead Sections 7.1-7.4! A list node is a container for data &quot; A node can have at most one predecessor and one successor node &quot; We can insert and delete nodes in any order ! Three nodes are ident
ETSU - NTES - 2150
CHAPTER TWELVEMemory Organization12.1 Early MemoryEvery year new memory technologies are developed promising faster response and higher throughput. This makes it difficult to maintain a printed document discussing the latest advances in memory technolo
USC - ENGR - 330
University of Southern California Daniel J. Epstein Department of Industrial and Systems Engineering ISE 330: Introduction to Operations Research Fall 2003: General InformationPersonnel: Instructor: Office Hours: Phone: Fax: Email: Teaching Assistant: Of
Berkeley - BUSINESS - 239
Bus Ad 239B Spring 2002 Problem Set 10 Due Thursday April 101. Suppose W is a K -dimensional Wiener process, and N 0 is an integer. a Let !; t = 1 for all !; t. Find all N + 1-dimensional securi ties processes S such that is a state price process for S .
Cal Poly Pomona - CHM - 315
California State Polytechnic University, PomonaDr. Laurie S. Starkey, Organic Chemistry CHM 314 Chapter 6 Summary (Wade Text): Alkyl Halides/Substitution ReactionsI. Introduction to Alkyl Halides (6-1 6-7) a. Alkyl, vinyl, aryl halides II. Substitution
UMass (Amherst) - BIOEP - 540
Introduction to Biostatistics 540 Final Exam (2 hours) Spring 2001Name: SOLUTION Score: _ Please answer all questions. Show all your work, including formula (if there is any) on the paper. When using a calculator, check your calculations. 1. (5 pts) An i
UC Riverside - STAT - 160
STAT 160AElements of Probability and Statistical Theory11Probability and Distribution2Introduction A phenomenon is random if individual outcomes of the experiment are uncertain but there is nonetheless a regular distribution of outcomes in a large n
UC Riverside - STAT - 160
HW1 (due 10/6/05): (from textbook) 1.2.3, 1.2.9, 1.2.11, 1.2.12, 1.2.16 (extra credit) A fashionable country club has 100 members, 30 of whom are lawyers. Rumor has it that 25 of the club members are liars and that 55 are neither lawyers nor liars. What
UC Riverside - STAT - 160
Statistics 160A Fall 2005Instructor: Xinping Cui, Ph.D. 2642 Statistics-Computer Building Phone: 782-2563 Fax: 782-3286 Email (preferred): xinping.cui@ucr.edu T/Th 2:00pm to 3:00pm or by appointment. Hongjuan Liu Email: hongjuanl@yahoo.com Tuesday 9:00am
East Los Angeles College - CS - 236
Global Illumination CompendiumSeptember 29, 2003 Philip Dutr phil@cs.kuleuven.ac.be Computer Graphics, Department of Computer Science Katholieke Universiteit Leuven http:/www.cs.kuleuven.ac.be/~phil/GI/This collection of formulas and equations is suppos
Universidad de Chile - MATH - 313
The Math WarsCalifornia Battles It Out over Mathematics Education Reform (Part II)Note: The first part of this article appeared in the June/July issue of the Notices, pages 695702.The Numbers BattleShow us the data, show us that this program works, de
UMass (Amherst) - MATH - 300
&quot; vu 1 ~ 1 1 ~ Q` V S X X B A d 7 Q |Q A B V S t B | 7 aQ A B A AQ a V S I Q F &amp;wu 3&amp;gRYYv55U5rEYUT6Ev5EvEbY@E55Yb5pRofe &quot; 1 1 $ 1 TYRURETWuWv hRes tQ G` B I 7 tQ x v A V p 1 &quot; Q` S V |Q 7 A S X V S X X B A d 7 A V S B V d 7 t B X | 7 aQ A B A AQ a A Y58
Universidad de Chile - MATH - 313
The Math WarsCalifornia Battles It Out over Mathematics Education Reform (Part I)Margaret DeArmond is a high school mathematics teacher in Bakersfield, California. She has taught for twenty-seven years, with many of the same frustrations occurring year
UMass (Amherst) - MATH - 300
S q 9 i i @q $ 8 D &quot; o x $ @ y q D i e!Fk!Plk%P%ePR!Cvk!P~Fkpl D i 8 q D D x $ 9 i &quot; i9 8 i q i PP'PhFCzYlkFPzR!k3k!'PhlAhvFkp!' 8 @ #q8 Y!7vYPpo ecfw_Y!kvC!R!7!Pjv!YCFkY!7!# @ 8 i x $ i9 8 q y 0 p i vYePj9 8CvFPjPF!PsPklkP8 7P)YqPjlkC!%!CzTFli n !Ftvi q
UMass (Amherst) - MATH - 300
1. How many distinct arrangements of the letters in MASSACHUSETTS start with MA? 2. A straight is a poker hand consisting of 5 cards whose ranks form a sequence. The highest possible straight is AKQJ10 (Broadway) and the lowest straight is 54321 (the whee
UMass (Amherst) - MATH - 300
UMass (Amherst) - MATH - 300
MATH 300 Practise Exam 3April, 2007The actual exam consists of two parts. In the first part, you will be asked to slove a recursive relation. In the second part of the exam, you will be asked to prove the following 3 theorems.1. X = cfw_1, 2, 3, 4, , 2
UMass (Amherst) - MATH - 300
The actual exam consists of one combinatorial problem and the following four problems.1. Prove by mathematical induction that all integers n 2.1 2!+2 3!+3 4!+ +n-1 n!= 1-1 n!for2. (a) State the definition of holomorphic functions. (b) Define f
UMass (Amherst) - MATH - 300
a WiY U aS r Q W q a WiY U S iS r WS W Qv | VgQ4b`StRVfhouhqbrtqeiR`I9`qfWsQxgQRp`StRVfh0sQp&amp;bjvRmw4`IrVwsh E eT 9 GfWsQTbGpkhReqAw4Pj ef`QphRPPq mp`hVpE0Vwsh E~ q iS v r WSI H QI H WiS Qv | Q q r iS Q r r Q WQ r VptvsrfWUxQRuYAq4b6Vgv`rXWmUxQwgiPqiRs
UMass (Amherst) - MATH - 300
UMASS AMHERST MATH 300: NOTES FOR FALL 05FARSHID HAJIRContents Part 1. Problem Solving, Inductive vs. Deductive Reasoning, An introduction to Proofs 1. Introductory Notes 1.1. Propositions 1.2. Deductive Reasoning 1.3. Inductive Reasoning Part 2. Logic
UMass (Amherst) - MATH - 300
FUNDAMENTAL CONCEPTS OF MATHEMATICS, SPRING 2006 William H. Meeks April 27, 20061Introduction.This preliminary version of a book is based on my notes from teaching Math 300, Fundamental Concepts of Mathematics,at the University of Massachusetts at Amhe
Oklahoma State - SYST - 520
UML a tutorialUML a tutorial.1 1 The history of object-oriented analysis and design methods .2 2 Software engineering .7 2.1 Responsibility-driven versus data-driven approaches .12 2.2 Translational versus elaborational approaches .13 3 Object-oriented a
cta - MYWEB - 499
The Not So Short A Introduction to L TEX 2A Or LTEX 2 in 141 minutesby Tobias Oetiker Hubert Partl, Irene Hyna and Elisabeth Schlegl Version 4.26, September 25, 2008iiCopyright 1995-2005 Tobias Oetiker and Contributers. All rights reserved. This docum
cta - PHYS - 115
The Not So Short A Introduction to L TEX 2A Or LTEX 2 in 141 minutesby Tobias Oetiker Hubert Partl, Irene Hyna and Elisabeth Schlegl Version 4.26, September 25, 2008iiCopyright 1995-2005 Tobias Oetiker and Contributers. All rights reserved. This docum
cta - CS - 320
The Not So Short A Introduction to L TEX 2A Or LTEX 2 in 141 minutesby Tobias Oetiker Hubert Partl, Irene Hyna and Elisabeth Schlegl Version 4.26, September 25, 2008iiCopyright 1995-2005 Tobias Oetiker and Contributers. All rights reserved. This docum
cta - MATH - 200
The Not So Short A Introduction to L TEX 2A Or LTEX 2 in 141 minutesby Tobias Oetiker Hubert Partl, Irene Hyna and Elisabeth Schlegl Version 4.26, September 25, 2008iiCopyright 1995-2005 Tobias Oetiker and Contributers. All rights reserved. This docum
cta - M - 362
The Not So Short A Introduction to L TEX 2A Or LTEX 2 in 141 minutesby Tobias Oetiker Hubert Partl, Irene Hyna and Elisabeth Schlegl Version 4.26, September 25, 2008iiCopyright 1995-2005 Tobias Oetiker and Contributers. All rights reserved. This docum
cta - ME - 106
The Not So Short A Introduction to L TEX 2A Or LTEX 2 in 141 minutesby Tobias Oetiker Hubert Partl, Irene Hyna and Elisabeth Schlegl Version 4.26, September 25, 2008iiCopyright 1995-2005 Tobias Oetiker and Contributers. All rights reserved. This docum
UMass (Amherst) - PDFS - 336
Books The required books for this course are available at Amherst Books (8 Main St, at the corner of Main St. and Pleasant St.). For those of you who have not previously purchased textbooks at Amherst Books, they are located downstairs and are categorized
UMass (Amherst) - PDFS - 336
UMass (Amherst) - PDFS - 336
Grading Your grade will be based on the total number of points received for each of the following assignments: First short writing assignment First paper Second short writing assignment Second paper Final exam Total possible points = 200 Letter grades wil
Fayetteville State University - COP - 402004
COP4020 Fall 2004 Final ExamName: (Please print) Put the answers on these sheets. You can collect 100 points in total for this exam. 1. Which C construct is classied as a selection statement? (mark one) (4 points) (a) return (b) switch (c) break (d) whil
Fayetteville State University - COP - 402004
COP4020 Fall 2002 Final ExamName: (Please print) Put the answers on these sheets. Use additional sheets when necessary. Show how you derived your answer when applicable (this is required for full credit and helpful for partial credit). You can collect 10
Fayetteville State University - COP - 402004
COP4020 Fall 2004 Midterm ExamName: (Please print) Put the answers on these sheets. Use additional sheets when necessary. You can collect 100 points in total for this exam. 1. What was the first functional language? (mark one, 4 points) (a) Algol 60 (b)
Fayetteville State University - COP - 402004
COP4020 Fall 2001 Final ExamName: (Please print) Put the answers on these sheets. Use additional sheets when necessary. Show how you derived your answer (this is required for full credit and helpful for partial credit). You can collect 100 points in tota
Fayetteville State University - COP - 402004
COP4020 Fall 2002 Midterm ExamName: (Please print) Put the answers on these sheets. Use additional sheets when necessary. You can collect 100 points in total for this exam. 1. Scheme belongs to the class of (mark one, 4 points) (a) Object-oriented langua
Simpson CA - CS - 220
SimpleScalar Hackers Guide(for tool set release 2.0)Todd Austin info@simplescalar.com SimpleScalar LLCSimpleScalar LLCSimpleScalar Hackers Guide Todd AustinTutorial Overview Computer Architecture Simulation Primer SimpleScalar Tool Set Overview Use
Washington University in St. Louis - MATH - 422
Math 422, Theory of Functions of a Complex Variable IISpring 2004Instructor:David Wright Office: Room 114, Cupples I Phone: 314 935-6781 (office) E-mail: wright@einstein.wustl.edu Website: www.math.wustl.edu/~wright/ MWF 2:00-3:00Office Hours:Class M
CUNY Baruch - EES - 5501
City College of New York and Graduate Center of City University of New York G5501 Introduction to ROBOTICSHomework #8 Due: Dec. 6, 2005Answer the following questions briefly. 1) What is the robot mapping? What is robot localization? What is robot motion
CUNY Baruch - EES - 5501
Introduction to ROBOTICSMobile Robot MappingDr. John (Jizhong) Xiao Department of Electrical Engineering City College of New York jxiao@ccny.cuny.eduTopics Brief Review: Motion Planning Mobile Robot Mapping Using sonar to create maps Bayes Rule Evide
CUNY Baruch - EES - 5501
City College of New York and Graduate Center of City University of New York G5501 Introduction to ROBOTICSHomework #7 Due: Nov. 29, 2005Answer the following questions briefly. 1) What is the dimension of the Configuration Space of a fixed-base PUMA robo
CUNY Baruch - EES - 5501
Introduction to ROBOTICSMidterm Exam ReviewProf. John (Jizhong) Xiao Department of Electrical Engineering City College of New York jxiao@ccny.cuny.eduTheCityCollegeofNewYork1Grades Distribution12 10 8 6 4 2 0 &lt;60 61~70 71~80 81~89 &gt;90 Students37 st
CUNY Baruch - EES - 5501
City College of New York And Graduate Center of City University of New York G5501 Introduction to ROBOTICSHomework #3 Due: Sep. 27, 2005Problem 1: Establish orthonormal link coordinate systems (xi , yi , zi ) for i=1,2,6 for the PUMA 260 robot arm shown
Portland - ECE - 271
User ManualTektronix Logic Analyzer Family Version 3.2 Software 071-0729-00Copyright Tektronix, Inc. All rights reserved. Licensed software products are owned by Tektronix or its suppliers and are protected by United States copyright laws and internatio
r-p - BIO - 752
Practical Regression and Anova using RJulian J. Faraway July 20021 Copyright c 1999, 2000, 2002 Julian J. Faraway Permission to reproduce individual copies of this book for personal use is granted. Multiple copies may be created for nonprot academic pur
r-p - STAT - 425
Practical Regression and Anova using RJulian J. Faraway July 20021 Copyright c 1999, 2000, 2002 Julian J. Faraway Permission to reproduce individual copies of this book for personal use is granted. Multiple copies may be created for nonprot academic pur