



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




The exam lasts for 50 minutes and is 100 points total. Please answer each question.
Name: Solution
1. [Markov model] (20) Consider the following Web site for e-commerce with 4 states: S for the start state, B for a browsing state, C for a check-out state, and E for an end-state. 1) From the start state S the user goes to state B with probability 0.9 or to state E with probability 0.1. 2) Given that a user is in state B , the user next goes to state C with probability 0.1, to state E with probability 0.3, or has a 0.6 probability of staying in state B. 3) Given that a user is in state C , the user next goes to state B with probability 0.2, to state E with probability 0.7, or has a 0.1 probability of staying in state C. 4) Once a user reaches an end state, the user stays there forever. Define a Markov model using a fully labeled diagram with the probability matrix (where row 1 = S , row 2 = B , row 3 = C , row 4 = E ).
0.1 0.3 0.
2. [Definitions + Explanations] (30) a. What are three of the most fundamental concepts in system modeling? Identify and define them. (6)
State: describes the system for an interval of time Event: a point in time that designates a change in state Time: denoted by either an integer or a real number
b. What is an autonomous system? Specify it in terms of the model components. (5)
System without an input
c. Under what circumstances is an event scheduling method more efficient than a time slicing method? (6)
The event scheduling method is efficient where the values of inputs and outputs change irregularly.
d. How does a random variable differ from a variable within a computer program? (7)
Operation Variable Random variable
get X Æ value Sample X Æ value
store X Å value X Å function with value range
Consider the following vending machine. The vending machine accepts only nickels and dimes and dispenses bottled water or Coke (by pressing one of two selection buttons). Bottled water costs 15¢ and Coke costs 20¢. The machine should behave in accordance with the following specifications:
(a) Diagram (20pts)
Nickel
Water button
Coke button
Water button
Dime
Dime Dime
Nickel
Nickel
Nickel
Nickel
Dime
Dime
(b) Mathematical definition (15pts)
δ(q 3 , nickel) = q 4 , δ(q 3 , dime) = q 3 , δ(q 4 , nickel or dime) = q 4 , δ(q 3 , water button) = q 0 , δ(q 4 , water button) = q 1 , δ(q 4 , coke button) = q 0