Illinois Institute of Technology Department of Computer Science. Splay Trees. CS 535 Design and Analysis of Algorithms Fall Semester, 2018
|
|
- Anis Caldwell
- 5 years ago
- Views:
Transcription
1 Illinois Institute of Technolog epartment of omputer Science Spla Trees S 535 esign and nalsis of lgorithms Fall Semester, 2018 Spla trees are a powerful form of (leicographic) balanced binar trees devised b Sleator and Tarjan [1]. Spla trees are self-adjusting, so that frequentl-accessed items drift toward the root. Ever time we access the tree, we reorganie it through a sequence of rotations this organiation will be epensive on a onetime basis, but analsis shows that the basic operations require O(log n) amortied time: we show that m consecutive operations on a spla tree with n nodes require amortied time O((m+n)logn+m). Moreover, spla trees do not require an etra information in each node, as is needed for red-black trees. 1 Splaing The main operation in spla trees is the spla operation step. Splaing on a node moves to the root of the tree b a sequence of rotations that move it up two levels up at a time. If is an even number of levels from the root, then we use these two-level rotations to bring directl to the root. If is an odd number of levels from the root, then we these rotations to bring it up to one level below the root, at which point we appl either a right rotation (called a ZIG) or a left-rotation (called a ZG) to bring up to the node: ZG ZIG Thus, if our node is a left child we ZIG it to the root. Similarl, if it is a right child, we ZG it from the right to the root. To move the node two levels up the tree, consider its position relative to its grandparent. e appl either a ZIG-ZIG(that is, two ZIG s in a row) to the appropriatesubtree if is the leftmost grandchild, or a ZG-ZG if it is the rightmost grandchild. ZG-ZG ZIG-ZIG
2 S 535 Fall, Spla Trees Similarl, if is the right child of a left parent, we appl a ZIG-ZG: ZIG-ZG That is, we first rotate left at (the ZG) and then rotate right at (the ZIG). If is the left child of a right parent, we appl a ZG-ZIG operation: ZG-ZIG That is, we first rotate right at (the ZIG) and then rotate left at (the ZG). Using these operations, splaing on a node of depth d requires d rotations. e make a rotation our basic unit of time, as the can be implemented in constant time. Thus, we can sa that we need time d to spla on a node at depth d. onsider the following eample where we spla on the node 5. Note that the subtree rooted at 5 is constantl moving up the tree. 6 ZG-ZG 6 ZIG-ZG 5 2 F 2 F E F 4 4 E E e see that the tree goes from being long and thin list to being shorter and bushier. This is the general behavior under splaing: paths in the tree tend shorten considerabl. Pla around with the following URL
3 S 535 Fall, Spla Trees to get an idea of the power of the spla operation to keep a tree balanced as it undergoes searches, insertions, and deletions: 2 mortied ost of Splaing Since splaing is the primar operation, we now anale its amortied cost. To do so, we define a potential function. Suppose we have a spla tree T. Then, 1. ssign each node in T a positive weight w(). 2. Let the sie of node, denoted S(), be the sum of the weights of all the nodes in the subtree rooted at. 3. efine the rank r() = lgs(). efine the potential function of the tree T to be Φ(T) = r(). nodes T For eample, let the weight function be w() = 1 for each (internal) node (weights of leaves which are reall null pointers are 0), and consider the tree The sie of node 4, for eample, is w(4)+w(3) = 1+1 = 2; thus, r(4) = lg2 = 1. e can similarl compute the rank of each internal node to get the potential of the tree: Φ(T) = r(1)+r(2)+r(3)+r(4)+r(5) = lg1+lg3+lg1+lg2+lg5 = lg e now use the tools developed during our stud of amortied analsis. Recall that: MORTIZE OST = TUL OST + change in potential so that ĉ i = c i +Φ(T i ) Φ(T i 1 )
4 S 535 Fall, Spla Trees and hence n ĉ i = i=1 n c i +Φ(T n ) Φ(T 0 ). i=1 here T i is the tree after the ith operation, ĉ i is the amortied cost of the ith operation (that is, what ou would charge a customer of our data-structure business) and c i is the actual cost of that operation (that is, what ou have to pa the graduate student to do the work). In other words, over a sequence of operations, MORTIZE OST (sequence) = TUL OST (sequence)+φ end Φ start or, TUL OST (sequence) = MORTIZE OST (sequence) Φ end +Φ start. (1) ecause rotations take O(1) time, we define time to mean the number of rotations needed in an operation on a tree. ccess Lemma The amortied time to spla at a node in a tree with root t is at most ( 3[r(t) r()]+1 = O 1+log S(t) ). S() The proof of this lemma is b analing the various possible steps involved in splaing. Let r ( ) be the rank of a node after the spla, and r( ) be the rank of a node before the spla. e show that the amortied cost of an step of the spla operation is at most 3[r () r()], with eception of the one etra rotation needed at the root if is initiall at odd depth. Thus, when we perform several parts of a spla operation together, the 3[r () r()] terms telescope, giving an amortied cost of amortied costs = 1+ 3[r () r()] as claimed in the lemma. e now consider the various cases. = 1+3[r final () r initial ()] = 1+3[lgS(root) lgs()] ( = O 1+log S(t) ), S() ase 1: One rotation This case occurs as the last step when the splaed node is at an odd depth from the root. The actual cost of one rotation is just one time unit (rotation). Thus, we are left to anale the change potential. For the ZIG rotation ZIG the potentials of subtrees,, and are unaffected b a ZIG because their internal node structure does not change. Thus we need be concerned onl with the change in the ranks of and. enote b r() and
5 S 535 Fall, Spla Trees r() the ranks of and, respectivel, before the ZIG; denote b r () and r () the ranks of and after the ZIG operation. The change in the potential function caused b a ZIG is Φ = r ()+r () r() r(). learl, r () r() since starts the ZIG overlooking subtrees,, and and node, but ends the ZIG overlooking onl subtrees and. Thus, we can bound the potential difference b Φ = r () r()+r () r() r () r(). Now we can bound the amortied cost, as per equation (2): MORTIZE OST = TUL OST + Φ = 1+ Φ 1+r () r() 1+3[r () r()] The last inequalit is clearl a weak statement, since the 3 is unnecessar; nevertheless, this is the inequalit needed for the telescoping mentioned above. The amortied cost of a ZG operation can be computed in the same wa, with the appropriate relabelings. ase 2: ZIG-ZIG The actual cost of a ZIG-ZIG operation is two time units, the two rotations. e now need to compute the change in the potential function. Recall the definition of a ZIG-ZIG: ZIG-ZIG s in the previous case, the potentials of the subtrees,,, and are unaffected b the operation. Thus, we have, Φ = r ()+r ()+r () r() r() r(). (2) Now, to bring this Φ to the desired form, we notice a few relationships. First, r () = r() because the rotated is precisel in the same position as the old. Moreover, r() r() because overlooks in the original tree. Similarl, r () r (). Thus, (2) becomes giving an amortied cost of Φ r ()+r () 2r(), MORTIZE OST 2+r ()+r () 2r()
6 S 535 Fall, Spla Trees e want to show that which would follow from or that is, proving that MORTIZE OST 3[r () r()], 2+r ()+r () 2r() 3[r () r()], 2r ()+r()+r ()+2 0; 2r ()+r() +r () 2 will give the claimed bound. Let us anale the lefthand side of this last inequalit 2r ()+r()+r () = r ()+r() r ()+r () = log S () S() log S () S () = log S() S () +log S () S (), (3) where S ( ) is the sie of a node after the ZIG-ZIG operation, and S( ) is the sie of a node before the ZIG-ZIG operation. efine so that (3) becomes a = S() S () and b = S () S (), lga+lgb. learl a > 0 and b > 0. Moreover, S()+S () S () because before the ZIG-ZIG overlooks subtrees and, and overlooks subtrees and, but after the ZIG-ZIG overlooks all subtrees,,, and, in addition to and. Thus, S() S () + S () S () 1 ( less than is possible because the weight of is not included), and hence a+b 1. Thus, we have a > 0, b > 0, and a+b 1. Using the conveit of the logarithm, elementar calculus tells us that in the region of interest lga+lgb reaches a maimal value of 2 for a = b = 1/2. Thus, lga+lgb 2. Substituting back we get which is what we needed to show, so 2r ()+r()+r () 2, for the ZIG-ZIG operation, as we claimed. MORTIZE OST 3[r () r()] appropriate relabeling, we see that the ZG-ZG operation has the same amortied time.
7 S 535 Fall, Spla Trees ase 3: ZIG-ZG This case is similar in fashion to the case of ZIG-ZIG that we just analed: First, recall the definition of a ZIG-ZG: ZIG-ZG s in the previous case, the actual cost of a ZIG-ZG is 2 rotations, and we have to compute the change in the potential function, Φ = r ()+r ()+r () r() r() r(). gain we note that r () = r(). Furthermore, r() r() because is above in the original tree. Thus we have MORTIZE OST = 2+r ()+r ()+r () r() r() r() s in the previous case, we wish to show that 2+r ()+r () 2r(). MORTIZE OST 3[r () r()]; so we will show that 2+r ()+r () 2r() 2[r () r()], which is less than or equal to our desired bound of 3[r () r()]. The last inequalit can be rearranged to 2r () r () r () 2. s in the previous case, we know that S ()+S () S (), so that efine and again we find lga+lgb 2 so that S () S () + S () S () 1. a = S () S () and b = S () S () 2r () r () r () 2, and the stated bound on the amortied cost of the ZIG-ZG step follows. The ZG-ZIG case follows in eactl the same fashion, proving the ccess Lemma. Note that the doublerotation steps are necessar in this calculation, because the do not carr the +1 term that the single-rotation amortied costs carr. This +1 term would destro the telescoping.
8 S 535 Fall, Spla Trees 3 alance Theorem e can now determine the actual time needed for multiple accesses to the tree. alance Theorem The total access time for m accesses of a tree with n items is: O((m+n)logn+m). The proof of this theorem follows from our potential function and the ccess Lemma, using (1). efine the weight of a node to be w() = 1/n. From the ccess Lemma, we know that the amortied cost for the m accesses is ( m O 1+log S(t) ) ( = m O 1+log 1 ) S() 1/n = m O(1+logn). The first equalit follows from the fact that t overlooks all the other nodes, so its weight is n 1/n = 1. The greatest possible starting potential is Φ start n lg1 = 0, i=1 because no verte can have sie greater than 1 (the total sie of the whole tree is 1). On the other hand, the smallest ending potential is n Φ end lg 1 n nlogn i=1 because, at worst, ever verte has its own weight of 1/n; the second inequalit comes from Stirling s approimation. Putting all of the pieces together, as the theorem states. TUL OST m O(1+logn)+0 ( nlogn) O((m+n)logn+m), 4 Static Optimalit Theorem e can refine the alance Theorem if we know something about the access frequencies of the tree nodes. Static Optimalit Theorem If each item is accessed at least once, the total time for m accesses in a tree with n nodes is n O m+ q i log m, q i where q i is the number of times item i is accessed so that n i=1 q i = m. i=1
9 S 535 Fall, Spla Trees The proof follows as in the alance Theorem, but using the weight function = q i m, (so the sum ofall weightsis 1) and observingthat the amortiedcost ofan accessofitem i is O(1+log S(t) S(i) ) = O(1+log m q i ). The Static Optimalit Theorem is amaing because it is within a constant multiple of the entrop the information-theoretic lower bound on access time for a binar tree! (This is also true for the alance Theorem.) Thus spla trees are within a constant multiple of the lower bound on the problem. Moreover, the are as good as finger trees (trees that keep fingers pointing to the most frequentl-occurring items). 5 Operations on Spla Trees ith the spla operation and its analsis, it is not too difficult to implement and anale operations such as search, insert, and delete on spla trees. First, however, we introduce three new tree operations. ccess ccess takes an item i as input, runs a search on the tree to find the node containing i, then splas on that node, moving it to the top of the tree. If no such item is found, we spla on the last non-null node that we eamined in the binar search; that is, we spla at either i or i +, the predecessor or successor of i, respectivel. Join The join operation takes two trees, T 1 and T 2, for which ever item in T 2 is greater than ever item in T 1, and returns a single tree T containing the items of both trees. Implementing join on spla trees requires accessing the largest item, which we denote b i, in T 1 b following non-null right pointers from the root, followed b a spla at the last node found, which is i, the largest item in the tree. The spla puts i at the root of T 1 and, as the largest element, must have a null right subtree, which we replace with T 2 : T 1 T 2 join i T 1 i T 2 Split This is the reverse of join. It takes a tree T and a node i as input, and creates two trees T 1 and T 2 such that all items in T 1 are smaller than (or equal to) i and all items in T 2 are greater than (or equal to) i. Implementing split on spla trees involves accessing i, and then breaking one of the root s branches, depending on whether the root is greater or less than i (arbitraril selecting one if i is the root).
10 S 535 Fall, Spla Trees T spla at i i T1 i T 1 T 2 T 2 If i is not in the tree, the root after the spla at i is either i or i +, the leicographic predecessoror successor of i, respectivel. Now it is eas to implement the familiar operations of insert and delete: Insert Takes a tree T and an item i (presumed not in the tree) as an input and inserts a node containing i into T. To perform an insert, simpl split(t,i) and then make a new tree whose left and right branches are the trees T 1 and T 2 returned from split and whose node contains the item i. T split at i T 1 T 2 connect using i i T 1 T 2 Note that insert uses the fact that the split operation works if the node i is not present in the tree. elete Takes a tree T and an item i in the tree and deletes i from T. To perform delete, we again do a split(t,i). Then remove i and join the resulting subtrees. T spla at i i join T 1 and T 2 T 1 and T 2 T 1 T 2 elete could also be done b searching for the node containing i; suppose this node is and has a parent. e then replace as a child of b joining the left and right subtrees of and then splaing on. ll these operations have a logarithmic amortied time bound. Specificall, the following table gives the amortied times for the spla tree operations as a function of, the total weight of the items in the tree(s). The variables i + and i denote, respectivel, the successor and predecessor of i in the tree. If i or i + is undefined, then w(i ) = and w(i + ) =, respectivel.
11 S 535 Fall, Spla Trees Operation mortied ost access(i,t) 3lg +1 if i is in T access(i,t) 3lg min{w(i ),w(i + )} +1 if i is not in T join(t 1,T 2 ) 3lg +O(1) where i is the last item in T 1 split(i,t) 3 lg +O(1) if i is in T split(i,t) 3lg min{w(i ),w(i + )} +O(1) if i is not in T insert(i,t) 3lg min{w(i ),w(i + )} +lg +O(1) ) delete(i,t) 3lg +3lg +O(1) ( w(i ) The bounds for access and split follow directl from the ccess Lemma. The other bounds follow b analing the change in potential. For eample, the bound on join is found as follows: first we do an access on the largest value in T 1 ; this costs at most 3lg(S(T 1 )/)+1 amortied time. The link requires onl O(1) additional work, but linking trees T 1 and T 2 increases the potential so we also have to eamine that. The onl node whose weight changes is the root of T 1, which becomes the root of the entire tree. Thus, because the total weight is = S(T 1 )+S(T 2 ), the change in potential of the new root i is at most lg lgs(t 1 ) = lg. S(T 1 ) ombining these terms gives the desired bound: S(T1 ) 3lg +O(1)+lg S(T 1 ) S(T1 ) = 2lg S(T1 ) = 2lg +lg 3lg +O(1) The bounds for insert and delete are proven in a similar manner. ( S(T1 ) +lg ( S(T 1 ) ) +O(1) ) +O(1) e warned: The constants hidden in the O notation are large for this data structure, so it ma not be practical in real life. Reference [1] aniel. Sleator and Robert E. Tarjan, Self-djusting inar Search Trees, JM, vol. 32 (1985), pp
Chapter 6. Self-Adjusting Data Structures
Chapter 6 Self-Adjusting Data Structures Chapter 5 describes a data structure that is able to achieve an epected quer time that is proportional to the entrop of the quer distribution. The most interesting
More informationSplay trees (Sleator, Tarjan 1983)
Splay trees (Sleator, Tarjan 1983) 1 Main idea Try to arrange so frequently used items are near the root We shall assume that there is an item in every node including internal nodes. We can change this
More informationCSE 5311 Notes 5: Trees. (Last updated 6/4/13 4:12 PM)
SE 511 Notes 5: Trees (Last updated 6//1 :1 PM) What is the optimal wa to organie a static tree for searching? n optimal (static) binar search tree is significantl more complicated to construct than an
More informationOutline for Today. Static Optimality. Splay Trees. Properties of Splay Trees. Dynamic Optimality (ITA) Balanced BSTs aren't necessarily optimal!
Splay Trees Outline for Today Static Optimality alanced STs aren't necessarily optimal! Splay Trees self-adjusting binary search tree. Properties of Splay Trees Why is splaying worthwhile? ynamic Optimality
More informationpast balancing schemes require maintenance of balance info at all times, are aggresive use work of searches to pay for work of rebalancing
1 Splay Trees Sleator and Tarjan, Self Adjusting Binary Search Trees JACM 32(3) 1985 The claim planning ahead. But matches previous idea of being lazy, letting potential build up, using it to pay for expensive
More informationSearch Trees. Chapter 10. CSE 2011 Prof. J. Elder Last Updated: :52 AM
Search Trees Chapter 1 < 6 2 > 1 4 = 8 9-1 - Outline Ø Binary Search Trees Ø AVL Trees Ø Splay Trees - 2 - Outline Ø Binary Search Trees Ø AVL Trees Ø Splay Trees - 3 - Binary Search Trees Ø A binary search
More information8: Splay Trees. Move-to-Front Heuristic. Splaying. Splay(12) CSE326 Spring April 16, Search for Pebbles: Move found item to front of list
: Splay Trees SE Spring 00 pril, 00 Move-to-Front Heuristic Search for ebbles: Fred Wilma ebbles ino Fred Wilma ino ebbles Move found item to front of list Frequently searched items will move to start
More informationA STUDY ON SPLAY TREES
STUDY ON SPLY TREES LUÍS M. S. RUSSO bstract. We stud the dnamic optimalit conjecture, which predicts that spla trees are a form of universall efficient binar search tree, for an access sequence. We reduce
More informationSection 3.1. ; X = (0, 1]. (i) f : R R R, f (x, y) = x y
Paul J. Bruillard MATH 0.970 Problem Set 6 An Introduction to Abstract Mathematics R. Bond and W. Keane Section 3.1: 3b,c,e,i, 4bd, 6, 9, 15, 16, 18c,e, 19a, 0, 1b Section 3.: 1f,i, e, 6, 1e,f,h, 13e,
More informationHamiltonicity and Fault Tolerance
Hamiltonicit and Fault Tolerance in the k-ar n-cube B Clifford R. Haithcock Portland State Universit Department of Mathematics and Statistics 006 In partial fulfillment of the requirements of the degree
More informationSplay Trees. CMSC 420: Lecture 8
Splay Trees CMSC 420: Lecture 8 AVL Trees Nice Features: - Worst case O(log n) performance guarantee - Fairly simple to implement Problem though: - Have to maintain etra balance factor storage at each
More informationSearch Trees. EECS 2011 Prof. J. Elder Last Updated: 24 March 2015
Search Trees < 6 2 > 1 4 = 8 9-1 - Outline Ø Binary Search Trees Ø AVL Trees Ø Splay Trees - 2 - Learning Outcomes Ø From this lecture, you should be able to: q Define the properties of a binary search
More information8. BOOLEAN ALGEBRAS x x
8. BOOLEAN ALGEBRAS 8.1. Definition of a Boolean Algebra There are man sstems of interest to computing scientists that have a common underling structure. It makes sense to describe such a mathematical
More informationWe have examined power functions like f (x) = x 2. Interchanging x
CHAPTER 5 Eponential and Logarithmic Functions We have eamined power functions like f =. Interchanging and ields a different function f =. This new function is radicall different from a power function
More informationEstimators in simple random sampling: Searls approach
Songklanakarin J Sci Technol 35 (6 749-760 Nov - Dec 013 http://wwwsjstpsuacth Original Article Estimators in simple random sampling: Searls approach Jirawan Jitthavech* and Vichit Lorchirachoonkul School
More informationThe Steiner Ratio for Obstacle-Avoiding Rectilinear Steiner Trees
The Steiner Ratio for Obstacle-Avoiding Rectilinear Steiner Trees Anna Lubiw Mina Razaghpour Abstract We consider the problem of finding a shortest rectilinear Steiner tree for a given set of pointn the
More informationFlows and Connectivity
Chapter 4 Flows and Connectivit 4. Network Flows Capacit Networks A network N is a connected weighted loopless graph (G,w) with two specified vertices and, called the source and the sink, respectivel,
More information5. Zeros. We deduce that the graph crosses the x-axis at the points x = 0, 1, 2 and 4, and nowhere else. And that s exactly what we see in the graph.
. Zeros Eample 1. At the right we have drawn the graph of the polnomial = ( 1) ( 2) ( 4). Argue that the form of the algebraic formula allows ou to see right awa where the graph is above the -ais, where
More informationDictionary: an abstract data type
2-3 Trees 1 Dictionary: an abstract data type A container that maps keys to values Dictionary operations Insert Search Delete Several possible implementations Balanced search trees Hash tables 2 2-3 trees
More information(a) We split the square up into four pieces, parametrizing and integrating one a time. Right side: C 1 is parametrized by r 1 (t) = (1, t), 0 t 1.
Thursda, November 5 Green s Theorem Green s Theorem is a 2-dimensional version of the Fundamental Theorem of alculus: it relates the (integral of) a vector field F on the boundar of a region to the integral
More informationGreen s Theorem Jeremy Orloff
Green s Theorem Jerem Orloff Line integrals and Green s theorem. Vector Fields Vector notation. In 8.4 we will mostl use the notation (v) = (a, b) for vectors. The other common notation (v) = ai + bj runs
More information8.1 Exponents and Roots
Section 8. Eponents and Roots 75 8. Eponents and Roots Before defining the net famil of functions, the eponential functions, we will need to discuss eponent notation in detail. As we shall see, eponents
More informationES.182A Topic 36 Notes Jeremy Orloff
ES.82A Topic 36 Notes Jerem Orloff 36 Vector fields and line integrals in the plane 36. Vector analsis We now will begin our stud of the part of 8.2 called vector analsis. This is the stud of vector fields
More informationAVL trees. AVL trees
Dnamic set DT dnamic set DT is a structure tat stores a set of elements. Eac element as a (unique) ke and satellite data. Te structure supports te following operations. Searc(S, k) Return te element wose
More informationLecture VI AMORTIZATION
1. Potential Framework Lecture VI Page 1 Lecture VI AMORTIZATION Many algorithms amount to a sequence of operations on a data structure. For instance, the well-known heapsort algorithm is a sequence of
More informationAnswer Explanations. The SAT Subject Tests. Mathematics Level 1 & 2 TO PRACTICE QUESTIONS FROM THE SAT SUBJECT TESTS STUDENT GUIDE
The SAT Subject Tests Answer Eplanations TO PRACTICE QUESTIONS FROM THE SAT SUBJECT TESTS STUDENT GUIDE Mathematics Level & Visit sat.org/stpractice to get more practice and stud tips for the Subject Test
More information2.5 CONTINUITY. a x. Notice that Definition l implicitly requires three things if f is continuous at a:
SECTION.5 CONTINUITY 9.5 CONTINUITY We noticed in Section.3 that the it of a function as approaches a can often be found simpl b calculating the value of the function at a. Functions with this propert
More informationLecture 2 14 February, 2007
6.851: Advanced Data Structures Spring 2007 Prof. Erik Demaine Lecture 2 14 February, 2007 Scribes: Christopher Moh, Aditya Rathnam 1 Overview In the last lecture we covered linked lists and some results
More information2.5. Infinite Limits and Vertical Asymptotes. Infinite Limits
. Infinite Limits and Vertical Asmptotes. Infinite Limits and Vertical Asmptotes In this section we etend the concept of it to infinite its, which are not its as before, but rather an entirel new use of
More informationINTRODUCTION TO DIFFERENTIAL EQUATIONS
INTRODUCTION TO DIFFERENTIAL EQUATIONS. Definitions and Terminolog. Initial-Value Problems.3 Differential Equations as Mathematical Models CHAPTER IN REVIEW The words differential and equations certainl
More informationLecture 17: Trees and Merge Sort 10:00 AM, Oct 15, 2018
CS17 Integrated Introduction to Computer Science Klein Contents Lecture 17: Trees and Merge Sort 10:00 AM, Oct 15, 2018 1 Tree definitions 1 2 Analysis of mergesort using a binary tree 1 3 Analysis of
More informationOutline for Today. Static Optimality. Splay Trees. Properties of Splay Trees. Dynamic Optimality (ITA) Balanced BSTs aren't necessarily optimal!
Splay Trees Outline for Today Static Optimality Balanced BSTs aren't necessarily optimal! Splay Trees A self-adjusting binary search tree. Properties of Splay Trees Why is splaying worthwhile? Dynamic
More informationMAT 1275: Introduction to Mathematical Analysis. Graphs and Simplest Equations for Basic Trigonometric Functions. y=sin( x) Function
MAT 275: Introduction to Mathematical Analsis Dr. A. Rozenblum Graphs and Simplest Equations for Basic Trigonometric Functions We consider here three basic functions: sine, cosine and tangent. For them,
More informationSimplification of State Machines
T3 Lecture Notes State Reduction hapter 9 - of Simplification of State Machines This semester has been spent developing the techniques needed to design digital circuits. Now we can compile a list of just
More informationModule 2: Trigonometry
Principles of Mathematics 1 Contents 1 Module : Trigonometr Section 1 Trigonometric Functions 3 Lesson 1 The Trigonometric Values for θ, 0 θ 360 5 Lesson Solving Trigonometric Equations, 0 θ 360 9 Lesson
More informationDictionary: an abstract data type
2-3 Trees 1 Dictionary: an abstract data type A container that maps keys to values Dictionary operations Insert Search Delete Several possible implementations Balanced search trees Hash tables 2 2-3 trees
More informationHomework Notes Week 6
Homework Notes Week 6 Math 24 Spring 24 34#4b The sstem + 2 3 3 + 4 = 2 + 2 + 3 4 = 2 + 2 3 = is consistent To see this we put the matri 3 2 A b = 2 into reduced row echelon form Adding times the first
More informationCh 3 Alg 2 Note Sheet.doc 3.1 Graphing Systems of Equations
Ch 3 Alg Note Sheet.doc 3.1 Graphing Sstems of Equations Sstems of Linear Equations A sstem of equations is a set of two or more equations that use the same variables. If the graph of each equation =.4
More informationReview Topics for MATH 1400 Elements of Calculus Table of Contents
Math 1400 - Mano Table of Contents - Review - page 1 of 2 Review Topics for MATH 1400 Elements of Calculus Table of Contents MATH 1400 Elements of Calculus is one of the Marquette Core Courses for Mathematical
More informationLinear programming: Theory
Division of the Humanities and Social Sciences Ec 181 KC Border Convex Analsis and Economic Theor Winter 2018 Topic 28: Linear programming: Theor 28.1 The saddlepoint theorem for linear programming The
More informationTopic 3 Notes Jeremy Orloff
Topic 3 Notes Jerem Orloff 3 Line integrals and auch s theorem 3.1 Introduction The basic theme here is that comple line integrals will mirror much of what we ve seen for multivariable calculus line integrals.
More informationIn everyday speech, a continuous. Limits and Continuity. Critical Thinking Exercises
062 Chapter Introduction to Calculus Critical Thinking Eercises Make Sense? In Eercises 74 77, determine whether each statement makes sense or does not make sense, and eplain our reasoning. 74. I evaluated
More informationKINEMATIC RELATIONS IN DEFORMATION OF SOLIDS
Chapter 8 KINEMATIC RELATIONS IN DEFORMATION OF SOLIDS Figure 8.1: 195 196 CHAPTER 8. KINEMATIC RELATIONS IN DEFORMATION OF SOLIDS 8.1 Motivation In Chapter 3, the conservation of linear momentum for a
More information8 Differential Calculus 1 Introduction
8 Differential Calculus Introduction The ideas that are the basis for calculus have been with us for a ver long time. Between 5 BC and 5 BC, Greek mathematicians were working on problems that would find
More informationChapter 4 Analytic Trigonometry
Analtic Trigonometr Chapter Analtic Trigonometr Inverse Trigonometric Functions The trigonometric functions act as an operator on the variable (angle, resulting in an output value Suppose this process
More information. This is the Basic Chain Rule. x dt y dt z dt Chain Rule in this context.
Math 18.0A Gradients, Chain Rule, Implicit Dierentiation, igher Order Derivatives These notes ocus on our things: (a) the application o gradients to ind normal vectors to curves suraces; (b) the generaliation
More informationPolynomial and Rational Functions
Name Date Chapter Polnomial and Rational Functions Section.1 Quadratic Functions Objective: In this lesson ou learned how to sketch and analze graphs of quadratic functions. Important Vocabular Define
More information0.24 adults 2. (c) Prove that, regardless of the possible values of and, the covariance between X and Y is equal to zero. Show all work.
1 A socioeconomic stud analzes two discrete random variables in a certain population of households = number of adult residents and = number of child residents It is found that their joint probabilit mass
More informationMathematics. Polynomials and Quadratics. hsn.uk.net. Higher. Contents. Polynomials and Quadratics 1. CfE Edition
Higher Mathematics Contents 1 1 Quadratics EF 1 The Discriminant EF 3 3 Completing the Square EF 4 4 Sketching Parabolas EF 7 5 Determining the Equation of a Parabola RC 9 6 Solving Quadratic Inequalities
More informationPart D. Complex Analysis
Part D. Comple Analsis Chapter 3. Comple Numbers and Functions. Man engineering problems ma be treated and solved b using comple numbers and comple functions. First, comple numbers and the comple plane
More informationUNCORRECTED SAMPLE PAGES. 3Quadratics. Chapter 3. Objectives
Chapter 3 3Quadratics Objectives To recognise and sketch the graphs of quadratic polnomials. To find the ke features of the graph of a quadratic polnomial: ais intercepts, turning point and ais of smmetr.
More information6 = 1 2. The right endpoints of the subintervals are then 2 5, 3, 7 2, 4, 2 9, 5, while the left endpoints are 2, 5 2, 3, 7 2, 4, 9 2.
5 THE ITEGRAL 5. Approimating and Computing Area Preliminar Questions. What are the right and left endpoints if [, 5] is divided into si subintervals? If the interval [, 5] is divided into si subintervals,
More informationLimits and Continuous Functions. 2.2 Introduction to Limits. We first interpret limits loosely. We write. lim f(x) = L
2 Limits and Continuous Functions 2.2 Introduction to Limits We first interpret limits loosel. We write lim f() = L and sa the limit of f() as approaches c, equals L if we can make the values of f() arbitraril
More informationLecture 5: Splay Trees
15-750: Graduate Algorithms February 3, 2016 Lecture 5: Splay Trees Lecturer: Gary Miller Scribe: Jiayi Li, Tianyi Yang 1 Introduction Recall from previous lecture that balanced binary search trees (BST)
More informationMATH Line integrals III Fall The fundamental theorem of line integrals. In general C
MATH 255 Line integrals III Fall 216 In general 1. The fundamental theorem of line integrals v T ds depends on the curve between the starting point and the ending point. onsider two was to get from (1,
More information5.6 RATIOnAl FUnCTIOnS. Using Arrow notation. learning ObjeCTIveS
CHAPTER PolNomiAl ANd rational functions learning ObjeCTIveS In this section, ou will: Use arrow notation. Solve applied problems involving rational functions. Find the domains of rational functions. Identif
More informationChapter 5 Data Structures Algorithm Theory WS 2017/18 Fabian Kuhn
Chapter 5 Data Structures Algorithm Theory WS 2017/18 Fabian Kuhn Priority Queue / Heap Stores (key,data) pairs (like dictionary) But, different set of operations: Initialize-Heap: creates new empty heap
More informationProbability Theory Refresher
Machine Learning WS24 Module IN264 Sheet 2 Page Machine Learning Worksheet 2 Probabilit Theor Refresher Basic Probabilit Problem : A secret government agenc has developed a scanner which determines whether
More informationOn the relation between the relative earth mover distance and the variation distance (an exposition)
On the relation between the relative earth mover distance and the variation distance (an eposition) Oded Goldreich Dana Ron Februar 9, 2016 Summar. In this note we present a proof that the variation distance
More informationFunctions of Several Variables
Chapter 1 Functions of Several Variables 1.1 Introduction A real valued function of n variables is a function f : R, where the domain is a subset of R n. So: for each ( 1,,..., n ) in, the value of f is
More information7-6. nth Roots. Vocabulary. Geometric Sequences in Music. Lesson. Mental Math
Lesson 7-6 nth Roots Vocabular cube root n th root BIG IDEA If is the nth power of, then is an nth root of. Real numbers ma have 0, 1, or 2 real nth roots. Geometric Sequences in Music A piano tuner adjusts
More informationHigher. Polynomials and Quadratics. Polynomials and Quadratics 1
Higher Mathematics Contents 1 1 Quadratics EF 1 The Discriminant EF 3 3 Completing the Square EF 4 4 Sketching Parabolas EF 7 5 Determining the Equation of a Parabola RC 9 6 Solving Quadratic Inequalities
More informationGraphs and Trees Binary Search Trees AVL-Trees (a,b)-trees Splay-Trees. Search Trees. Tobias Lieber. April 14, 2008
Search Trees Tobias Lieber April 14, 2008 Tobias Lieber Search Trees April 14, 2008 1 / 57 Graphs and Trees Binary Search Trees AVL-Trees (a,b)-trees Splay-Trees Tobias Lieber Search Trees April 14, 2008
More informationCSE 546 Midterm Exam, Fall 2014
CSE 546 Midterm Eam, Fall 2014 1. Personal info: Name: UW NetID: Student ID: 2. There should be 14 numbered pages in this eam (including this cover sheet). 3. You can use an material ou brought: an book,
More informationThe Maze Generation Problem is NP-complete
The Mae Generation Problem is NP-complete Mario Alviano Department of Mathematics, Universit of Calabria, 87030 Rende (CS), Ital alviano@mat.unical.it Abstract. The Mae Generation problem has been presented
More informationMathematics. Mathematics 2. hsn.uk.net. Higher HSN22000
hsn.uk.net Higher Mathematics UNIT Mathematics HSN000 This document was produced speciall for the HSN.uk.net website, and we require that an copies or derivative works attribute the work to Higher Still
More informationOn Range and Reflecting Functions About the Line y = mx
On Range and Reflecting Functions About the Line = m Scott J. Beslin Brian K. Heck Jerem J. Becnel Dept.of Mathematics and Dept. of Mathematics and Dept. of Mathematics and Computer Science Computer Science
More informationMathematical Statistics. Gregg Waterman Oregon Institute of Technology
Mathematical Statistics Gregg Waterman Oregon Institute of Technolog c Gregg Waterman This work is licensed under the Creative Commons Attribution. International license. The essence of the license is
More informationLecture 2 September 4, 2014
CS 224: Advanced Algorithms Fall 2014 Prof. Jelani Nelson Lecture 2 September 4, 2014 Scribe: David Liu 1 Overview In the last lecture we introduced the word RAM model and covered veb trees to solve the
More information6. This sum can be rewritten as 4( ). We then recall the formula n =
. c = 9b = 3 b = 3 a 3 = a = = 6.. (3,, ) = 3 + + 3 = 9 + + 3 = 6 6. 3. We see that this is equal to. 3 = ( +.) 3. Using the fact that (x + ) 3 = x 3 + 3x + 3x + and replacing x with., we find that. 3
More informationLab 5 Forces Part 1. Physics 225 Lab. You will be using Newton s 2 nd Law to help you examine the nature of these forces.
b Lab 5 orces Part 1 Introduction his is the first week of a two part lab that deals with forces and related concepts. A force is a push or a pull on an object that can be caused b a variet of reasons.
More informationa. plotting points in Cartesian coordinates (Grade 9 and 10), b. using a graphing calculator such as the TI-83 Graphing Calculator,
GRADE PRE-CALCULUS UNIT C: QUADRATIC FUNCTIONS CLASS NOTES FRAME. After linear functions, = m + b, and their graph the Quadratic Functions are the net most important equation or function. The Quadratic
More informationADDITIVELY SEPARABLE FUNCTIONS
ADDITIVELY SEPARABLE FUNCTIONS FUNCTIONS OF THE FORM F (, ) =f()+g() STEVEN F. BELLENOT Abstract. A sample project similar to the project for Spring 25. The picture below has a hortizontal space coordinate
More informationMath 123 Summary of Important Algebra & Trigonometry Concepts Chapter 1 & Appendix D, Stewart, Calculus Early Transcendentals
Math Summar of Important Algebra & Trigonometr Concepts Chapter & Appendi D, Stewart, Calculus Earl Transcendentals Function a rule that assigns to each element in a set D eactl one element, called f (
More informationBridge-Thickness Experiment. Student 2
Applications 1. Below are some results from the bridge-thickness eperiment. Bridge-Thickness Eperiment Thickness (laers) Breaking Weight (pennies) 15 5 5 a. Plot the (thickness, breaking weight) data.
More informationAPPENDIXES. B Coordinate Geometry and Lines C. D Trigonometry E F. G The Logarithm Defined as an Integral H Complex Numbers I
APPENDIXES A Numbers, Inequalities, and Absolute Values B Coordinate Geometr and Lines C Graphs of Second-Degree Equations D Trigonometr E F Sigma Notation Proofs of Theorems G The Logarithm Defined as
More informationMAT 127: Calculus C, Fall 2010 Solutions to Midterm I
MAT 7: Calculus C, Fall 00 Solutions to Midterm I Problem (0pts) Consider the four differential equations for = (): (a) = ( + ) (b) = ( + ) (c) = e + (d) = e. Each of the four diagrams below shows a solution
More informationThis document is stored in Documents/4C/nablaoperator.tex. Compile it with LaTex. VECTOR CALCULUS
This document is stored in Documents/4C/nablaoperator.tex. Compile it with LaTex. November 12, 2014 Hans P. Paar VECTOR CALCULUS 1 Introduction Vector calculus is a branch of mathematics that allows differentiation
More information2.2 SEPARABLE VARIABLES
44 CHAPTER FIRST-ORDER DIFFERENTIAL EQUATIONS 6 Consider the autonomous DE 6 Use our ideas from Problem 5 to find intervals on the -ais for which solution curves are concave up and intervals for which
More informationInge Li Gørtz. Thank you to Kevin Wayne for inspiration to slides
02110 Inge Li Gørtz Thank you to Kevin Wayne for inspiration to slides Welcome Inge Li Gørtz. Reverse teaching and discussion of exercises: 3 teaching assistants 8.00-9.15 Group work 9.15-9.45 Discussions
More informationDesign and Analysis of Algorithms
CSE 0, Winter 208 Design and Analsis of Algorithms Lecture 6: NP-Completeness, Part 2 Class URL: http://vlsicad.ucsd.edu/courses/cse0-w8/ The Classes P and NP Classes of Decision Problems P: Problems for
More informationCubic and quartic functions
3 Cubic and quartic functions 3A Epanding 3B Long division of polnomials 3C Polnomial values 3D The remainder and factor theorems 3E Factorising polnomials 3F Sum and difference of two cubes 3G Solving
More informationCS Data Structures and Algorithm Analysis
CS 483 - Data Structures and Algorithm Analysis Lecture VII: Chapter 6, part 2 R. Paul Wiegand George Mason University, Department of Computer Science March 22, 2006 Outline 1 Balanced Trees 2 Heaps &
More informationarxiv: v2 [math.co] 21 Apr 2012
INTERVALS OF BALANCED BINARY TREES IN THE TAMARI LATTICE arxiv:117.3472v2 [math.co] 21 Apr 212 SAMUELE GIRAUDO Abstract. We show that the set of balanced binar trees is closed b interval in the Tamari
More informationVectors and the Geometry of Space
Chapter 12 Vectors and the Geometr of Space Comments. What does multivariable mean in the name Multivariable Calculus? It means we stud functions that involve more than one variable in either the input
More information3.0 PROBABILITY, RANDOM VARIABLES AND RANDOM PROCESSES
3.0 PROBABILITY, RANDOM VARIABLES AND RANDOM PROCESSES 3.1 Introduction In this chapter we will review the concepts of probabilit, rom variables rom processes. We begin b reviewing some of the definitions
More informationTrusses - Method of Joints
Trusses - Method of Joints ME 22 Truss - efinition truss is a framework of members joined at ends with frictionless pins to form a stable structure. (Onl two-force members.) asic shape is a triangle. truss
More informationEquations of lines in
Roberto s Notes on Linear Algebra Chapter 6: Lines, planes an other straight objects Section 1 Equations of lines in What ou nee to know alrea: The ot prouct. The corresponence between equations an graphs.
More informationSection 1.2: A Catalog of Functions
Section 1.: A Catalog of Functions As we discussed in the last section, in the sciences, we often tr to find an equation which models some given phenomenon in the real world - for eample, temperature as
More information74 Maths Quest 10 for Victoria
Linear graphs Maria is working in the kitchen making some high energ biscuits using peanuts and chocolate chips. She wants to make less than g of biscuits but wants the biscuits to contain at least 8 g
More information10.2 The Unit Circle: Cosine and Sine
0. The Unit Circle: Cosine and Sine 77 0. The Unit Circle: Cosine and Sine In Section 0.., we introduced circular motion and derived a formula which describes the linear velocit of an object moving on
More informationOrdinary Differential Equations
58229_CH0_00_03.indd Page 6/6/6 2:48 PM F-007 /202/JB0027/work/indd & Bartlett Learning LLC, an Ascend Learning Compan.. PART Ordinar Differential Equations. Introduction to Differential Equations 2. First-Order
More informationGlossary. Also available at BigIdeasMath.com: multi-language glossary vocabulary flash cards. An equation that contains an absolute value expression
Glossar This student friendl glossar is designed to be a reference for ke vocabular, properties, and mathematical terms. Several of the entries include a short eample to aid our understanding of important
More informationTrusses - Method of Sections
Trusses - Method of Sections ME 202 Methods of Truss Analsis Method of joints (previous notes) Method of sections (these notes) 2 MOS - Concepts Separate the structure into two parts (sections) b cutting
More informationModule 3, Section 4 Analytic Geometry II
Principles of Mathematics 11 Section, Introduction 01 Introduction, Section Analtic Geometr II As the lesson titles show, this section etends what ou have learned about Analtic Geometr to several related
More informationAlgebra/Pre-calc Review
Algebra/Pre-calc Review The following pages contain various algebra and pre-calculus topics that are used in the stud of calculus. These pages were designed so that students can refresh their knowledge
More informationCHAPTER 2: Partial Derivatives. 2.2 Increments and Differential
CHAPTER : Partial Derivatives.1 Definition of a Partial Derivative. Increments and Differential.3 Chain Rules.4 Local Etrema.5 Absolute Etrema 1 Chapter : Partial Derivatives.1 Definition of a Partial
More informationy = 3 2 x 3. The slope of this line is 3 and its y-intercept is (0, 3). For every two units to the right, the line rises three units vertically.
Mat 2 - Calculus for Management and Social Science. Understanding te basics of lines in te -plane is crucial to te stud of calculus. Notes Recall tat te and -intercepts of a line are were te line meets
More information8.7 Systems of Non-Linear Equations and Inequalities
8.7 Sstems of Non-Linear Equations and Inequalities 67 8.7 Sstems of Non-Linear Equations and Inequalities In this section, we stud sstems of non-linear equations and inequalities. Unlike the sstems of
More informationFIRST- AND SECOND-ORDER IVPS The problem given in (1) is also called an nth-order initial-value problem. For example, Solve: Solve:
.2 INITIAL-VALUE PROBLEMS 3.2 INITIAL-VALUE PROBLEMS REVIEW MATERIAL Normal form of a DE Solution of a DE Famil of solutions INTRODUCTION We are often interested in problems in which we seek a solution
More information