dcavey/Clustering — Issue #4: Clustering algorithm improvement #1
Author: TomDeweerdt
Created: 2012-01-17 15:26:59+00:00
State: open

In the example below you can see that *GI-132-FLAGBNF* uses a table from *Financial_Markets* and a table from *MDM_Management* (line 3 and 5). This means that both modules score *1*. When there are equal scores, it seems the algorithm takes the last in line. In this case *MDM_Management*.
It would spare me some extra time when this was not the case and *Financial_Markets* was picked.

An extra rule in the algo could be
* if equal scores: try to pick any module before *TECHNICAL_KERNEL* or *MDM_Management*

```
program=GI-132-FLAGBNF [G] FIT=N,SEL=N into IFS module=Account_Management with score=0>
program=GI-132-FLAGBNF [G] FIT=N,SEL=N into IFS module=Finance with score=0>
Program=GI-132-FLAGBNF [G] uses module.table=Financial_Markets.IPTIO for OPS=__U_
program=GI-132-FLAGBNF [G] FIT=N,SEL=N into IFS module=Lending with score=0>
Program=GI-132-FLAGBNF [G] uses module.table=MDM_Management.LPSNS for OPS=_RU_
program=GI-132-FLAGBNF [G] FIT=N,SEL=N into IFS module=Payment_And_Cash_Management with score=0>
program=GI-132-FLAGBNF [G] FIT=N,SEL=N into IFS module=TECHNICAL_KERNEL with score=0>
program=GI-132-FLAGBNF [G] FIT=Y,SEL=Y into IFS module=MDM_Management with score=1>
```

If my issue is not clear, please add your comment.