27.03.2014 Views

SEKE 2012 Proceedings - Knowledge Systems Institute

SEKE 2012 Proceedings - Knowledge Systems Institute

SEKE 2012 Proceedings - Knowledge Systems Institute

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

pirical evaluation is performed to show the effectiveness of<br />

our regression testing approach. In Section 5, some related<br />

work of regression testing techniques is introduced. Finally,<br />

we conclude and show some future work in Section 6.<br />

2 FCA-based Change Impact Analysis<br />

Table 1. Formal context<br />

M1 M2 M3 M4 M5 M6 M7 M8 M9 M10<br />

C1 × × × × ×<br />

C2 × × × × × ×<br />

C3 × × × ×<br />

C4 × ×<br />

C5 × × × ×<br />

C6 × ×<br />

In this paper, our regression testing is performed based<br />

on the CIA technique. Here we use FCA-based CIA approach<br />

to predict the ripple effects induced by the proposed<br />

changed classes, which we give a simple introduction here.<br />

More details can be referred to our previous work [14].<br />

2.1 Basics for Formal Concept Analysis<br />

Formal Concept Analysis (FCA) is a field of applying<br />

mathematics based on the schematization of concept and<br />

conceptual hierarchy [7]. The input of the FCA process is<br />

the formal context, defined as:<br />

Definition 1 (Formal Context) A formal context is defined<br />

as a triple K =(O, A, R), where R is a binary relation<br />

between a set of formal objects O and a set of formal<br />

attributes A. Thus R⊆O×A.<br />

With the formal context, concept lattice is generated<br />

based on the lattice constructing algorithm [7]. The concept<br />

lattice is composed of a set of formal concepts, defined<br />

as follows:<br />

Definition 2 (Formal Concept) A formal concept is a<br />

maximal collection of formal objects sharing common formal<br />

attributes. It is defined as a pair (O, A) with O ⊆O,<br />

A ⊆A, O = τ(A) and A = σ(O), where τ(A) ={o ∈<br />

O|∀a ∈ A :(o, a) ∈R}∧σ(O) ={a ∈A|∀o ∈ O :<br />

(o, a) ∈R}.<br />

τ(A) is said to be the extent of the concept and σ(O)<br />

is said to be its intent. On the generated concept lattice,<br />

there are relations between these formal concepts, which<br />

forms a partial order on the set of all concepts. We use<br />

the following definition subconcept to denote the relations<br />

between different formal concepts [7]:<br />

Definition 3 Given two concepts Co 1 (O 1 ,A 1 ) and Co 2<br />

(O 2 ,A 2 ) of a formal context, Co 1 is called the subconcept<br />

of Co 2 , provided that O 1 ⊆ O 2 (or A 1 ⊇ A 2 ). we usually<br />

mark such relation as: Co 1 Co 2 ⇐⇒ O 1 ⊆ O 2 ⇐⇒<br />

A 1 ⊇ A 2<br />

The set of all concepts of a formal context forms a partial<br />

order, and composes a concept lattice, defined as follows.<br />

Figure 1. Graphical representation of the concept<br />

lattice<br />

Definition 4 (Concept Lattice) The concept lattice L(Co)<br />

is a complete lattice. L(Co) = {(O, A) ∈ 2 O ×<br />

2 A |O = τ(A) ∧ A = σ(O)}, where infimum and supremum<br />

of two concepts (O 1 ,A 1 ) and (O 2 ,A 2 ) are defined<br />

as: (O 1 ,A 1 ) ∧ (O 2 ,A 2 )=(O 1 ∩ O 2 ,σ(O 1 ∩ O 2 )), and<br />

(O 1 ,A 1 )∨(O 2 ,A 2 )=(τ(A 1 ∩A 2 ),A 1 ∩A 2 ), respectively.<br />

A formal context can be easily represented by a relation<br />

table, as shown in Table 1. In this table, rows represent<br />

formal objects and columns represent formal attributes. A<br />

cross (×) inrowC and column M means that the formal<br />

object C has relationship with formal attribute M. By applying<br />

Galicia tool 1 to the formal context in Table 1, the<br />

concept lattice composed of formal concepts are generated.<br />

Figure 1 shows the corresponding graphical representation<br />

of the concept lattice. Each lattice node on the concept lattice<br />

indicates a formal concept, and is marked with its intent<br />

(I Set) and extent (E Set). The edges between them represent<br />

the containment relationship between concept intents,<br />

which forms a partial (hierarchical) order on the sets of all<br />

concepts.<br />

2.2 Change Impact Analysis<br />

CIA is an important predictive measurement of the ripple<br />

effects induced by the proposed changes. Here, the input of<br />

1 http://www.iro.umontreal.ca/ galicia/<br />

453

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!