1 Page

module4

Course: PSYCH 101, Winter 2012
School: Waterloo
Rating:
 
 
 
 
 

Word Count: 2209

Document Preview

ADT A Dictionary dictionary is an ADT consisting of a collection of items with operations Insert, Delete and Search (this operation may also be named Find). We search for items by the value of their keys. Typically, items may contain additional satellite data. Usually, we will assume that all keys are different, and there is an ordering (denoted by <) defined on keys. 80 / 102 Simple Implementations We...

Register Now

Unformatted Document Excerpt

Coursehero >> Canada >> Waterloo >> PSYCH 101

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.
ADT A Dictionary dictionary is an ADT consisting of a collection of items with operations Insert, Delete and Search (this operation may also be named Find). We search for items by the value of their keys. Typically, items may contain additional satellite data. Usually, we will assume that all keys are different, and there is an ordering (denoted by <) defined on keys. 80 / 102 Simple Implementations We can implement the dictionary ADT using an unordered array, an ordered array or a binary search tree. Suppose the dictionary contains n items. The various operations have differing (worst-case) complexities depending on the data structure used in the implementation, as summarized in the following table: implementation unordered array ordered array binary search tree Insert (1) (n) (height) Search (n) (log n) (height) Delete (1) (n) (height) In the case of Delete in an unordered array, we assume that we have previously performed a successful search for the item to be deleted. 81 / 102 Operations in Binary Search Trees (review) For any node X in a binary search tree and for any descendant Y of X, we have Y.key < X.key if Y is in the left subtree of X, and Y.key > X.key if Y is in the right subtree of X. Search is basically a binary search: start at the root and follow the appropriate path down the tree until the desired key value is found or we reach an empty subtree. To Insert an item with a new key, we perform an (unsuccessful) Search, and then insert the new node at the leaf node where the search terminated. To Delete an item with a specified key, we first use Search to find the node X containing the given item. One of three possible cases then occurs. 82 / 102 Deletion in Binary Search Trees X is a leaf node. Delete X from the tree. X has only one child. Attach the nonempty subtree of X to the parent of X, and then delete X. X has two children. Find the successor of X, say Y , which is the leftmost node in the right subtree of X. Y has no left child. Attach the right subtree of Y as the left subtree of the parent of Y . Then replace X by Y . Alternatively, find the predecessor of X, say Y , which is the rightmost node in the left subtree of X. Y has no right child. Attach the left subtree of Y as the right subtree of the parent of Y . Then replace X by Y . 83 / 102 Height of a Binary Search Tree Suppose we build a binary search tree by performing n Insert operations, where the n items have n random (but distinct keys). It can be shown that the expected height of this random binary search tree is (log n). (A related result is shown on the next slide.) However, in the worst case, a binary search tree can have height (n). Therefore, Search, Insert and Delete all have worst-case complexity (n). Our goal is for each of these three operations to have worst-case complexity (log n). This is typically done by keeping the tree sufficiently balanced. 84 / 102 Average Internal Path Length of a Random BST For every node X in a BST T having n nodes, define T (X) to be the number of edges in the path from the root node to X. Then define aT = X T (X). Note that aT is the total internal path length of T . The average internal path length of T is aT /n. We now consider the average (i.e., expected) value of aT over all BSTs built on a fixed set of n distinct keys by performing n Insert operations. Denote this value by an . We have the following recurrence: an = n - 1 + 1 n n-1 (ai + an-1-i ). i=0 We know from the analysis of QuickSort that an (n log n), so the average internal path length of a random BST is (log n). 85 / 102 AVL Trees A node in a binary tree is balanced if the heights of its two subtrees differ by at most 1 (an empty subtree is defined to have height equal to -1). A binary search tree is an AVL tree if every node is balanced. We will label each node X of an AVL tree with a condition code as follows: "/" means that height(LeftSubtree(X)) = height(RightSubtree(X)) + 1 "=" means that height(LeftSubtree(X)) = height(RightSubtree(X)) "\" means that height(LeftSubtree(X)) = height(RightSubtree(X)) - 1 86 / 102 Height of an AVL Tree Let ni denote the smallest number of nodes in an AVL tree of height i . It is easy to compute some small values: n0 = 1, n1 = 2, n2 = 4, n3 = 7, n4 = 12, n5 = 20. Observe that if we add 1 to each term in the sequence n1 , n2 , . . . , we get the Fibonacci sequence 2, 3, 5, 8, 13, . . . . To prove this, we observe that the following recurrence relation holds: ni = 1 + ni-1 + ni-2 . If we let gi = ni + 1, then we have gi - 1 = 1 + gi-1 - 1 + gi-2 - 1, so gi = gi-1 + gi-2 . This is the Fibonacci recurrence! 87 / 102 Height of an AVL Tree (cont.) In fact, gi = Fi+3 , so ni = Fi+3 - 1 = i+3 - (1 - )i+3 - 1, 5 where = (1 + 5)/2. From this, it follows that ni (i ). In any AVL tree of height i on n nodes, we have n ni , so n (i ) and therefore i O(log n) = O(log n). 88 / 102 Rotations in an AVL Tree In order to maintain the "balance" property of an AVL tree, it will be necessary to perform rotations. Suppose a node X in a tree T has left child Y and right subtree C. Also, Y has left subtree A and right subtree B. A right rotation of the node X will create a tree T in which Y has left subtree A and right child X. Furthermore, X has left subtree B and right subtree C. A left rotation of the node Y in the tree T yields the original tree T. 89 / 102 A Right Rotation in an AVL Tree X Y Y X C A B A B C 90 / 102 Double Rotations in an AVL Tree Suppose a node X in a tree T has left child Y and right subtree D. Also, Y has left subtree A and right child Z, and Z has left subtree B and right subtree C. A right double rotation of the node X will create a tree T in which Z has left child Y and right child X. Y has left subtree A and right subtree B; Z has has left subtree C and right subtree D. A right double rotation of X is the same as a left of rotation Y followed by a right rotation of X. 91 / 102 A Right Double Rotation in an AVL Tree X Y Y Z X Z D A B C D A B C 92 / 102 Insertion in an AVL Tree 1. Insert the new item as in a binary search tree. 2. Follow the path P from the newly inserted node back towards the root, updating the condition codes. 3. Suppose a node X becomes unbalanced. Let Y and Z be the child and grandchild of X (resp.) on the path P . Then: If LeftChild(X) = Y and LeftChild(Y ) = Z, then RightRotate(X). If LeftChild(X) = Y and RightChild(Y ) = Z, then RightDoubleRotate(X). If RightChild(X) = Y and RightChild(Y ) = Z, then LeftRotate(X). If RightChild(X) = Y and LeftChild(Y ) = Z, then LeftDoubleRotate(X). 93 / 102 Insertion and Deletion in an AVL Tree It is possible to show that at most one rotation or double rotation is required per Insert operation (i.e., step (3) is executed for at most one node on the path P ). The entire Insert operation takes O(log n) time. A Delete operation is similar, but note that multiple nodes on P may require rotations and/or double rotations. Still, a Delete operation also takes O(log n) time. 94 / 102 B-trees A B-tree of minimum degree t is a tree T that satisfies the following properties: 1. The number of keys stored in any non-leaf node (excluding the root node) is at least t - 1 and at most 2t - 1. The root node contains at least 1 and at most 2t - 1 keys. Within any node, these keys are stored in increasing order . 2. Suppose a non-leaf node X has j keys, denoted X.keys[1], . . . , X.keys[j]. Then X has exactly j + 1 children. For 2 i j, all keys in the i th subtree of X are greater than X.keys[i - 1], and for 1 i j - 1, all keys in the i th subtree of X are less than X.keys[i ]. 3. All leaf nodes are at the same level of T . 95 / 102 2-3-4 Trees We will mainly study 2-3-4 trees, which are B-trees of minimum degree 2. Non-leaf nodes in a 2-3-4 tree contain 1, 2 or 3 keys. The algorithms we describe generalize in a sraightforward manner to B-trees of any specified minimum degree t. A 2-3-4 tree containing n keys has height h log(n + 1) - 1. This means that Search, Input and Delete can all be implemented to have complexity O(log n). 96 / 102 Searching in 2-3-4 Trees Search is similar to a standard binary search, except that there are more options at each node. Suppose we are searching for a key whose value is k. We begin at the root node and follow an appropriate path through the tree. When we are examining a particular node X, we do search through the keys in X. If we find k then we stop (success). If we do not find k and X is a leaf node, then we stop (failure). Otherwise, we move to the appropriate child of X and continue. 97 / 102 Insertion in a 2-3-4 Tree As in the case of a binary search tree, we first find the leaf node X where the new key k belongs. This is done using the Search operation. If X contains 1 or 2 keys, then we insert k into the node X. However, if X contains 3 keys, then it is "full" so we cannot insert k into K. In this case, we need to split X into two nodes. This is done as follows: 1. Temporarily insert k into X, creating a node with 4 keys. 2. Promote the median key in X to X's parent, say Y . 3. Split X into two nodes, X1 and X2 , each of which has one or two keys. 98 / 102 Insertion in a 2-3-4 Tree (cont.) When we promote a key to the node Y , this node now has one more key than before. If it was already full, then we will need to split Y , using the same process. In this way, we follow a path back up the tree towards the root node, splitting all nodes that are full. If we backtrack all the way the to root node and it is also full, then we split the root node and create a new root node, increasing the height of the tree by 1. There is an alternative approach that avoids the above-described splitting by backtracking. Namely, we do pre-emptive splitting while we travel down the tree: split every full node on the way down, beginning at the root. 99 / 102 Deletion from a 2-3-4 Tree We might want to delete a key from a non-leaf node; first, we discuss how to delete a key k from a leaf node X. 1. If X contains 2 or 3 keys, there is no problem. 2. If X contains only 1 key, we have underflow . Check if an adjacent sibling of X contains 2 or 3 keys. 2.1 If so, then we perform a transfer operation: transfer a key from the sibling of X to the parent of X; then transfer a key from the parent of X to X; and then delete k. 2.2 If not, then we perform a fusion operation: merge an adjacent sibling of X with X; transfer a key from the parent of X to X; and then delete k. Now the parent of X has one fewer child than before. If we have underflow at the parent, step 2 must be repeated. 100 / 102 Deletion from a 2-3-4 Tree (cont.) Underflow might propagate all the way up to the root node. If there is underflow at the root node, then delete the root node. If we want to delete a key k from a non-leaf node X, we do the following: 1. Find the predecessor of k, say k , in the tree. Note that k occurs in a leaf node (it is the rightmost node in the appropriate subtree of X). 2. Exchange k and k . 3. Delete k. The Delete operation can be modified to avoid backtracking (we do not discuss how this can be done). 101 / 102 Dictionaries in External Memory Very large dictionaries may be stored in external memory (e.g., hard disks). A disk access will load a fixed amount of information (called a disk block or a page, which could contain 4K16K bytes, for example) into main memory. Disk accesses are relatively slow. A B-tree with large minimum degree t is very well suited to implement such a dictionary, because the tree will have quite a small height (this minimizes the number of disk accesses required). In practice, a value of t in the range 1001000 might be used. A B-tree of height 2 having minimum degree t = 1000 can store more than one billion keys! 102 / 102
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:

