Heuristics for Improving

Relaterede dokumenter
Strings and Sets: set complement, union, intersection, etc. set concatenation AB, power of set A n, A, A +

CHAPTER 8: USING OBJECTS

Generalized Probit Model in Design of Dose Finding Experiments. Yuehui Wu Valerii V. Fedorov RSU, GlaxoSmithKline, US

StarWars-videointro. Start din video på den nørdede måde! Version: August 2012

Differential Evolution (DE) "Biologically-inspired computing", T. Krink, EVALife Group, Univ. of Aarhus, Denmark

Basic statistics for experimental medical researchers

PARALLELIZATION OF ATTILA SIMULATOR WITH OPENMP MIGUEL ÁNGEL MARTÍNEZ DEL AMOR MINIPROJECT OF TDT24 NTNU

Agenda. The need to embrace our complex health care system and learning to do so. Christian von Plessen Contributors to healthcare services in Denmark

Applications. Computational Linguistics: Jordan Boyd-Graber University of Maryland RL FOR MACHINE TRANSLATION. Slides adapted from Phillip Koehn

v Motivation v Multi- Atlas Segmentation v Learn Dictionary v Apply Dictionary v Results

Sign variation, the Grassmannian, and total positivity

ECE 551: Digital System * Design & Synthesis Lecture Set 5

TM4 Central Station. User Manual / brugervejledning K2070-EU. Tel Fax

Artificial Intelligence

Linear Programming ١ C H A P T E R 2

USERTEC USER PRACTICES, TECHNOLOGIES AND RESIDENTIAL ENERGY CONSUMPTION

DET KONGELIGE BIBLIOTEK NATIONALBIBLIOTEK OG KØBENHAVNS UNIVERSITETS- BIBLIOTEK. Index

Skriftlig Eksamen Beregnelighed (DM517)

Revision af studieordninger

The GAssist Pittsburgh Learning Classifier System. Dr. J. Bacardit, N. Krasnogor G53BIO - Bioinformatics

MSE PRESENTATION 2. Presented by Srunokshi.Kaniyur.Prema. Neelakantan Major Professor Dr. Torben Amtoft

Particle-based T-Spline Level Set Evolution for 3D Object Reconstruction with Range and Volume Constraints

Projekt DATA step view

Breaking Industrial Ciphers at a Whim MATE SOOS PRESENTATION AT HES 11

Sortering fra A-Z. Henrik Dorf Chefkonsulent SAS Institute

Verilog HDL. Presented by: Amir Masoud Gharehbaghi

Det er muligt at chekce følgende opg. i CodeJudge: og

Black Jack --- Review. Spring 2012

Vina Nguyen HSSP July 13, 2008

Portal Registration. Check Junk Mail for activation . 1 Click the hyperlink to take you back to the portal to confirm your registration

how to save excel as pdf

to register

Health surveys. Supervision (much more) from the patients perspective. Charlotte Hjort Head of dep., MD, ph.d., MPG

Website review groweasy.dk

LED STAR PIN G4 BASIC INFORMATION: Series circuit. Parallel circuit HOW CAN I UNDERSTAND THE FOLLOWING SHEETS?

On the complexity of drawing trees nicely: corrigendum

Skriftlig Eksamen Automatteori og Beregnelighed (DM17)

Engineering of Chemical Register Machines

Besvarelser til Lineær Algebra Reeksamen Februar 2017

WIKI & Lady Avenue New B2B shop

Popular Sorting Algorithms CHAPTER 7: SORTING & SEARCHING. Popular Sorting Algorithms. Selection Sort 4/23/2013

RoE timestamp and presentation time in past

Øvelse 9. Klasser, objekter og sql-tabeller insert code here

Handling Sporadic Tasks in Off- Line Scheduled Distributed Real Time Systems

Brystkræftscreening og overdiagnostik hvordan forstår vi stigningen i incidens?

Software 1 with Java. Recitation No. 7 (Servlets, Inheritance)

IBM Network Station Manager. esuite 1.5 / NSM Integration. IBM Network Computer Division. tdc - 02/08/99 lotusnsm.prz Page 1

Unitel EDI MT940 June Based on: SWIFT Standards - Category 9 MT940 Customer Statement Message (January 2004)

WIO200A INSTALLATIONS MANUAL Rev Dato:

Design til digitale kommunikationsplatforme-f2013

Learnings from the implementation of Epic

DM549 Diskrete Metoder til Datalogi

