Preprocessing
Found invariant 0 ≤ X₀ for location g
Probabilistic Analysis
Probabilistic Program after Preprocessing
Start: f
Program_Vars: X₀, X₁
Temp_Vars:
Locations: f, g
Transitions:
g₁:f(X₀,X₁) -{0}> t₂:g(0,X₁) :|:
g₃:g(X₀,X₁) → t₄:g(X₀+Binomial (10, 1/2),X₁) :|: 1+X₀ ≤ X₁ ∧ 0 ≤ 1 ∧ 0 ≤ X₀
Show Graph
G
f
f
g
g
f->g
p = 1
t₂ ∈ g₁
η (X₀) = 0
{0}
g->g
p = 1
t₄ ∈ g₃
η (X₀) = X₀+Binomial (10, 1/2)
τ = 0 ≤ 1 ∧ 0 ≤ X₀ ∧ 1+X₀ ≤ X₁
Run classical analysis on SCC: [f]
Classical Approximation after Lifting Classical Results
All Bounds
Timebounds
Overall timebound:inf {Infinity}
g₁: 1 {O(1)}
g₃: inf {Infinity}
Costbounds
Overall costbound: inf {Infinity}
g₁: inf {Infinity}
g₃: inf {Infinity}
Sizebounds
(g₁,g), X₀: 0 {O(1)}
(g₁,g), X₁: X₁ {O(n)}
Run probabilistic analysis on SCC: [f]
Run classical analysis on SCC: [g]
Classical Approximation after Lifting Classical Results
All Bounds
Timebounds
Overall timebound:inf {Infinity}
g₁: 1 {O(1)}
g₃: inf {Infinity}
Costbounds
Overall costbound: inf {Infinity}
g₁: inf {Infinity}
g₃: inf {Infinity}
Sizebounds
(g₁,g), X₀: 0 {O(1)}
(g₁,g), X₁: X₁ {O(n)}
(g₃,g), X₁: X₁ {O(n)}
Run probabilistic analysis on SCC: [g]
Plrf for transition g₃:g(X₀,X₁) → t₄:g(X₀+Binomial (10, 1/2),X₁) :|: 1+X₀ ≤ X₁ ∧ 0 ≤ 1 ∧ 0 ≤ X₀:
new bound:
1/5⋅X₁+9/5 {O(n)}
PLRF:
• g: 9/5+1/5⋅X₁-1/5⋅X₀
Show Graph
G
f
f
g
g
f->g
p = 1
t₂ ∈ g₁
η (X₀) = 0
{0}
g->g
p = 1
t₄ ∈ g₃
η (X₀) = X₀+Binomial (10, 1/2)
τ = 0 ≤ 1 ∧ 0 ≤ X₀ ∧ 1+X₀ ≤ X₁
Use expected size bounds for entry point (g₁:f→[t₂:1:g],g)
Use expected size bounds for entry point (g₁:f→[t₂:1:g],g)
Use classical time bound for entry point (g₁:f→[t₂:1:g],g)
Results of Probabilistic Analysis
All Bounds
Timebounds
Overall timebound:1/5⋅X₁+14/5 {O(n)}
g₁: 1 {O(1)}
g₃: 1/5⋅X₁+9/5 {O(n)}
Costbounds
Overall costbound: 1/5⋅X₁+9/5 {O(n)}
g₁: 0 {O(1)}
g₃: 1/5⋅X₁+9/5 {O(n)}
Sizebounds
(g₁,g), X₀: 0 {O(1)}
(g₁,g), X₁: X₁ {O(n)}
(g₃,g), X₀: X₁+9 {O(n)}
(g₃,g), X₁: X₁ {O(n)}