Waterloo - PSYCH - 101
Key-indexed SearchSuppose that the items in a dictionary all have keys that are elements of a small universe U, e.g., U = cfw_0, . . . , M - 1. Then we can store the item with key value k in T [k], where T is an array (sometimes called a table) of length
Waterloo - PSYCH - 101
Self-organizing SearchWe consider a list of n distinct items, say 1, 2, . . . , n, stored in an array A. Items are accessed according to some fixed probability distribution: Pr[i is accessed] = pi , 1 i n. Every access of an item is an independent event.
Waterloo - PSYCH - 101
Radix Trees (Tries)Suppose we have data items whose keys are binary strings, not necessarily of the same length. We can organize our data into a dictionary using a binary tree based on bitwise comparisons of strings. This data structure is called a radix
Capitol College - MBA - MBA 620
PROBLEM 2-42 1. a. Total prime costs: Direct material. Direct labor: Wages. Fringe benefits. Total prime costs. 485,000 95,000 $2,680,000 $2,100,000b.Total manufacturing overhead: Depreciation on factory building. Indirect labor: wages. Production super
Capitol College - MBA - MBA 620
PROBLEM 2-44 (15 MINUTES) 1. Regular hours: 40 $12. Overtime hours: 8 $16. Total cost of wages. 2. a. Direct labor: 38 $12. b. Manufacturing overhead (idle time): 1 $12. c. Manufacturing overhead (overtime premium): 8 ($16 $12). d. Manufacturing overhead
Capitol College - CHEMISTRY - CH 120
Objective: The objective of this lab is to receive two unknown pieces of metal and determine the identity of each. This was to be done by calculating the densities of each in two ways, then compare it to the density chart. By doing this, one should be abl
Capitol College - CHEMISTRY - CH 120
Objective: In this experiment, one will determine the density of liquid water. Once this density and its change with temperature are known, one can use this information to find out what volume should be occupied by a known mass of water at a given tempera
Capitol College - CHEMISTRY - CH 120
OBJECTIVE The objective of this lab was to study the kinds of compounds that form hydrates. From this lab one should be able to determine the percentage of hydrate water lost by an unknown compound upon heating. From this one may be able to calculate the
Capitol College - COMPUTER - CS 220
Capitol College CS220 - Database Management Assignment # 7 SQL Assignment # 3 1. Write a query to display the current date. Label the column Date. SQL&gt; select sysdate &quot;Date&quot; from dual; 2. Display the employee number, name, salary, and salary increase by 1
Capitol College - COMPUTER - CS 220
Capitol College CS220 - Database Management Assignment # 6 SQL Assignment # 21. Create a query to display the name and salary of employees earning more than $2850. Save your SQL statement to a file named p2ql.sql. Run your query. SQL&gt; SELECT ename,sal 2
Capitol College - COMPUTER - CS 220
Capitol College CS220 - Database Management Assignment # 8 SQL Assignment # 4 1.Write a query to display the name, department number, and department name for all employees. Select e.ename, e.deptno, d.dname from emp e, dept d Where e.deptno = d.deptno; 2.
Capitol College - COMPUTER - CS 220
David Carothers CS-220 10/29/07 Assignment #7 SQL assignment #3 (Microsoft Word made a lot of the columns crooked) 1. input: select sysdate as &quot;Date&quot; from dual; Date -22-OCT-07 2. input: select empno, ename, sal, round(sal*1.15,0) as &quot;New Salary&quot; from emp
Capitol College - COMPUTER - CS 220
David Carothers CS-220 11/5/07 Assignment #8 SQL Assignment #4 1. select emp.ename, emp.deptno, dept.deptno from emp, dept 2. select job from emp where deptno LIKE 30 3. Select e.ename , d.dname, d.loc from emp e, dept d where e.deptno = d.deptno and e.co
Capitol College - COMPUTER - CS 220
David Carothers Capitol College CS220 Database Management EXAM 2 1. DESC SALGRADEName Null? Type - - -GRADE NUMBER LOSAL NUMBER HISAL NUMBERSELECT * FROM SALGRADEGRADE LOSAL HISAL - - -1 700 1200 2 1201 1400 3 1401 2000 4 2001 3000 5 3001 99992. selec
Capitol College - COMPUTER - CS 220
David Carothers Capitol College CS-220 Database Management Final Exam 1. SELECT ENAME, HIREDATE FROM EMP WHERE DEPTNO = (SELECT DEPTNO FROM EMP WHERE ENAME = 'BLAKE') AND ENAME != 'BLAKE' 2. SELECT EMPNO, ENAME FROM EMP WHERE SAL &gt; (SELECT AVG(SAL) FROM E
Capitol College - COMPUTER - CS 230
David Carothers CS 230 E01 9/12/07 1. Mark the following statements as true or false. a. The lifecycle of software refers to the phrases from the point the software was conceived until it is retired. T b. The three fundamental stages of software are devel
Capitol College - COMPUTER - CS 230
David Carothers CS 230 E01 9/26/07 Exercises 2. Draw a class hierarchy in which several classes are derived from a single base class. Base Class Derived ClassExponet (math.pow) Math Round (math.round) Square Root (math.sqrt) 3. Suppose that a class emplo
Capitol College - COMPUTER - CS 230
David Carothers 10/3/07 CS 230 Homework #3 3. What is the output of the following code: Int x; Int y; Int *p = &amp;x; Int *q = &amp;y; *p = 35; *q = 98; *p = *q; Cout &lt; x &lt; &quot;_&quot; &lt; y &lt; endl; Cout &lt; *p &lt; &quot;_&quot; &lt; *q &lt; endl; Output: 98_98 98_98 4. What is the output of
Capitol College - COMPUTER - CS 230
David Carothers CS 230 10/9/07 Exercises Homework #4 1. What are the three main components of the STL? a. Containers b. Iterators c. Algorithms 2. What is the difference between an STL container and an STL iterator? a. While both are class templates, cont
Capitol College - COMPUTER - CS 230
David Carothers CS 230 10/16/07 Homework # 5 Excercises 2. What is the output of the following code? a. cout&lt;list-&gt; info; b. cout&lt;A-&gt;info; c. cout&lt;B-&gt;link-&gt;info; d. cout&lt;list-&gt;link-&gt;link-&gt;info; 5. Add the function splitAt to split a linked list at a node
Capitol College - COMPUTER - CS 230
David Carothers CS 230 10/24/07 Homework # 6 Excercises 2. What is a base case? The case in which the solution is given directly. 3. What is a recursive case? The case in which the base class is derived from. Also known as the general case. 7. Consider th
Capitol College - COMPUTER - CS 230
David Carothers CS 230 11/7/07 Homework # 7 Excercises 5. Write the equivalent infix expressions for the following postfix expressions. a. a b * c + a*b+c b. a b + c d - * (a+b)*(c-d) c. a b c- d * (a-b) c) * d 8. Write the definition of the function temp
Capitol College - COMPUTER - CS 230
David Carothers CS 230 11/7/07 Homework # 8 Excercises
Capitol College - COMPUTER - cs 418
CS-418 Homework 1 - Key Professor: Van Horn Pp. 26-27 1.1 What are the two main purposes of an operating system? o efficient use of resources o protection o ease of use 1.3 What is the main advantage of multiprogramming? o more efficient use of CPU keeps
Capitol College - COMPUTER - cs 418
CS-418 Operating Systems Professor: Van Horn Homework 2 Chapters 3 &amp; 4 Pp. 147 - 149 o 5.1 Provide two examples of multithreading that improve performance over a single-threaded process. o 5.3 What are two differences between user-level threads and kernel
Capitol College - COMPUTER - cs 418
Professor: Van HornCS-418 Homework 3 1. What are the four requirements for deadlock? 2. Explain why the graph on Slide 11 in the Chapter PowerPoint file represents a deadlock.3. Explain why the graph on Slide 12 is not a deadlock even though there is a
Capitol College - COMPUTER - cs 418
CS-418 Operating Systems Professor: Van Horn Homework 4 1. Given the following memory configuration (with shaded areas assigned to running processes) 100 KB 500 KB 200 KB 300KB 600 KB Assume that arriving processes (in order) are 212KB, 417KB, 112KB, and
Capitol College - COMPUTER - cs 418
CS-418 Operating Systems Professor: Van Horn Homework 5: Virtual Memory Page Replacement Simulation Assignment: Write a simulation of a virtual memory manager that can manage frames using a FIFO, Optimal, or LRU algorithm. Your simulator will read a file
Capitol College - COMPUTER - cs 418
Professor: Van Horn CS-418 Operating Systems Homework # 6 Disk I/O Scheduler Simulation Assignment: Write a simulation of disk scheduler that can service disk I/O requests using FIFO, SSTF, and Scan algorithms. Your simulator will read a file named &quot;IOReq
Capitol College - COMPUTER - cs 418
CS-418 Operating Systems Professor: Van Horn Homework 4 Write a Simulator (in C+ or Java) that implements the Banker's Algorithm The Banker will read two files, resources.txt and processes.txt. (Note: be sure to use these exact filenames and assume that t
Capitol College - COMPUTER - cs 418
CS-410 Operating Systems Security Professor: J. Anderson Homework 3 Date due: Monday, September 20 Write a Round Robin Scheduler Using either C+ or Java, write a Round Robin scheduler. The scheduler will read a process ID and CPU time for 10 processes fro
Capitol College - HUMANITIES - HU 331
Chapter 1: Two Dimensional Art 1. Which of the following is a painting medium that is transparent and must be worked wet? a. Oil b. Watercolor c. Gouache d. Tempera 2. Oils, perhaps the most popular of the painting media, were developed near the end of wh
Capitol College - HUMANITIES - HU 331
Chapter 2: Sculpture 1. All sculpture is three-dimensional. a. True b. False 2. Freestanding sculptural works are called which of the following? a. Linear b. Sculptural c. Full round d. Relief 3. Sculpture designed to be seen from one side only is called
Capitol College - HUMANITIES - HU 331
Chapter 3: Architecture 1. Which of the following is not a structural system? a. Post-and-lintel b. Cantilever c. Arch d. Suspension Which of the following is a structural system that consists of horizontal beams and vertical supports? a. Post-and-lintel
Capitol College - HUMANITIES - HU 331
Chapter 4: Music and Opera 1. Which of the following would be defined as a polyphonic composition based on one main theme or subject? a. Sonata b. Concerto c. Fugue d. Cantata 2. Which of the following would be defined as a composition for solo instrument
Capitol College - HUMANITIES - HU 331
Chapter 5: Theatre 1. In the theatre, types of plays such as tragedies and comedies, are called which of the following? a. Conventions b. Genres c. Dynamics d. None of the above The characteristics of tragedy have not changed from the 5th century B.C.E. t
Capitol College - HUMANITIES - HU 331
Chapter 6: Cinema 1. Which of the following is the basic picture unit of a film? a. Reel b. Shot c. Frame d. Cut Of the following, which type of film attempts to record actuality using primarily a sociological or journalistic approach? a. Absolute film b.
Capitol College - HUMANITIES - HU 331
Chapter 7: Dance 1. Dance appears to have sprung from which of the following human needs? a. Religious needs b. Psychological needs c. Aesthetic needs d. None of the above A body of group dances performed to traditional music is called which of the follow
Capitol College - HUMANITIES - HU 331
Chapter 8: Literature 1. A novel whose subject matter comprises the adventures of a rogue is called which of the following? a. Manners b. Gothic c. Historical d. Picaresque A novel whose subject matter comprises finely detailed observations of the customs
Capitol College - HUMANITIES - HU 331
Chapter 9: Ancient Approaches 1. The earliest known sculpture dates from the period of approximately what date? a. b. c. d. 2. 50,000 B.C.E. 45,000 B.C.E. 40,000 B.C.E. 30,000 B.C.E.Venus figures have been found in which of the following locations? a. b.
Capitol College - HUMANITIES - HU 331
Chapter 10: Pre-Modern WorldCheck 1 &amp; 171. Fifth-century Athenian painting of the Classical style demonstrates which of the following? a. Naturalism b. Emotionalism c. Formal design d. 2. All of the aboveCPolyclitus's canon refers to what? a. A weapon
Capitol College - HUMANITIES - HU 331
Chapter 11 1. Which of the following represents a fundamental quality of Renaissance painting? a. Frenetic composition b. Deep space c. Open composition d. All of the above Masaccio's The Tribute Money puts each character in the archaic linear stance. a.
Capitol College - HUMANITIES - HU 331
Chapter 12: Age of Industry 1. In comparing the works of Hokusai and Hiroshige, both artists make use of deep space through linear perspective. a. True b. False The Kota tribe guardian figure exhibits which of the following characteristics? a. Anatomical
Capitol College - HUMANITIES - HU 331
Chapter 13: Modern, Post-Modern, Pluralistic World 1. According to the text, the terms pluralism and ethnocentrism are synonymous. a. True b. False According to Paula Gunn Allen, most Native Americans suffer from &quot;land sickness.&quot; a. True b. False For the
Capitol College - HUMANITIES - HU 331
Sheet1B C B D A A B B C D D C A DRYPOINT B C &lt; CH1 B C D A A B A C B C D B A A B A C D B B C B A B &lt; CH2 D A C B C B A C B C D A B C C C D C D A A B A B B C C C B C &lt; CH3 C B A B C C A C C A A D D D C B B B C B B C C C &lt; CH4 B B D C D B B D A B B B A A B
UC Davis - EEC - 180A
UNIVERSITY OF CALIFORNIA-DAVIS DEPARTMENT OF ELECTRICAL &amp; COMPUTER ENGINEERING EEC180A-DIGITAL SYSTEMS IFALL 2010EXAM ISTUDENT INFORMATIONName ID NumberINSTRUCTIONSThe exam is closed book and notes. A single double-sided cheat sheet is allowed. Prin
UC Davis - EEC - 180A
UNIVERSITY OF CALIFORNIA-DAVIS DEPARTMENT OF ELECTRICAL &amp; COMPUTER ENGINEERING EEC180A-DIGITAL SYSTEMS IFALL 2010EXAM ISTUDENT INFORMATIONName ID Number Hussain Al-Asaad xxx-xx-xxxxINSTRUCTIONSThe exam is closed book and notes. A single double-sided
UC Davis - EEC - 180A
UNIVERSITY OF CALIFORNIA-DAVIS DEPARTMENT OF ELECTRICAL &amp; COMPUTER ENGINEERING EEC180A-DIGITAL SYSTEMS IFALL 2010EXAM IISTUDENT INFORMATIONName ID NumberINSTRUCTIONSThe exam is closed book and notes. A single double-sided cheat sheet is allowed. Pri
UC Davis - EEC - 180A
UNIVERSITY OF CALIFORNIA-DAVIS DEPARTMENT OF ELECTRICAL &amp; COMPUTER ENGINEERING EEC180A-DIGITAL SYSTEMS IFALL 2010EXAM IISTUDENT INFORMATIONName ID Number Hussain Al-Asaad xxx-xx-xxxxINSTRUCTIONSThe exam is closed book and notes. A single double-side
UC Davis - EEC - 180A
UNIVERSITY OF CALIFORNIA-DAVIS DEPARTMENT OF ELECTRICAL &amp; COMPUTER ENGINEERING EEC180A-DIGITAL SYSTEMS IWINTER 2011EXAM ISTUDENT INFORMATIONName ID NumberINSTRUCTIONSThe exam is closed book and notes. A single double-sided cheat sheet is allowed. Pr
UC Davis - EEC - 180A
UNIVERSITY OF CALIFORNIA-DAVIS DEPARTMENT OF ELECTRICAL &amp; COMPUTER ENGINEERING EEC180A-DIGITAL SYSTEMS IWINTER 2011EXAM ISTUDENT INFORMATIONName ID Number Hussain Al-Asaad xxx-xx-xxxxINSTRUCTIONSThe exam is closed book and notes. A single double-sid
UC Davis - EEC - 180A
UNIVERSITY OF CALIFORNIA-DAVIS DEPARTMENT OF ELECTRICAL &amp; COMPUTER ENGINEERING EEC180A-DIGITAL SYSTEMS IWINTER 2011EXAM IISTUDENT INFORMATIONName ID NumberINSTRUCTIONSThe exam is closed book and notes. A single double-sided cheat sheet is allowed. P
UC Davis - EEC - 180A
UNIVERSITY OF CALIFORNIA-DAVIS DEPARTMENT OF ELECTRICAL &amp; COMPUTER ENGINEERING EEC180A-DIGITAL SYSTEMS IWINTER 2011EXAM IISTUDENT INFORMATIONName ID Number Hussain Al-Asaad xxx-xx-xxxxINSTRUCTIONSThe exam is closed book and notes. A single double-si
UC Davis - EEC - 180A
UNIVERSITY OF CALIFORNIA-DAVIS DEPARTMENT OF ELECTRICAL &amp; COMPUTER ENGINEERING EEC180A - DIGITAL SYSTEMS IWinter 2012PRACTICE PROBLEMS - SET 11. 2.Draw the schematic for the function W X + YZ . Draw the schematic for the following functions using NAND
UC Davis - EEC - 180A
UNIVERSITY OF CALIFORNIA-DAVIS DEPARTMENT OF ELECTRICAL &amp; COMPUTER ENGINEERING EEC180A-DIGITAL SYSTEMS IWinter 2012SOLUTIONS OF PRACTICE PROBLEMS - SET 11. Draw the schematics of F = W X + YZ in terms of AND, OR, and inverter gates.W F XY Z 2. Draw t
UC Davis - EEC - 180A
UNIVERSITY OF CALIFORNIA-DAVIS DEPARTMENT OF ELECTRICAL &amp; COMPUTER ENGINEERING EEC180A - DIGITAL SYSTEMS IWinter 2012PRACTICE PROBLEMS - SET 21. Number Representation: Design a combinational circuit that converts a 4-bit one's complement number X to it
UC Davis - EEC - 180A
UNIVERSITY OF CALIFORNIA-DAVIS DEPARTMENT OF ELECTRICAL &amp; COMPUTER ENGINEERING EEC180A-DIGITAL SYSTEMS IWinter 2012SOLUTIONS OF PRACTICE PROBLEMS - SET 21. NUMBER REPRESENTATIONX3X2 00 0 0 0 0 X3X2 00 0 0 0 0X1X001 0 0 0 0 Y311 1 1 0 110 1 1 1 1X
UC Davis - EEC - 180A
UNIVERSITY OF CALIFORNIA, DAVIS Department of Electrical and Computer Engineering EEC180A DIGITAL SYSTEMS I LAB 1: INTRODUCTION TO THE ALTERA DESIGN SYSTEM This lab provides an introduction to the Altera Quartus II design software. You will use the Altera
UC Davis - EEC - 180A
UNIVERSITY OF CALIFORNIA, DAVIS Department of Electrical and Computer Engineering EEC180A DIGITAL SYSTEMS I LAB 2: INTRODUCTION TO LAB INSTRUMENTS Winter 2012The purpose of this lab is to introduce the basic lab instruments - digital oscilloscope, power
UC Davis - EEC - 180A
LAB INSTRUMENT REFERENCE EEC180A Purpose: This document provides an introduction to the lab instruments found in the EEC180A lab. These instruments include the HP 54600B oscilloscope, the HP 6205B dual power supply, the HP 6237B triple output power supply
UC Davis - EEC - 180A
UNIVERSITY OF CALIFORNIA, DAVIS Department of Electrical and Computer Engineering EEC180A DIGITAL SYSTEMS I LAB 3: COMBINATIONAL NETWORK DESIGN The purpose of this lab is to learn how to design a simple combinational logic network. Hardware Required: 1 74