SOLENERGIDAGEN 2005 Integration of Architectural Values in the Solar Cells of Tomorrow

Informationsteknologi Generisk kodning af levende billeder og tilknyttet lydinformation Del 7: Avanceret lydkodning (AAC)

Statistik for MPH: 7

Skriftlig Eksamen Kombinatorik, Sandsynlighed og Randomiserede Algoritmer (DM528)

CS 4390/5387 SOFTWARE V&V LECTURE 5 BLACK-BOX TESTING - 2

Sport for the elderly

Maneurop reciprocating compressors

Special VFR. - ved flyvning til mindre flyveplads uden tårnkontrol som ligger indenfor en kontrolzone

Central Statistical Agency.

FORSTÅ FREMTIDEN? 28. november, Anders Kofod-Petersen Vicedirektør, Alexandra Instituttet Professor, NTNU

what is this all about? Introduction three-phase diode bridge rectifier input voltages input voltages, waveforms normalization of voltages voltages?

PARATHOM / PARATHOM PRO MR16 Electric Transformer Compatibility

Lovkrav vs. udvikling af sundhedsapps

Valg af Automationsplatform

Subject to terms and conditions. WEEK Type Price EUR WEEK Type Price EUR WEEK Type Price EUR WEEK Type Price EUR

To the reader: Information regarding this document

Historien om en ikonisk vase

Teknologispredning i sundhedsvæsenet DK ITEK: Sundhedsteknologi som grundlag for samarbejde og forretningsudvikling

Opera Ins. Model: MI5722 Product Name: Pure Sine Wave Inverter 1000W 12VDC/230 30A Solar Regulator

Design by Contract. Design and Programming by Contract. Oversigt. Prædikater

DoodleBUGS (Hands-on)

Statistical information form the Danish EPC database - use for the building stock model in Denmark

Metal Oxide Varistor:TVM-B Series

Probabilistic properties of modular addition. Victoria Vysotskaya

VARIO D1. Samlet pris kr. XXXX,-

LESS. LESS er WalkIn Companys første entrémøbelserie - navnet er inspireret af den amerikanske arkitekt Charles W. Moores valgsprog Less is more.

Side 1 af 9. SEPA Direct Debit Betalingsaftaler Vejledning

LESSON NOTES Extensive Reading in Danish for Intermediate Learners #8 How to Interview

E-PAD Bluetooth hængelås E-PAD Bluetooth padlock E-PAD Bluetooth Vorhängeschloss

program fibomain(input,output); var i, j,result : integer; var x, y: integer;

Ikke-parametriske tests

Aktivering af Survey funktionalitet

Frame System Part Numbers

ESG reporting meeting investors needs

GNSS/INS Product Design Cycle. Taking into account MEMS-based IMU sensors

Netværk og Algoritmer A juni 2010

1 Indlæsning af script

The complete construction for copying a segment, AB, is shown above. Describe each stage of the process.

Skriftlig Eksamen Beregnelighed (DM517)

User Manual for LTC IGNOU

OG-3600 Series Fiber Optic Transport for opengear card frame platform w/ SNMP Management

Usability-arbejde i virksomheder

H2020 DiscardLess ( ) Lessons learnt. Chefkonsulent, seniorrådgiver Erling P. Larsen, DTU Aqua, Denmark,

Hvor er mine runde hjørner?

Trolling Master Bornholm 2015

Model Control Design by Jens Juul Eilersen

Remote Sensing til estimering af nedbør og fordampning

IBM WebSphere Operational Decision Management

Transkript:

Heuristics for Improving Model Learning Based Testing Muhammad Naeem Irfan VASCO-LIG LIG, Computer Science Lab, Grenoble Universities, 38402 Saint Martin d Hères France

Introduction Component Based Software Engineering Formal models of such components are missing Methods to construct the model from source code are available Source code for components (black boxes) is most often missing Construct the model by sending inputs and observing outputs

Introduction Reverse engineering i models Black Box Observe outputs for inputs Test model Learner Tester Learn model i/o i/o State 1 State 2 State 3 i/o Learned Model

Angluin Style Learning Observe outputs Input set I Algorithm Send inputs Perform test OK or Counterexample Learnt Model Oracle Complexity O( I ² nm + I m n²) I : the size of the input set n : the number of states in the actual machine m : the length of the longest counterexample Method by Shahbaz to process the counter example O( I ² n + I mn²)

