3 Pages

CEE 5970 Final+Soln2010

Course: CEE 5970, Spring 2012
School: Cornell
Rating:
 
 
 
 
 

Word Count: 2184

Document Preview

5970 CEE Risk Analysis and Management Final EXAM Mon. May 17, 2010, 9-11:30 am Test is open book & open notes. You have 150 minutes for this 150 point exam. Write clearly and show important steps. Answer essays carefully and completely. 1. (12 pts) In not more than 1 page in your exam book, describe the profound lessons for risk analysis and risk management in our society that one should draw from the...

Register Now

Unformatted Document Excerpt

Coursehero >> New York >> Cornell >> CEE 5970

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.
5970 CEE Risk Analysis and Management Final EXAM Mon. May 17, 2010, 9-11:30 am Test is open book & open notes. You have 150 minutes for this 150 point exam. Write clearly and show important steps. Answer essays carefully and completely. 1. (12 pts) In not more than 1 page in your exam book, describe the profound lessons for risk analysis and risk management in our society that one should draw from the class readings and discussions surrounding the loss of the Challenger and Columbia shuttles. In particular, (a) What were the important lessons? (b) What are the implications of those lessons for analysis and management of risk in our society? (c) How did both technical and social/managerial issues contribute to the problem? 2. (13 pts) Ithacas weather can change suddenly so it is hard to know how to dress. Stewart lives in Ithaca and gets on average 2 colds every 3 years; colds have the same arrival rate in all 12 months. (Beware of cold summer rains.) Assume getting a cold is a Poisson process. (a) How many colds will Stewart get on average during a 24 month period? (b) If Stewart is well now, how long on average before he experiences 5 colds? What is the variance of the time until he has 5 colds? (c) What is the probability of exactly 3 colds in one 9-month-long academic year? 3. (15 pts) Consider the fault tree below. (Antoine created this one.). A B C D E F (a) (8 pts) Please draw the equivalent network diagram such as that in problem 4 below. (b) (7 pts) If the probabilities of failure are P(A) = 0.10; P(B) = 0.25; P(C) = 0.30; P(D) = 0.4;P(E) = 0.45 and P(F)=0.5; what is the probability of a system failure? 4. (15 pts) Consider the network below. (a) (6 pts) Please list all of the minimal cut sets with 1, 2, 3 or 4 elements. (b) (4 pts) If all elements are 99% reliable, what is the reliability of the system? (c) (3 pts) To save money, which 3 components could be replaced with a unit that has a 90% reliability while having a small impact on overall system reliability? (d) (2 pts) If you could improve one component, which would you select and why? 2010 CEE 5970 Examination Page 2 of 7 B A C D F E G H 5. (20 pts) Assume significant oil spills at offshore platforms happen once every 2 years. The spill can be small (10), medium (50), large (500) or very large (10,000) with probabilities 0.4, 0.3, 0.2 and 0.1 respectively. However, if weather is favorable, and the response is quick, the effective volume of the spill can be reduced by 75% (e.g. a volume of 10,000 becomes 2,500); this reduction occurs 65% of the time. Draw the event tree. Generate and draw the risk profile for the magnitude of the effective spills. 6. (15 pts) Everyone loves the new consumer-grade GPS devices. They have maps and give driving instructions for the shortest or fastest route. A consumer group decided to test a cheap device GPS-Guide versus their favorite Guider to see if the cheap device GPS-Guide is more likely to fail to find the shortest path. Both devices have been used to conduct a number of tests. Several units of the two devices were purchased. Here are the results. Units Purchased 10 5 GPS-Guide Guider Tests 200 50 Failures 9 1 (a) Please specify the appropriate null and alternative hypotheses for a randomized test. What is your test statistic? What is the rejection region for an = 15% test? (b) What is the p-value for the observed data? What decision is made? (c) What would be the probability of concluding that there was no difference between the two treatments if GPS-Guide actually had 2 times the failure rate of Guider? P[ X = x | n = 10, p ] for binomial distribution with various values of p X 0.1000 0.1111 0.2000 0.2500 0.3333 0.5000 0.6667 0.750 0.8000 0.8889 0.9000 0 1 2 3 4 5 6 7 8 9 10 0.3487 0.3874 0.1937 0.0574 0.0112 0.0015 0.0001 0.0000 0.0000 0.0000 0.0000 0.3079 0.3849 0.2165 0.0722 0.0158 0.0024 0.0002 0.0000 0.0000 0.0000 0.0000 0.1074 0.2684 0.3020 0.2013 0.0881 0.0264 0.0055 0.0008 0.0001 0.0000 0.0000 0.0563 0.1877 0.2816 0.2503 0.1460 0.0584 0.0162 0.0031 0.0004 0.0000 0.0000 0.0174 0.0867 0.1951 0.2601 0.2276 0.1365 0.0569 0.0162 0.0030 0.0003 0.0000 0.0010 0.0098 0.0439 0.1172 0.2051 0.2461 0.2051 0.1172 0.0439 0.0098 0.0010 0.0000 0.0003 0.0030 0.0162 0.0569 0.1365 0.2276 0.2601 0.1951 0.0867 0.0174 0.0000 0.0000 0.0004 0.0031 0.0162 0.0584 0.1460 0.2503 0.2816 0.1877 0.0563 0.0000 0.0000 0.0001 0.0008 0.0055 0.0264 0.0881 0.2013 0.3020 0.2684 0.1074 0.0000 0.0000 0.0000 0.0000 0.0002 0.0024 0.0158 0.0722 0.2165 0.3849 0.3079 0.0000 0.0000 0.0000 0.0000 0.0001 0.0015 0.0112 0.0574 0.1937 0.3874 0.3487 2010 CEE 5970 Examination Page 3 of 7 7. (20 pts) There is concern about the carcinogenetic of a fuel additive. Animal tests were carried out with rodents to evaluate its toxicity; here are the results of the experiment: mouse dose (g/day) 0 150 400 mice tested 66 71 62 mice with tumors 8 23 41 (a) (16 pts.) Use EPAs three-quarters power weight scaling for interspecies adjustments to determine the daily dose in humans (g/day) from this agent that EPA would estimate imposes a 1-in-100,000 cancer risk. Assume an "average" human weights 70 kg, and average mouse weighted 10 g. Please use a 2-parameter multistage model P(d) which includes a background cancer rate (mice can develop cancer even if not exposed to this chemical), with a linear low-dose response. If in doubt, be conservative. Justify important assumptions. (b) (4 pts) Please write down the likelihood function [so I could type it into excel or some other software system] whose maximum can be sought so as to estimate the parameters of the model in (a). Makes sure the values of all the variables are specified. 8. (8 pts) Air quality monitoring devices are used in industrial settings to generate an alert if the concentration of specific target chemicals exceeds target levels. They also generate false alarms. ChemLife has experience with these monitors. When ChemLife opened a new line and installed an air monitoring device, over the first 50 days, the device generated 3 false alarms. (a) Using the classical maximum likelihood estimator, what would be the estimator of the false-alarm rate for this new device in that location; what is the corresponding estimate of the variance of that estimator of the false-alarm rate? (b) Fifty days is not a very long period of time for parameter estimation when the failure rate is so low; to address that concern the chemical engineer proposes to also report a Bayesian estimate of the failure rate employing on the companys experience with these devices. From monitoring device-to-device across locations in their facility, the rate at which false alarms are generated is on average about 0.02 per day, with a standard deviation across locations and devices of 0.01. (This corresponds to a gamma distribution has a pdf f () = C 4 exp[ - /(0.005)] for some constant C.). Given this background information and the specific data available for this new device, what is the mean and variance of the posterior distribution that describes the probability of different values the false-alarm rate for this new device? 2010 CEE 5970 Examination Page 4 of 7 9. (10 points) Before the Spill, a Spate of Failures [Today's Headlines - May 13, 2010] WASHINGTON (Associated Press) -- Bad wiring and a leak in what's supposed to be a "blowout preventer." Sealing problems that may have allowed a methane eruption. Even a dead battery, of all things. New disclosures Wed. revealed a complex cascade of deep-sea failures equipment and procedural problems in the oil rig explosion and massive spill that is still fouling the waters of the Gulf of Mexico and threatening industries and wildlife near the coast and on shore. A host of worrisome events and findings that were at play on the night of the well explosion and pipe rupture is described in internal corporate documents, marked confidential but provided to a House committee by BP and by the manufacturer of the safety device. Lawmakers released them at a House hearing. (BP was formerly British Petroleum; currently it is 3rd largest energy company and 4th largest company in the world.) a) Why might the public consider the oil rig explosion and oil spill to a signal event? b) Why might the public NOT consider these findings to represent a signal event? c) If you were BP, why would you care if some accident were viewed as a signal event? 10. (12 pts) Give 3 examples of environmental risks/activities that generate what Sandman calls Outrage. Why does such outrage occur? What is the common role of the media in terms of outrage? What can risk managers do to address outrage? Why is it important to address peoples sense of outrage? 11. (10 pts) Someone argued that the material at the end of the course, the last two weeks of class (personal risk perception, community response to attempts to site hazardous activities within their boundaries, risk communication challenges, how the media represents risk, OUTRAGE, ), have little place in a masters-level engineering course. Please agree or disagree, and SUPPORT YOUR POSITION. Grade based on quality of your justification. SOLUTIONS to 2010 CEE 5970 Examination 1. Challenger/Columbia shuttles. Answers differed (a-b). Wanted to see three points such as need to explain technical issues clearly to management presentation of data, need to have a realistic understanding of the reliability of technology and not become complacent, effect of pressure of deadlines on decisions; (c) answers depended on answer to a-b. Remember to address the question. 2. (13 pts) Poisson Process a) = 2/3 = 0.6666 per year = Mean in two years = 2*(0.666 /year) = 1.333 colds b) Waiting time until 5th 2 2 = 5/ = 7.5 years; Variance (T5) = 5/ = 11.25 years =( 3.35 years) c) P[ K=3 | = (9/12) = 0.5 ] = 1.26% 2 pts 2 pts 2 2+2 pts 2+2 pts A C B E D F 3. (15 pts) a) Fault tree: b) P(Failure) = P(F) [ P(A) P(B) + P(C) - P(A) P(B) P(C)][P(D) + P(E) - P(D) P(E)] = 0.1063 = 10.63% 7 pts Basically there are two critical cut sets: CEF and CDF with probabilities 0.3[ 0.45 * 0.5 ] and 0.3[ 0.40 * 0.5 ] so system failure probability is 12.75%. Here neglecting higher order cut sets results in a less than perfect approximation. Reliability of F is only 50%. 8 pts 4. (15 pts) Redraw the Network: B D A E C G F H a) Minmal Cut Sets : AFH DGH DEFH BCFH AEGH b) Reliability = 1 2(0.01)3 = 1 0.000002 = 0.999998 neglects 2(0.01)4 c) Replace B,C,E d) Improve H because it appears in all cut sets. Especially AFH + DGH 5. Risk Profile with = 0. 5 spills/year: Spill Prob. Prob. Volume P(Branch) P(Spill) 2.5 0.260 10 0.4 0.140 12.5 0.195 50 0.3 0.105 125 0.130 Freq freq(V) 0.1300 0.0700 0.0975 0.0525 0.0650 Risk Profile freq[ V v ] 0.5000 0.3700 0.3000 0.2025 0.1500 6 pts 4 pts 3 pts 2 pts 2010 CEE 5970 Examination 500 2500 10000 0.2 0.070 0.065 0.035 0.1 0.0350 0.0325 0.0175 Page 6 of 7 0.0850 0.0500 0.0175 Risk Profile Oil Spills 0.6000 0.5000 0.4000 freq per year 0.3000 0.2000 0.1000 0.0000 1 10 100 1000 10000 Volume 6. Statistics a) X = # of Guilder failures Ho: Guider and GPS-Guide fail at the same rate X ~ Bin(n = 10, p = 0.2 = 50/(50+200) ) Ha: Guider fails less frequently than GPS-Guide X ~ Bin(n = 10, p < 0.2 ) 4 pts Reject Ho if K 0 (minimum = 10.74%) 3 pt b) Observed K = 1; p-value = 0.107+0.268 = 37.6%. Insufficient evidence to reject Ho. 4 pts c) Ha: K ~ Bin{ n = 10, p < 5/[50+2*200] = 1/9 = 0.111 } 2 pts = Type II Error = 1 Pr[ K= 0 | p=0.111 ] = 1 0.3079 = 69% 2 pt 7. Dose Response: First organize the data, and compute the empirical estimates of P(d), and from those the corrected values A(d) = [P(d) P(0)] / [ 1 P(0) ] which yields A(0) = 0; P(0) = 0.1212; Here A(d) corresponds to the probability of getting cancer from this agent, and has the form A(d) = 1 exp( kd ) = 1 exp( q1d ), corresponding to the 2-parameter general multistage model: P(d) = 1 exp( q0 q1 d) = P(0) + [1 P(0)] A(d) where q0 = log[1 P(0) ]. The data yield: (g/day) tested tumors 0 150 400 66 8 23 41 71 62 P(d) 0.1212 A(d) 0 one-hit k 0.3239 0.231 1.75E-03 0.6613 0.615 2.38E-03 P(0) = 0.1212 is our first parameter. Here is the sixth column is k = log[ 1- A(d) ]/d; the value of k that just fits each of the last two points by itself. That is our second parameter q1. To be conservative 2010 CEE 5970 Examination Page 7 of 7 EPA would take the larger k, so k = 2.38x10-3 Then solve 10-5 = A(d) to obtain d = log[ 1 1E-4 ]/k = 4.20x10-03 g/day. This needs to be converted into a human dose using -power scaling: k risk rat dose 2.38E-03 1.00E-05 4.20E-03 mouse wt grams 10 human wt grams 70000 human dose g/day 3.211 b) Define the function p(d) = exp( -q0 q1 d) where q0 and q1 are the parameters we wished to estimate. The likelihood function is computed for different values of q0 and q1 as L = p(0)8 [ 1 p(0) ]54 p(150)23 [ 1 p(150) ]48 p(400)41 [ 1 p(400) ]21 It is often easier to work with the logarithms of the likelihood function. 8. Poisson dist. and parameter estimation. a) Estimate of is ! = 3/50 days = 0.06 per day. Estimate of the variance of ! is ! /50 per day2 = 0.0012 = (0.035 per day)2 Watch your units. b) Now we want to use a Bayesian estimator. The prior for is f () = C 4 exp[ - /(0.005)]. Thus we have = 5 and = 1/0.005 = 200. As a result the posterior parameters will be = 5 + 3 = 8 and = 1/0.005 + 50 = 250. So the posterior mean is / = 8/250 = 0.032 with variance = / = 0.000128 ; This is a situation where the Bayesian estimator is advisable. 2 9. (a) A signal event needs to cause the public to realize there is anew risk they did not know about, or to think the risk has changed. (b) If this is just one more example of the same old thing, then it is not a signal. ( c) If this is a signal then it will effect not just the const and anger related to this accident, but the public may view the whole activity as too risky and unwise, and will try to shut down the activity, or at least demand greater regulation. Signal events draw more attention, and attendtion is not something BP would want for this event. 10. Three examples, many possible (+3). Issues mentioned in better answers. Why: what outrage is and that independent of hazard. Public responds to hazard. Causes of outrage: involuntary risk, dishonest, bullying, exotic. (+2). Media: media generated outrage because they communicate with the public; outrage generates interest and people watch interesting news (+2). Managers can address by 6 tactics listed by Sandman: be honest, admit mistakes, be informative and available, show what is being done Why is it important to address: If you do not address it, it increases; in democratic society need to address public concerns because of consequences of public opposition and loss of trust (+2) General overall understanding and differentiation between signal event and outrage (+1). 11. Answers varied. But in particular, we need to know the issues and what is of concern to the public if we wish to address their concern.
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:

Cornell - CEE - 5970
CEE 5970 Risk Analysis and ManagementEvening Midterm Exam (revised to be an example)March 10, 2011Test is open book and open notes. You have 90 minutes to complete this 90 point exam.Please show readable work to justify partial credit.1. (10 pts) The
Cornell - CEE - 5970
Cornell - CEE - 5970
CEE 5970 Statistics Review SessionExamples1. An engineer is responsible for ensuring that fire detectors in a controlled experimentidentify the presence of fire on average within 10 seconds. Every week 15 detectors aretaken from the production line, t
Rio Salado - BIO - 201
Cornell - CEE - 5970
CS 2110 Summer 2011: Assignment 1 HangmanDue July 5 at 5pmThis assignment is to be done by students individually; future assignments will done ingroups of two. You are expected to respect the code of academic integrity, as describedin the course sylla
Cornell - CEE - 5970
CS 2110 Summer 2011: Assignment 2 BoggleDue July 12 at 5pmThis assignment is to be done in pairs. Information about partners will be providedseparately.Playing Boggle11In this assignment, we continue the theme of games. Unlike the last assignment, w
Cornell - CEE - 5970
CS 2110 Summer 2011: Assignment 3 Sorting It OutDue July 19 at 5pmThis assignment is to be in groups of at most two students. You are expected to respectthe code of academic integrity, as described in the course syllabus.Primary Learning Objectives B
Cornell - CEE - 5970
CS 2110 Summer 2011: Assignment 4 Hufng and UnhufngDue July 26 at 5pmThis assignment is to be done in groups as assigned via CMS. You are expected to respect the code of academic integrity, as described in the course syllabus.Huffman Compression11Th
Cornell - CEE - 5970
CS 2110 Summer 2011: Assignment 5 Graphical UserInterface DesignDue August 2 at 5pmThis assignment is to be in groups of at most two students. You are expected to respectthe code of academic integrity, as described in the course syllabus.Median Avera
Cornell - CEE - 5970
CS 2110 Summer 2011: Assignment 6 The NaturalistDue August 10 at 5pmThis assignment is to be done in groups as assigned via CMS. You are expected to respect the code of academic integrity, as described in the course syllabus.Naturalist11For this assi
Cornell - CEE - 5970
Name _ NetID _ CS 2110 Summer 2011 Final Exam CS 2110 Final ExamQuestion 0. (0 Points) Write your name and net ID on each page.Question 1. (10 Points)a) (4 Points) Consider a hashtable of fixed size 6 that hashes object x using the hash
Cornell - CEE - 5970
Solutions for CS 2110 Summer 2011 Final Exam. (Text written in parenthesis is additional commentary, but not required for a full credit response.) QUESTION 1 Question 1.a) i. index: values 0: 1: 2
Cairo University - SYS - 10
April 21, 2009 17:7spi-b7279in x 6inb727-ch01Chapter 1Basic Knowledge and Modelingon Epidemic DynamicsZhien Ma and Jia Li1.1.IntroductionThe spread of infectious diseases has always been of concerns and a threatto public health. It has caused s
University of Phoenix - DDBA - 8860
Demystifying the DBA Doctoral StudyComponents of the 3-SectionDBA Doctoral StudySee the Notes section for additional informationObjectives of this Presentation Evaluate key components within the3-section doctoral study Discuss and examine the DBA D
Ashford University - PSYCH - 101
describing ways to find out what websites can be credible to use or not dependable
FIU - CHML - 1032
Experiment7InvestigationofaPowderName:Directions: Make sure that you write your name in the header region sothat it appears on each page. Use italics for everything that you type in thislab so that it stands out from the lab itself. This will help in
Ashford University - BUS - 300
Organizational CultureJustin BringasBUS600: Management Communications with Technology ToolsProfessor TvorikJune 16, 2011Lets take a closer look at organizational culture. Organizational culture can be defined as thevalues and behaviors that contribu
Akita International University - ECON - 102
5/14/2009Apple Inc. Case StudyKey Success FactorsExpertise in particular technology/research Proven ability to improve production processes Customer-need satisfaction Continued innovationRecommended StrategySpread out consumer confidence in Steve
Akita International University - ECON - 102
Executive SummaryFrom the humble beginnings as a quirky but scrappy underdog that flew mainly to secondaryairports, Southwest has climbed up through the industry ranks to become the major competitiveforce in the domestic segment of the US airline indus
MIT - CS - 11
Problem Wk.1.3.1: Fibonacci numbersPaste your code for the Fibonnaci program described in the Design Lab handout.You should not attempt to debug your code here; debug it using Idle on your machine.The test cases are random, so you should Check a few ti
MIT - CS - 11
Problem Wk.1.3.2: Simple OOPsFill in what gets printed by the interpreter after the following expressions. Assume thatall the previous expressions have been evaluated. If the expression would generate anerror, enter error. Hint: remember string quotes.
MIT - CS - 11
Problem Wk.1.3.3: TranscriptBelow is a transcript of a session with the Python shell. This means that we are doingeach of the statements in sequence, so for example, previous definitions andassignments are still in effect.Provide the value of the expr
MIT - CS - 11
Problem Wk.1.3.4: 2D vector arithmeticWrite the V2 class, as specified in the software lab handout.MIT OpenCourseWarehttp:/ocw.mit.edu6.01SC Introduction to Electrical Engineering and Computer ScienceSpring 2011For information about citing these mat
MIT - CS - 11
Problem Wk.1.3.5: Polynomial RepresentationsPart 1: Polynomial algebraFirst, let's review algebraic operations on polynomials.The answers below require you to enter sequences of coefficients for polynomials.Enter the coefficients in the order that the
MIT - CS - 11
Problem Wk.1.3.6: Polynomial classPaste your code for the Polynomial class that is described in the lab handout. We willcheck the code with random inputs; the tests are arranged to that they test eachmethod separately and then combinations of them. Loo
MIT - CS - 11
Problem Wk.1.4.1: Structured assignmentsRead the section on structured assignment in the course notes. Note that structuredassignments are often preferable to using list indices to access elements of lists (ortuples). You can give the list elements mne
MIT - CS - 11
Problem Wk.1.4.2: Nested and Shared StructuresUse lists, not tuples, in all your answers.Part 1: NestingGive a Python statement which, when evaluated, would give rise to this memorystructure:Part 2: Sharing 1Give a Python statement which, when evalu
MIT - CS - 11
Problem Wk.1.4.3: List ComprehensionsPart 1: Even SquaresDefine a procedure, called evenSquares that takes a list of numbers as input and returnsa list of the squares of the input values that are even. Use a list comprehension. Youcan test whether a n
MIT - CS - 11
Problem Wk.1.4.4: OOPsPart 1: Thing 1Below is a transcript of a session with the Python shell. This means that we are doingeach of the statements in sequence, so for example, previous definitions andassignments are still in effect.Provide the value o
MIT - CS - 11
Problem Wk.1.4.5: OOPsPart 1: AssignWrite a procedure, called assignThing, that takes two Things, thing1 and thing2, asarguments and sets the stored value (x) of thing1 to the stored value of thing2.Use the set and get methods of Thing, do not access
MIT - CS - 11
Problem Wk.1.4.6: OOPsPart 1: Thing cloneAdd a method called clone to the Thing class which returns a completely new Thing withthe same stored value.&gt;&gt;&gt;&gt;3a = Thing()a.set(3)b = a.clone()b.get()Use the set and get methods of Thing, do not acce
MIT - CS - 11
Problem Wk.1.4.7: Palindrome [Optional]Write a procedure, called isPalindrome, that takes a string as an argument and returnsTrue if the string is a palindrome, that is, if the string is identical to the reversed string.It should return False otherwise
Berkeley - PHYSICS - 8A
MasteringPhysics: Assignment Print View12/22/11 5:02 PMHwk # 0 - Introduction to MasteringPhysics (FOR PRACTICE ONLY)Due: 11:00pm on Wednesday, August 31, 2011Note: To understand how points are awarded, read your instructor's Grading Policy.[Switch t
MIT - CS - 11
Problem Wk.1.4.8: Substring [Optional]Write a procedure, called isSubstring, that takes two strings as inputs and returns Truewhen the first string is a substring of the second one, that is, when all of the charactersin the first string occur contiguou
MIT - CS - 11
Problem Wk.1.4.9: Extract tags [Optional]Write a procedure, called extractTags, that takes a string as input and returns a list ofstrings corresponding to the names of the bracketed tags in the string. Bracketed tagsstart with [ and end with ]. You can
MIT - CS - 11
Problem Wk.1.4.10: Fruit Class [Optional]Part 1: Fruit SaladDefine a class FruitSalad with class attributes fruits, which is initially ['melons','pineapples'] and servings which is initially 4.Write an _init_ method that takes arguments ingredients (a
MIT - CS - 11
Problem Wk.1.4.11: Warehouse [Optional]We'll be building a set of procedures to model a simple warehouse accounting system,which maintains the inventory for a set of commodities, which we will represent bystrings, e.g. 'a', 'b', 'c'. So, the warehouse
MIT - CS - 11
Problem Wk.2.1.1: State machinesConsider a state machine with:inputs: 0, 1, 2states: 0, 1, 2, 3outputs: 0, 1, 2, 3initial state: 0transition function:Input012old state: 0 1 3 0old state: 1 2 0 0old state: 2 3 1 0old state: 3 0 2 0output funct
MIT - CS - 11
Problem Wk.2.1.2: Turnstile state machineHere is a state transition diagram for a turnstile.It has states 'locked' and 'unlocked'It has inputs 'coin', 'none', and 'turn'It has outputs 'enter' and 'pay'The idea is that if it is locked and someone puts
MIT - CS - 11
Problem Wk.2.1.3: Double Delay State MachineWrite a (non-terminating) state machine class (assume you have the sm.SM class) thatdelays its input by two time steps, so output at time i is the input at time i-2. The classshould take two arguments, which
MIT - CS - 11
Problem Wk.2.1.4: Comments MachineWrite a state machine whose inputs are the characters of a string (representing aPython program) and which outputs either (a) the input character if it is part of acomment or (b) None. As you know, comments start with
MIT - CS - 11
Problem Wk.2.1.5: First Word Machine [Optional]Write a state machine whose inputs are the characters of a string and which outputseither (a) the input character if it is part of the first word on a line or (b) None. For thepurposes here, a word is any
MIT - CS - 11
Problem Wk.2.3.1: Inheritance IConsider the following program:class NN:def _init_(self):self.n = 0def get(self):self.n += 1 return str(self.n)def reset(self):self.n = 0 class NS(NN):def get(self, s):return s + NN.get(self)The following statem
MIT - CS - 11
Problem Wk.2.3.2: Inheritance IIYou are told that we have a class AccountDollars, with one initialization argument, theinitial balance, with a method depositDollars that takes one argument (a depositamount) and returns a number (the balance after the d
MIT - CS - 11
Problem Wk.2.3.3: Inheritance and State MachinesRecall that we have defined a Python class sm.SM to represent state machines. Here weconsider a special type of state machine, whose states are always integers that start at0 and increment by 1 on each tr
MIT - CS - 11
Problem Wk.2.3.4: Introduction to RecursionPart 1: AddIn a recursive procedure definition we have one or more base cases and one or morerecursive cases. Base cases terminate the recursion and return a value without callingthe recursive procedure again
MIT - CS - 11
Problem Wk.2.3.5: Slow modSuppose we want to implement the modulus (mod) operation (Python % operator), butonly have the operations of addition, subtraction, and simple tests available to us.Write a recursive Python procedure slowMod that takes two arg
MIT - CS - 11
Problem Wk.3.1.1: Simulating CascadeYou are given the following state machines:class Delay(sm.SM):def _init_(self, v0):self.startState = v0def getNextValues(self, state, inp):# Output is old statereturn (inp, state)class Increment(sm.SM):startSta
MIT - CS - 11
Problem Wk.3.1.2: Cascading MachinesWrite the Cascade combinator for state machines described in the class notes. Makesure that you have read Section 4.2 of the course notes (about Cascade and Parallel).Your implementation should read the startState at
MIT - CS - 11
Problem Wk.3.1.3: Function MachinesWhen composing state machines, we often want to have a pure function machine thatcan be used in a cascade to operate on the output of a state machine. In this problem,we define a subclass of SM that simply applies a g
MIT - CS - 11
Problem Wk.3.1.4: Combining accountsConsider two different kinds of bank accounts:BA1:Fee of $100 on every (non-zero) deposit and withdrawal; 2% interest pertime step.class BA1(sm.SM):startState = 0def getNextValues(self, state, inp):if inp != 0:
MIT - CS - 11
Problem Wk.3.1.5: Sequential combinationsPart 1: Sum machineDefine a terminating state machine class whose inputs are numbers, which outputs thesum of its inputs so far, and which terminates when the sum is &gt; 100. The currentinput should be reflected
MIT - CS - 11
Problem Wk.3.1.6: Feedback SMRead Section 4.2.3 of the Notes, about feedback composition of state machines.Define negate to be an instance of a sm.PureFunction machine that takes a Boolean asinput and returns the negation of that Boolean.Use sm.Feedba
MIT - CS - 11
Problem Wk.3.3.1: MapPart 1: mapListDefine a procedure mapList that takes two arguments, a procedure of one argumentand a list. It returns the list of the results of applying the procedure to each of theelements of the list.&gt; def sq(x): return x*x&gt;
MIT - CS - 11
Problem Wk.3.3.2: Indexing Nested ListsIt would be handy to have a procedure that allows accessing lists that are nested toarbitrary depth. It would take a nested list and some sort of an index, and return thepart of the list at that index (which could
MIT - CS - 11
Problem Wk.3.3.3: Finding systemsA difference equation is in the form:Determine the difference equation representation for the following systems.Specify the dCoeffs:and the cCoeffs:for each of the differenceequations below. For each question, enter
MIT - CS - 11
Problem Wk.3.3.4: RepresentationsDerive the operator equation and difference equation for each of the LTI systems givenby the block diagrams below.A difference equation is in the form:To specify difference equations, enter sequences of coefficients fo
MIT - CS - 11
Problem Wk.4.1.1: Constructing SignalsEnter Python expressions to construct the following signals, using the signalconstructors defined in the software lab handout. Read the entire software labhandout before beginning this problem.The signal construct
MIT - CS - 11
Problem Wk.4.1.2: Step SignalRead the handout for the software lab.Write a new subclass of Signal called StepSignal that has value 0 at any time value 1 otherwise.andMIT OpenCourseWarehttp:/ocw.mit.edu6.01SC Introduction to Electrical Engineering a
Ill. Chicago - FIN - 320
Solutions ManualFundamentals of Corporate Finance 9th editionRoss, Westerfield, and JordanUpdated 12-20-2008CHAPTER 1INTRODUCTION TO CORPORATEFINANCEAnswers to Concepts Review and Critical Thinking Questions1.Capital budgeting (deciding whether t
MIT - CS - 11
Problem Wk.4.1.3: Subclasses of SignalsRead the handout for the software lab. Implement the following subclasses of theSignal class. The test cases test one subclass at a time, so be sure to run Check afterdefining each class.MIT OpenCourseWarehttp:/