Question: 3. (12 pts) A software company classifies computer programs by the length of the source code and its execution time. Programs with 300 lines of

3. (12 pts) A software company classifies computer programs by the length of the source code and its execution time. Programs with 300 lines of code or less are classified as tiny (T), otherwise they are classified as regular (R). Fast programs (F) run in less than 50 msec while slow programs (W) take more than that to run. Assuming P[TF] = 0.5, P[RF] = 0.2, and P[RW]= 0.2, answer the following: a. What is the sample space for the complete classification of a computer program? b. What is the probability that a program is tiny and slow, i.e. P[TW]? C. What is the probability that a program is slow, i.e. P[W]? d. What is the probability that a program is regular, i.e. P[R]? e. What is the probability that a program is fast, i.e. P[F]? f. What is the probability that a program is slow or regular, i.e. P[W UR]? g. Suppose Er is the event that a program is classified as regular and Ep is the event that it is classified as fast. Are ER and Ep independent
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