Problem Statement Observe outputs Input set I Algorithm Send inputs Perform test OK or Counterexample Learnt Model Oracle Oracle is of low quality The length of counterexample m is important parameter for the complexity How we can reduce relying on the quality of counterexample Process the counterexample more efficiently

Learning Black Box Discriminating Sequences b/y a/x a b State S M s Equ Stat ivalent es S M.I ε a b x x x y y y Black Box q 0 q 2 b/y b/x a/x q 1 a/x Properties: Closed Consistent Observation Table Output Queries s.d, s (St EqSt), d (DescSeq) = a/x ε : an empty string

Constructing the Conjecture S M = states, S M.I = eq. states E M = disc.seq seq&t M = output fun Rows Equivalence r 1, r 2 (S M S M.I) are equivalent, iff e E M, T M (r 1,e)=T M (r 2,e) Closeness iff r 1 SS M.I r 2 SS M (r 1 EM r 2 ) Consistency iff i I if (r 1 EM r 2 ) (r 1. i EM r 2. i) ) Black Box b/y a/x q 0 q 2 b/y b/x a/x a/x q 1 Counterexample: Conjecture: Black Box: ababaab a b a a b x y x y x x y x y x y x x x Conjecture q 0

Processing the Counterexample Counterexample: a babaab b baab a a b Discriminating Sequences Discriminating Sequences a b ε x y a x y b x y States Eq. States a b ε x y a x y b x y Observation Table (Shahbaz Method) Observation Table (New Method)

Difference between Algorithms Processing the Counterexample a b a b a a b Add suffixes to Discriminating Sequences until new state is identified 49 a b ab aab baab abaab babaab 21 a b ab ε x y xy xxx yxxx xyxxx yxyxxx a x y xx xxx yxxx xxxxx yxyxxx aa x x xx xxx xxxx xxxxx xxxxxx b x y xy xxx yxxx xyxxx yxyxxx ab x y xy xxx yxxx xyxxx yxyxxx aaa x x xx xxx xxxx xxxxx xxxxxx Observation Table after processing counterexample with Shahbaz method ε x y xy a x y xx aa x x xx b x y xy ab x y xy aaa x x xx aab x y xx xxx yxxx xxxxx yxyxxx aab x y xx Observation Table after processing counterexample

Edinburg Concurrency Workbench Results CWB Examples Tests Examples New Method Shahbaz Method CE New Method CE Shahbaz Method Buff3 259 259 4 4 Peterson-2 340 374 6 5 VM 392 448 2 2 10000 9000 8000 7000 6000 5000 4000 3000 2000 1000 0 New Method Prev Method VMnew 1638 1521 8 6 Sched2 553 790 1 1 9 CSPROT 3094 3757 7 5 4 System1 5936 9328 5 3 Gain for number of tests conducted Lose for the number of counter examples processed 8 7 6 5 3 2 1 0 Counterexamples New Method Prev Method

Randomly Generated Machines Results Results for learning randomly generated machines with alphabet size 3 and output size 2 for All the Variants of Learning Algorithms State t Size Angluin Method Shahbaz Method New Method 3 185 115 40 4 202 148 55 14000 12000 5 248,6667 162,6667 70,66667 10000 6 403,4 294,5 97,6 7 294,4 215,6 120,8 8 693,6 301 146,4 9 424,7 269,6 152 6000 10 457,875 344,875 179,125 11 606,7857 425 217,0714 12 680,5 459,4167 238,6667 13 744,8333 543,3333 303,3333 14 898,5 738,1667 306,25 15 683,6667 375,6667 334,8333 16 907,375 1582,292 303,1667 17 1130,107 534,1429 386,4643 18 713,8 1001 412,5 Nu umber of Queries 8000 4000 2000 0 No. of Queries in Angluin Method No. of Queries in Shahbaz Method No. of Queries in first sequence making table unclosed 1 11 21 31 41 51 61 71 Number of States

Comparison of Methods New method less number of discriminating sequences Shahbaz and Angluin method consumes all the discriminatingi i sequences Worst case complexity for Shahbaz and New method is same Gain for processing the Counterexample from Random Gain for processing the Counterexample from Random Walk method

Perspectives Find efficient heuristics to bring down the average complexity of algorithm Process the counterexamples How to deal with the abstractions to be made on actual interactions with black box components How to perform random walks more efficiently to obtain the counterexamples Enable learning algorithms to learn implementations as parameterized machines and NFSMs

Questions