Documents Found!
As seen in
Less Work, Better Grades
Join
Course Hero
Access
best resources
Ace
your classes
Ace your courses with Course Hero!

Submit your homework question or assignment here:
352 Tutors are online
 
We are so confident that you will love our service, we will answer your first homework question for FREE!
*  Attach Assignment (optional):
 
Study Smarter, Score Higher
 
Document Content (unformatted)
Course Hero has millions of student submitted documents similar to the one below including study guides, homework solutions, papers, exam answer keys and textbook solutions.
533 CS - HOMEWORK 7 SOLUTION Page 1 ---------------------------- Version 4, May 7, 2000 Problem 1 (4 Points) --------- Short Answer: A has to wait 0.1 second, and B has to wait 2 seconds. Since A has higher priority than B, A only has to wait if a B packet gets on the wire (begins transmission) during a period when there are no A packets. On the other hand, B will always have to wait if there are any A packets (since the server is work conserving). We are given the following leaky bucket parameters: Flow beta rho ----------------------------- A 10 pkts 5 pps B 10 pkts 2 pps Since the link capacity is r = 10 pps (packets per second), there is enough capacity to handle the average aggregate traffic rate of 7 pps. The worst-case scenario for flow A is if B bursts and gets on the wire before A is able to send a packet. But in that case, A needs to wait at most for 1 B packet being transmitted at a link speed of 10 pps; i.e., A has to wait at most 0.1 second. The worst-case scenario for flow B is if A sends a maximum burst before B is able to send a packet. Even after the burst, A can continue to send at an average rate of 5 pps. In that case, B must wait for any link idle time during A's continuous average transmission phase. The link will drain at a rate r until such time t that the queue is depleted of A packets: 0 = rho_A t + beta_A - r t Solving for t: t = beta_A / (r - rho_A) = 10 pkts / (10 pps - 5 pps) = 2 sec. Thus, in the worst-case, B must wait for 2 sec. Page 2 Problem 2 (4 Points) --------- Short Answer (GPS Scheduling): 16 Kbits The weights indicate the guaranteed relative service rates for each flow. Since flow A is continuously backlogged in [0,1], there is no excess capacity from flow A that can be applied to flow B. Thus, flow B is guaranteed its rate which is proportional to its weight; i.e., 16 Kbits (= w_B x S_B = 4 x 4 Kbits). This follows from Equ. (9.5): g_i = r x w_i / (Sum w_i) which implies that between the two flows A and B the following holds: g_B / w_B = g_A / w_A or g_B = g_A x w_B / w_A or g_B x T = (g_A x T) x w_B / w_A = 4 Kbits x 4 / 1 where T is the length of any measurement period. Here, (g_i x T) is the service received by flow i in a period of length T when all flows are backlogged. Short Answer (FCFS Scheduling): No gurantee The weights have no meaning in FCFS scheduling, and there is no guarantee associated with FCFS scheduling. The packets are served in order of arrival. Page 2 Problem 3 (10 Points = 4 + 3 + 3) --------- [ <<< CAVEAT >>> In the computations below, we assume a byte-by-byte WFQ scheduler. Round and finish numbers for a bit-by-bit scheduler can be obtained by scaling by a factor of 8. ] We are given the following information about two connections and a WFQ scheduler: L_1 200 bytes Packet length on connection 1 w_1 2 Connection 1 weight L_2 400 bytes Packet length on connection 2 w_2 5 Connection 2 weight r 200 Bps Link rate a) Short Answer: Connection 1 finishes at real time 2 sec. and connection 2 finishes at time 3 sec. WFQ schedules packets according to finishing numbers which reflect an emulation of GPS. From Equ. (9.9), the finish numbers are: F (1,0,0) = L_1 (0) / w_1 = 200 / 2 = 100 F (2,0,0) = L_2 (0) / w_2 = 400 / 5 = 80 Since the packet from connection 2 will finish first, the WFQ scheduler will schedule it first. since But the link rate is 200 Bps, it will finish at real time: t = 400 bytes / 200 Bps = 2 sec. At this time the packet from connection 1 will begin transmission and finish at real time: t = 2 sec + 200 bytes / 200 Bps = 3 sec. b) Short Answer: Connection 2 will complete service when the round number is 57.1, and connection 1 will complete service when the round number is 100. The round number is a real-valued variable that increases at a rate inversely proportional to the sum of the active connection weights. In this problem, the sum of weights at time 0 is 7 so that in each round one byte is serviced from each of two queues and the round number (virtual time) is increased by 1/7. However, the actual computation of the round number needs to be done only when a packet arrives or departures. When the first packet on connection 2 finishes at real time 2 sec., the round number is 57.1 (= 400/7). But the slope of the service (emulated) curve will remain at 1/7 until the round number reaches 80 which happens at real time 2.8 sec (since 200 x 2.8 sec / 7 = 80). The packet from connection 1 is in service in the real time interval [2.0, 3.0]. In this interval, the slope of the round number curve will initially be 1/7 but will change to 1/2 (= 1/w_1) at real time 2.8 sec. At real time 3.0 sec, the packet from connection 1 will complete with the round number at 100. Note, however, that the round number needs to be computed only when the first and second packets complete service. Page 3 c) Short Answer: It's finish number would be 110. At real time 1.5 seconds, the packet from connection 2 is still in service, and the first packet from connection 1 is still queued for service. Thus, the finish number of the new packet is the finish number of the packet at the front of connection 1's queue plus the weighted length of the new packet: F(1, 1, 1.5) = F(1, 0, 1.5) + P(1, 1, 1.5) / w_1 = 100 + 20 / 2 = 110 This would occur at real time 3.1 sec. We have not included the round number in the above equation, but it is guaranteed to be less than the finish number of the queueed packet. The round number at real time 1.5 sec since: R(1.5) = (200 Bps x 1.5 sec) / 7 = 42.9 Problem 4 (4 Points) --------- Short Answer: 1.5 sec DRR scheduling attempts to approximate GPS scheduling but does so at a time scale of one frame time (the largest possible time taken to serve each of the backlogged connections). We assume that the quantum size has been set to the maximum packet length P_max. So, P_max = 8 KB. In the worst-case, all 500 connections are backlogged with maximum length packets and a packet arrives immediately after its queue has been examined for service. It must now wait one frame time before its last bit completes transmission. This frame time F in the worst case occurs when every connection counter is 1 byte under Pmax (e.g., there was a 1 byte packet in each queue; so the deficit counter is set to Q-1 after a round and then incremented to Q+P_max-1 in the next round): F = N x (Q + P_max -1) where Q is the quantum. So, F = 500 x (8 KB + 8 KB - 1) / 45 Mbps = 1456 msec = 1.5 sec This worst-case delay assumes that the packet arrives to an empty queue. If a burst of N packets arrive from a flow, each packet has to wait for the packets in front of it, and those packets are serviced in the worst-case at a rate of 1 packet every 1.5 sec.
Textbooks related to the document above:
Find millions of documents here - Study Guides, Homework Solutions, Papers, Exam Answer Keys and more. Course Hero has millions of course related materials that will enable you to learn better, faster and get an A in all your courses.
Below is a small sample set of documents:

Washington University in St. Louis >> CS >> 422 (Fall, 2009)
EXAM 1 SOLUTION - Version 4, November 2 (1115 AM) Problem 1 (15 Points) - Method: o Update \'count\' within a critical section (3 Points) o Busy wait on count (outside the critical section) until it (3 Points) reaches 0 Initialization...
Washington University in St. Louis >> CS >> 422 (Fall, 2009)
PROGRAM E FAQ (FREQUENTLY ASKED QUESTIONS) - Last Updated: Sun, 530 PM, Dec. 12, 1999 INDEX - Q1) Do you have any suggestions for doing the debugging since it may be hard to read hexadecimal dumps of the indexed sequential file? Q2) How...
Washington University in St. Louis >> CS >> 533 (Fall, 2009)
PROGRAM A FAQ (FREQUENTLY ASKED QUESTIONS) - Last Updated: Sun, 350 PM, Oct. 11, 1998 INDEX - Q1) What is your recommended sequence of goals for attacking this problem? Q2) I have the following problem with my Linux (SCO, Solaris 1.1, .) ...
Washington University in St. Louis >> CS >> 533 (Fall, 2009)
Program Set A XXXXX, 2/21/00 KNOWN BUGS - None. PROGRAM USE SYNOPSIS - Client program: client [options] options are -S xserv name (default \"dors.arl.wustl.edu\") -P xserv port (default 2000) -s server name (default \"hilton.cec.wustl....
Washington University in St. Louis >> CS >> 514 (Fall, 2009)
CS514 Fundamentals of Computer Science, Fall 2000 Homework Assignment 1 Assigned: August 30 Due: September 11 Administrivia: All homework assignments are due at the start of class on the due date. After that, they will not be accepted for credit. Ho...
Washington University in St. Louis >> CS >> 514 (Fall, 2009)
CS514 Fundamentals of Computer Science, Fall 2001 Homework Assignment 6 Assigned: November 14 Due: November 28 Administrivia: All homework assignments are due at the start of class on the due date. After that, they will not be accepted for credit. H...
Washington University in St. Louis >> CS >> 431 (Fall, 2009)
CS431 Translation of Computer Languages, Summer 2001 Solutions Problem Set 3 Problem 1 Say whether or not each of the grammars below is ambiguous and justify your answer (for an ambiguous grammar, give two distinct parse trees for some string; for ...
Washington University in St. Louis >> CS >> 514 (Fall, 2009)
CS514 Fundamentals of Computer Science, Fall 2001 Solutions Homework Assignment 2 Problem 1 (15 points) Find the one\'s complement representation of each of the following numbers, assuming you use a signed eight-bit representation for each number: 4...
Washington University in St. Louis >> CS >> 514 (Fall, 2009)
CS514 Fundamentals of Computer Science, Spring 2001 Homework Assignment 6 Solutions Problem 1 (30 points total) (a) (15 points) CLR, Exercise 11.2-2. Solution: We will use a linked list such that the head of the linked list is the top of the stack....
Washington University in St. Louis >> CS >> 514 (Fall, 2009)
CS514 Fundamentals of Computer Science, Fall 2000 Homework Assignment 5 Assigned: October 4 Due: October 11 Administrivia: All homework assignments are due at the start of class on the due date. After that, they will not be accepted for credit. Home...
Washington University in St. Louis >> CS >> 514 (Fall, 2009)
CS514 Fundamentals of Computer Science, Fall 2000 Solutions Homework Assignment 7 Problem 1 (60 points total) The following recursive algorithm on a binary tree T is called an inorder walk. Assume that T is not initially empty. INORDER-WALK(T) If (...
Washington University in St. Louis >> CS >> 514 (Fall, 2009)
CS514 Fundamentals of Computer Science, Fall 2001 Solutions Homework Assignment 5 CLRS, Chapter 2, pp. 37-38, Problem 2-1 (all parts), or CLR, Chapter 1, p. 17-18, Problem 1-2 (all parts). (30 points) Solutions: (a) Assume each input to insertion...
Washington University in St. Louis >> CS >> 514 (Fall, 2009)
CS514 Fundamentals of Computer Science, Spring 2001 Solutions Homework Assignment 3 Problem 1 (30 points total) (a) (10 points) Rosen, Chapter 3.2, Problem 48. Solution: The proof is faulty because the inductive step is invalid when trying to go fr...
Washington University in St. Louis >> CS >> 514 (Fall, 2009)
CS514 Fundamentals of Computer Science, Fall 2000 Solutions - Homework Assignment 5 Problem 1 (30 points total) (a) (15 points) Simulate the unsigned multiplication algorithm described in class on the numbers 45 and 20. Assume that you have eight bi...
Washington University in St. Louis >> CS >> 514 (Fall, 2009)
CS514 Fundamentals of Computer Science, Fall 2000 Homework Assignment 1 Assigned: August 30 Due: September 11 Administrivia: All homework assignments are due at the start of class on the due date. After that, they will not be accepted for credit. Ho...
Washington University in St. Louis >> CS >> 514 (Fall, 2009)
CS514 Fundamentals of Computer Science, Fall 2000 Homework Assignment 3 Solutions Problem 1 (20 points) Prove that the square root of 3 is not a rational number. Although the idea behind the proof is similar to that for the square root of 2, the ex...
Washington University in St. Louis >> CS >> 514 (Fall, 2009)
CS514 Fundamentals of Computer Science, Fall 2001 Solutions Homework Assignment 4 CLRS, Chapter 7, p. 161, Problem 7-3(b) -or- CLR, Chapter 8, p. 169, Problem 8-3(b) (20 points) Solution: The proper recurrence for stooge sort is T(n) = 3T(n/1.5) ...
Washington University in St. Louis >> CS >> 514 (Fall, 2009)
CS514 Fundamentals of Computer Science, Spring 2001 Homework Assignment 5 Solutions Exercise 1.3-5 (15 points) Solution: / Search for element target in sorted region A[p.q] BINARY-SEARCH(A, p, q, target) if p > q then return NIL m = floor( (p + q) ...
Washington University in St. Louis >> CS >> 514 (Fall, 2009)
CS514 Fundamentals of Computer Science, Fall 2001 Ungraded Problem Solutions Homework Assignment 3 Ungraded Problem A Consider the following sequence of instructions (the machine language used is the same language as in Lab 1). (I have numbered the...
Washington University in St. Louis >> CS >> 514 (Fall, 2009)
CS514 Fundamentals of Computer Science, Spring 2001 Homework Assignment 2 Solutions 3.1, Problem 34 (10 points) Your mileage (proof technique and execution) may vary. Prove: n even 7n + 4 even Proof: First, let\'s do the \"if part\", i.e. if n is eve...
Washington University in St. Louis >> CS >> 514 (Fall, 2009)
CS514 Fundamentals of Computer Science, Spring 2001 Solutions Homework Assignment 4 Problem 1 (40 points total) (a) (20 points) Simulate the unsigned multiplication algorithm on the numbers 24 and 12, assuming you have six bits for each number to ...
Washington University in St. Louis >> CS >> 514 (Fall, 2009)
CS514 Fundamentals of Computer Science, Fall 2001 Homework Assignment 3 Assigned: September 19 Due: October 3 Administrivia: All homework assignments are due at the start of class on the due date. After that, they will not be accepted for credit. Ho...
Washington University in St. Louis >> CS >> 514 (Fall, 2009)
CS514 Fundamentals of Computer Science, Fall 2000 Solutions - Homework Assignment 4 Problems 1-3 involve the following setup: Instruction Name ADD MULT LOAD STORE IFEQ IFNE CALL JUMP NOOP CPI (Cycles per instruction) 3 5 3 4 2 1 12 2 1 Instruction F...
Washington University in St. Louis >> CS >> 514 (Fall, 2009)
CS514 Fundamentals of Computer Science, Spring 2001 Solutions Homework Assignment 1 Problem 1 (30 points total) Recall the MIU-puzzle from the first lecture, in which the following rules for transforming strings apply. Let italicized, non-capital l...
Washington University in St. Louis >> CS >> 514 (Fall, 2009)
CS514 Fundamentals of Computer Science, Fall 2000 Homework Assignment 2 Solutions Problem 1 (40 points total) For each of the following propositions, prove that they are either tautologies or not using the method requested (either via truth table o...
Washington University in St. Louis >> CS >> 514 (Fall, 2009)
CS514: Skip List Implementation (updated!) March 12, 2002 Tower Nodes are Critical Your implementation of a skip list will rely heavily on a tower node. A tower node is, rather than a single next pointer and key and data variables (if you are program...
Washington University in St. Louis >> CS >> 514 (Fall, 2009)
CS514 Fundamentals of Computer Science, Fall 2000 Final Exam: December 18, 2000 Your name: _ Instructions: Do not begin until you are told to do so. Any printed reference material is allowed, but you may not collaborate with your classmates or us...
Washington University in St. Louis >> CS >> 514 (Fall, 2009)
CS514 Fundamentals of Computer Science, Spring 2001 Second Midterm: March 26, 2000 Your name: _ Instructions: Do not begin until you are told to do so. Any printed reference material is allowed, but you may not collaborate with your classmates or...
Washington University in St. Louis >> CS >> 514 (Fall, 2009)
CS514 Fundamentals of Computer Science, Fall 2000 Second Midterm: November 20, 2000 Your name: _ Instructions: Do not begin until you are told to do so. Any printed reference material is allowed, but you may not collaborate with your classmates o...
Washington University in St. Louis >> CS >> 514 (Fall, 2009)
CS514 Fundamentals of Computer Science, Spring 2002 Homework Assignment 1 Assigned: January 10 Due: January 24 Administrivia: All homework assignments are due at the start of class on the due date. Homework assignments must be in hardcopy form; no e...
Washington University in St. Louis >> CS >> 514 (Fall, 2009)
CS514 Fundamentals of Computer Science, Spring 2002 Detailed Reading Syllabus as of 1/23/02 To assist you with planning, I have assembled a detailed syllabus of the intended course lectures and material, paired with detailed relevant reading for you...
Washington University in St. Louis >> CS >> 514 (Fall, 2009)
January 31, 2002 - Performance - Performance = 1 / execution time - Relative performance of computing environment x vs. environment y equal to ratio of performance of x to performance of y Hardware-Dependent Metrics - Clock rate of processor = # o...
Washington University in St. Louis >> CS >> 514 (Fall, 2009)
January 22, 2002 - (45 min) Translation of Machine Instructions - In MIPS architecture, instruction encoding based on physical wiring - During instruction decode, specific regions of the bit pattern transmitted to the register file - Encoding m...
Washington University in St. Louis >> CS >> 514 (Fall, 2009)
February 5, 2002 - Asymptotic Analysis - Study behavior of algorithms as the input size gets larger - Hardware-independent under the assumption that architectures experience constant-ratio performance differences on program runtimes; we will exp...
Washington University in St. Louis >> CS >> 514 (Fall, 2009)
January 15, 2002 - X = complement of x (10 min) Review / Questions EXAMPLE: SP expansion for xyZ + xY - F(x,y,z) = xyZ + xY SP exp. = xyZ + xYz + xYZ EXAMPLE: Build logic circuits for (simple) representation of F (20 min) Karnaugh maps - SP exp...
Washington University in St. Louis >> CS >> 514 (Fall, 2009)
January 29, 2002 - Cache Organization - Small amount of memory, close to processor - On reads, when a block is requested from memory, cache is first searched - on a miss, the block is written into cache and then sent on to the datapath - Usuall...
Washington University in St. Louis >> CS >> 514 (Fall, 2009)
February 12, 2002 - Real Meanings of Bounds - Asymptotic bound behavior rather than strict bound behavior - The Big-O, Big-Omega, and Big-Theta designations indicate equivalence classes of functions - 3n + 1, 66n + 24000, 5700n are all Big-Theta(...
Washington University in St. Louis >> CS >> 514 (Fall, 2009)
January 24, 2002 - Quick Pipelining Overview - Generalize the multi-cycle datapath to five stages - Instruction Fetch (IF) - Instruction Decode (ID) - Execute (EX) - Memory Access (MEM) - Write Back (WB) - Convert each new state register to a p...
Washington University in St. Louis >> CS >> 514 (Fall, 2009)
February 7, 2002 - In Reality. - We don\'t need to always check statement counts - Since all statement costs are constant, they may as well all be 1 - Can process statement counts by inspection Insertion Sort - Similar to sorting a hand of cards -...
Washington University in St. Louis >> CS >> 514 (Fall, 2009)
January 10, 2002 - _ Note: For boolean variable x, in these notes X = x (complement of x) Why study logic? - Precision to mathematical statements - Bridge to mathematics on 0 - 1 - Simulation of mathematics on 0 - 1 via electrical signals (e.g...
Washington University in St. Louis >> CS >> 514 (Fall, 2009)
January 8, 2002 - Before we begin - Who should be here? - MS SNCD students who have taken 504 or received permission for 514 due to preexisting Java/C+ experience - Students from other disciplines with Java/C+ computing experience (such as 50...
Washington University in St. Louis >> CS >> 514 (Fall, 2009)
January 17, 2002 - (5 min) History - ENIAC (Army, WWII) - compute projectile trajectories (Eckert/Mauchly) - Electronic Numerical Integrator and Computer - Only made public in 1946 - Von Neumann machine concept (1944) - believed by some to be most...
Washington University in St. Louis >> CS >> 514 (Fall, 2009)
CS514 Fundamentals of Computer Science, Spring 2001 Quiz 1: February 5, 2001 You have 20 minutes to complete this quiz. You may not use any books or notes. You must show your work to receive any credit, even if your answer is correct. You may leave ...
Washington University in St. Louis >> CS >> 514 (Fall, 2009)
Course Information Handout Instructor: Teaching Assistants: Class Meetings: Lecture: Laboratory: Bob Amar, raa4@cs.wustl.edu John Kramer, jlk4@cec.wustl.edu James Ma, jinma6@hotmail.com MW M 5:30p 7p, McDonnell 362 7:30p 9p, Lopata 400 Computer Sc...
Washington University in St. Louis >> CS >> 514 (Fall, 2009)
CS514 Fundamentals of Computer Science, Fall 2000 Homework Assignment 4 Assigned: September 25 Due: October 4 Administrivia: All homework assignments are due at the start of class on the due date. After that, they will not be accepted for credit. Ho...
Washington University in St. Louis >> CS >> 514 (Fall, 2009)
CS514 Fundamentals of Computer Science, Fall 2000 Homework Assignment 2 Assigned: September 11 Due: September 18 WARNING: START THIS HOMEWORK EARLY! Administrivia: All homework assignments are due at the start of class on the due date. After that, t...
Washington University in St. Louis >> CS >> 514 (Fall, 2009)
CS514 Fundamentals of Computer Science, Fall 2000 Homework Assignment 3 Assigned: September 18 Due: September 25 Administrivia: All homework assignments are due at the start of class on the due date. After that, they will not be accepted for credit....
Washington University in St. Louis >> CS >> 514 (Fall, 2009)
CS514 Fundamentals of Computer Science, Fall 2000 Homework Assignment 9 Assigned: December 4 Due: December 11 Administrivia: All homework assignments are due at the start of class on the due date. After that, they will not be accepted for credit. Ho...
Washington University in St. Louis >> CS >> 514 (Fall, 2009)
CS514 Fundamentals of Computer Science, Fall 2000 Homework Assignment 1 - Solutions Problem 1 (20 points total) (a) (15 points) Assume a problem involving n data points exists for which there are three well-known algorithms that solve the problem. ...
Washington University in St. Louis >> CS >> 11 (Fall, 2009)
CS514: We\'ve Only Just Begun October 25, 2000 Get Ready I am issuing this handout because I want to warn you of something extremely important about the rest of this course. In case you couldn\'t tell from looking at the course calendar: This course is...
Washington University in St. Louis >> CS >> 514 (Fall, 2009)
CS514: We\'ve Only Just Begun October 25, 2000 Get Ready I am issuing this handout because I want to warn you of something extremely important about the rest of this course. In case you couldn\'t tell from looking at the course calendar: This course is...
Washington University in St. Louis >> CS >> 514 (Fall, 2009)
CS514: Integer Division and Booth Recoding September 27, 2000 The Unsigned Integer Division Algorithm Recall the unsigned integer division algorithm from lecture, in which P is an initially zero extra register and the left operand is in register A an...
Washington University in St. Louis >> CS >> 514 (Fall, 2009)
CS514: Reductions and the Propositional Calculus September 11, 2000 In the last lecture, I described the propositional calculus in gory detail. In this handout, I want to baseline what I expect each of you to know about what I covered in the last lec...
Washington University in St. Louis >> CS >> 514 (Fall, 2009)
CS514 Fundamentals of Computer Science, Fall 2000 Homework Assignment 7 Assigned: November 8 Due: November 15 Administrivia: All homework assignments are due at the start of class on the due date. After that, they will not be accepted for credit. Ho...
Washington University in St. Louis >> CS >> 514 (Fall, 2009)
CS514 Fundamentals of Computer Science, Fall 2000 Homework Assignment 6 Assigned: October 30 Due: November 8 Administrivia: All homework assignments are due at the start of class on the due date. After that, they will not be accepted for credit. Hom...
Washington University in St. Louis >> CS >> 514 (Fall, 2009)
CS514 Fundamentals of Computer Science, Fall 2000 Homework Assignment 0 Assigned: August 30 Due: September 6 The purpose of this homework assignment is twofold: To get to know you a little bit better in writing, and associate a face with this info....
Washington University in St. Louis >> CS >> 514 (Fall, 2009)
CS514 Fundamentals of Computer Science, Fall 2000 Homework Assignment 8 Assigned: November 27 Due: December 4 Administrivia: All homework assignments are due at the start of class on the due date. After that, they will not be accepted for credit. Ho...
Washington University in St. Louis >> CS >> 514 (Fall, 2009)
CS514 Fundamentals of Computer Science, Fall 2000 Solutions Homework Assignment 8 Problem 1 (50 points total) (a) (40 points) An alignment of two DNA strings M and N (recall that DNA strings are made up of the characters A, C, G, and T) is an arran...
Washington University in St. Louis >> CS >> 514 (Fall, 2009)
CS514 Fundamentals of Computer Science, Fall 2000 Homework Assignment 6 Solutions Problem 1 (60 points total) Assume that you have a worst-case linear time median selection algorithm (i.e. the algorithm finds the median of an array of numbers of le...
Washington University in St. Louis >> CS >> 514 (Fall, 2009)
Formal Foundations I: All About Logic and Stuff Helpful Reading: Rosen 1.1-1.3 Why study logic? s In order to make assertions about, well, anything, we need to be precise The system of typographic logic we will study at the beginning of this cours...
Washington University in St. Louis >> CS >> 514 (Fall, 2009)
Performance Measurements: The Practical Side .as opposed to the theoretical side, which is where we are headed next. Various Measurements of CPU Performance CPI (Cycles Per Instruction) The number of clock cycles required on average to execute an...
Washington University in St. Louis >> CS >> 514 (Fall, 2009)
More Formal Foundations: Proof Power Helpful Reading: Rosen 3.1 3.2 When we last left our heroes: Groundwork for the propositional calculus Demonstrating logical equivalence Turning predicates into propositions Specifying a value for an...
Washington University in St. Louis >> CS >> 514 (Fall, 2009)
Son of Formal Foundations: Numbers and Stuff Helpful Reading: Rosen 4.1-4.5 (has some extra set notation we have not covered yet) Discrete Mathematics Discrete mathematics involves principles for discretized (noncontinuous) spaces Important such sp...
Washington University in St. Louis >> CS >> 11 (Fall, 2009)
More Heaps of Hash, Please Helpful Reading: CLR Ch. 7, 12 Helpful Reading on Elementary Data Structures: CLR Ch 11 All Data Structures are Not Created Equal s Consider a database program with fixed-size records, but an arbitrary, fluctuating numbe...
Washington University in St. Louis >> CS >> 514 (Fall, 2009)
More Heaps of Hash, Please Helpful Reading: CLR Ch. 7, 12 Helpful Reading on Elementary Data Structures: CLR Ch 11 All Data Structures are Not Created Equal s Consider a database program with fixed-size records, but an arbitrary, fluctuating numbe...
Washington University in St. Louis >> CS >> 12 (Fall, 2009)
Monkey Business: In The Trees Helpful Reading: CLR Ch. 13, 14, 19 (MUCH more detail than this lecture will contain) Why Trees? We\'re Not Monkeys If a tree of n elements is balanced and complete, then we can expect its height to be O(log n) - this o...
Washington University in St. Louis >> CS >> 514 (Fall, 2009)
Monkey Business: In The Trees Helpful Reading: CLR Ch. 13, 14, 19 (MUCH more detail than this lecture will contain) Why Trees? We\'re Not Monkeys If a tree of n elements is balanced and complete, then we can expect its height to be O(log n) - this o...
Washington University in St. Louis >> CS >> 514 (Fall, 2009)
Computer Memory Organization Elephants don\'t forget. but do computers? Memory Design GOAL: to best supply programmers with (almost) infinitely extensible memory that is as fast as possible to use The general design is a hierarchy The most expe...
Washington University in St. Louis >> CS >> 15 (Fall, 2009)
ObjectOriented Design Patterns Hip or Hype? Design Patterns Defined A design pattern solves an OO architecture design problem in a specific context Four components A short pattern name A problem and its context A solution template Cons...
Washington University in St. Louis >> CS >> 514 (Fall, 2009)
ObjectOriented Design Patterns Hip or Hype? Design Patterns Defined A design pattern solves an OO architecture design problem in a specific context Four components A short pattern name A problem and its context A solution template Cons...
What are you waiting for?