Input: Ns = {SNs, MNs}

Output: k clusters as C = { C 1 , C 2 , , C k }

Begin

Initialize Ns

Fed Ns into NFIS

For each S N , M N N s

Find fizzy output upon rule base

If (output=High)

Select as exemplar E

Else

Goto next node

End if

End for

Find k exemplar as Ek

For each S N , M N N s

For each E E k

Find Sim(E,Ns)

Update R,A

If R&A==High

Assign Ns to ck

Else

Goto another cluster

End if

End for

Until

Required clusters formed

End for

End