Harry Robinson Semantic Platform Test Group Microsoft
Graphs and testing go well together Hmm … if I am here and I do this I should end up there
here
this
there
Executing a test can be viewed as traversing a state graph ...
1
Königsberg, 1736 ?
Is it possible to cross each bridge exactly once?
The Birth of Graph Theory node
link
Königsberg’s problem: too many odd vertices!
2
So … what does this have to do with the cost of mail delivery in China ?
China, 1962 3
a
?
b
c g
3
5 f
e
d 3
How to visit all the mailboxes in the fewest steps?
3
Chinese Postman algorithm 4
a
!
b b
c g
4
After “Eulerizing”
6 f
e
d 4
d
A solution: a b c b e f g d d
New York, 1977 +1
a
?
c g
-1
b
-1 f
e
d +1
How to visit all the garbage cans with the least driving?
4
New York Street Sweeper algorithm 0
a
!
c g
0
b
b
e
e
0
g f d 0
A solution: a b c b f e g d e g
So … what does this have to do with the cost of software delivery in Redmond?
5
A Testing Problem B
a
?
c g
A
b
C f
e
d D
How can I test all these actions in the fewest steps?
The Street Sweeper strikes again B
a
!
c g
A
b
b
e
e
C
g f d D
A solution: a b c b f e g d e g
6
A ‘Safecracking’ Problem B
a
??
c g
A
b
C f
e
d D
How can I test all the pairs of actions in the fewest steps?
De Bruijn sequences a
b
a c g d
b g
f
c
f
e d
e
A solution: a b c b f e c b g d e f e g
7
Testing the Most Likely Paths P(a)=.9 a
???
B b
P(c)=.02 c
A
g P(g)=.9 P(f)=.08
C e
f
d
P(d)=.1
D
How can I test the likeliest sequences first?
Markov Chains + Depth First Traversal g b a
d
e
0.81
f
e
g
c
b
g
g f
0.0648 0.0162 0.09
e
g
0.0072
abg deg abfeg abcbg defeg
8
Capacitated Vehicle problem c d
????
e a
b
i
f g h
How can I test all these actions in the shortest time?
The Street Sweeper solution c d e a
b
i
f
abcbdbebfbgbhbi
g h
The street sweeper approach takes 15 time intervals.
9
But distributing the work ... a
b
c
b
i
a
b
d
b
i
a
b
e
b
i
a
b
f
b
i
a
b
g
b
i
a
b
h
b
i
… gets the job done in 1/3 the time!
Future Directions ?
Random walks
10
Levy Flights
Probability of step’s length is in inverse proportion to the square of that length.
Anti-Random Walks
Rather than taking choosing each step independently of what went before, choose each next step that is most unlike its predecessors.
11
Models + Algorithms = Testing • Models are good at representing systems • Graph theory can use models to generate tests • Different algorithms can provide tests to suit your needs: – – – – – – –
Street sweepers Safecracking Markov chains Capacitated vehicles Random walks Levy flights Anti-random walks
12. Models + Algorithms = Testing. ⢠Models are good at representing systems. ⢠Graph theory can use models to generate tests. ⢠Different algorithms can provide tests to suit your needs: â Street sweepers. â Safecracking. â Markov chains. â Capacitated vehicles. â Random walks. â Levy flights. â Anti-random walks.
I will argue that this lack of proper definitions is the main reason why the field of research in Artificial Intelligence (and some of its subfields like Cognitive Robotics, e.g.) has been derailed for the last 60 years. The definitions that are in u
specific to their learning issues. â« 28-year old male. â« Cough productive of clear sputum with flecks of blood, worsens to frank blood. â« Smokes 1.5 packs a day, ...
Figure 1. A factorial design manipulated the probability of aversive events encountered by the target, p(Event), and the conditional prob- ability of the target's aggressive reactions to those events, p(Reaction |. Event). The Event-/Reaction+ and Ev
Using the average hazard ratio to evaluate treatment effects with non-proportional hazards. Georg Heinze. CeMSIIS â Section for Clinical Biometrics. Page 2. Contents. â¢. â¢. â¢. â¢. Page 3. â¢. â¢. Non-proportional hazards: CABG vs. PCI in E
2 GHz Intel Core Duo as a test system. Baseline Experiment. It was important to establish a baseline before continuing with either model validation or the phage therapy experiment. In order to accomplish this we tuned the parameters outlined in Table
Perhaps as a result of the greater social acceptance of homosexuals, more and more individuals have ..... This is but the first mention of what becomes a very ..... Biblical Ethics and Homosexuality: Listening to Scripture (ed. Robert L. Brawley;.
Figure 1: Main energy flows during the plant production in agro-ecosystems. R- represents .... Environmental Policy, Environmental. Engineering ... Emergy evaluation of three cropping systems in the southwestern. Australia. Ecological.
#define second_led 13 â//second LED is connected to 13th pin. #define first_datapin 10 â//D1 of slide switch is connected to. 10th pin. #define second_datapin ...
had received bachelor or professional degrees. By 1990, this had risen 10-fold to. Inore than 30%. 3. Although technological societies are undoubt- cdly more ...
1Department of Electrical Engineering, Eindhoven University of Technology, The Netherlands. 2 Philips Research, Eindhoven, The Netherlands. Email: [email protected] ... patient care and monitoring, but also reveals health risks that might ...
Page 2 of 20. 2. BIOGRAPHY. Dragan Samardzija received the B.S. degree in electrical engineering and. computer science in 1996 from the University of Novi ...
There was a problem previewing this document. Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item. Slide Biogas.pdf.