IMPLEMENTATION AND TESTING
5.1.Input
Get file: user is requested to enter data in the form of .txt
Input the value of proximity: the user asked to incorporate the value of proximity to centroid distance limits
The Division of the input: the user determines how grouping that will be created.
Illustration 5.1:Input Data
5.2.Proces
The first such sentence in space and then uncheck omit punctuation and changing capital letters into small letters
Illustration 5.2:Omit Punctuation
Illustration 5.3:Change into ASCII
Illustration 5.4:Determined the Centroid
next the inputed values its closeness and compared with the hash value for the value random.
5.3.Testing
the result of the grouping expressions is value proximity to centroid. Testing 1
The first trial took files from coba.txt contains: budi memasak,budi
memancing,ani memasak,ikan berenang,andi sedang bekerja,adik bermain bola,bola dikaki budi
Illustration 5.6: First Text for First Testing
The result of the input values the closeness 8888888 and the Division of the input 3 is:
Cluster 1 comprises: ani memasak Cluster 2 comprises: budi memasak Cluster 3 comprises:
Testing2
The second trial took files from coba.txt contains: budi memasak,budi memancing,ani memasak,ikan berenang,andi sedang bekerja,adik bermain bola,bola dikaki budi
Illustration 5.8: Second Text for Second Testing
The result of the input values the closeness 7777777 and the Division of the input 3 is:
Cluster 1
comprises:-Cluster 2 comprises: bola dikaki budi Cluster 3 comprises:
Not included in cluster: budi memasak,budi memancing,ani memasak,ikan berenang,andi sedang bekerja,adik bermain bola.
Testing 3
The third trial took files from coba.txt contains: budi memasak,budi memancing,ani memasak,ikan berenang,andi sedang bekerja,adik bermain bola,bola dikaki budi
The result of the input values the closeness 666666 and the Division of the input 3 is:
Cluster 1
comprises:-Cluster 2 comprises: adik bermain bola Cluster 3 comprises:
-Not included in cluster: budi memasak,budi memancing,ani memasak,ikan berenang,andi sedang bekerja,bola dikaki budi
Testing 4
The fourth trial took files from coba.txt contains: budi memasak,budi memancing,ani memasak,ikan berenang,andi sedang bekerja,adik bermain bola,bola dikaki budi
Illustration 5.12: Fourth Text for Fourth Testing
The result of the input values the closeness 5555555 and the Division of the input 3 is:
Cluster 1
comprises:-Cluster 2 comprises: budi memasak Cluster 3 comprises:
-Not included in cluster: budi memancing,ani memasak,ikan berenang,andi sedang
bekerja,adik bermain bola,bola dikaki budi
Testing 5
Illustration 5.14: Fifth Text for Fifth Testing
The result of the input values the closeness 4444444 and the Division of the input 3 is:
Cluster 1
comprises:-Cluster 2 comprises: budi memancing Cluster 3 comprises:
-Not included in cluster: budi memasak,ani memasak,ikan berenang,andi sedang bekerja,adik bermain bola,bola dikaki budi
Testing 6
The sixth trial took files from coba.txt contains:budi memasak,budi
memancing,ani memasak,ikan berenang,andi sedang bekerja,adik bermain bola,bola dikaki budi
Illustration 5.16: Sixth Text for Sixth Testing
The result of the input values the closeness 8888888 and the Division of the input 3 is:
Cluster 1
comprises:-Cluster 2 comprises: budi memasak,ani memasak,ikan berenang Cluster 3 comprises: budi memancing
Not included in cluster: andi sedang bekerja,adik bermain bola,bola dikaki budi
bola,bola dikaki budi
Illustration 5.18: Seventh Text for Seventh Testing
The result of the input values the closeness 77777777 and the Division of the input 3 is:
Cluster 1
comprises:-Cluster 2 comprises: bola dikaki budi Cluster 3
comprises:-Not included in cluster: budi memasak,budi memancing,ani memasak,ikan berenang,andi sedang bekerja,adik bermain bola
Testing 8
The eight trial took files from coba.txt contains: budi memasak,budi memancing,ani memasak,ikan berenang,andi sedang bekerja,adik bermain
bola,bola dikaki budi
Illustration 5.20: Eighth Text for Eighth Testing
The result of the input values the closeness 66666666 and the Division of the input 3 is:
Cluster 1
comprises:-Cluster 2 comprises:andi sedang bekerja Cluster 3
Testing 9
The ninth trial took files from coba.txt contains: budi memasak,budi memancing,ani memasak,ikan berenang,andi sedang bekerja,adik bermain bola,bola dikaki budi
Illustration 5.22: Ninth Text for Ninth Testing
The result of the input values the closeness 55555555 and the Division of the input 3 is:
Cluster 1 comprises:budi memasak,ani memasak Cluster 2 comprises:ikan berenang
Cluster 3 comprises:budi memancing
Not included in cluster: andi sedang bekerja,adik bermain bola,bola dikaki budi
Testing 10
The tenth trial took files from coba.txt contains: budi memasak,budi memancing,ani memasak,ikan berenang,andi sedang bekerja,adik bermain bola,bola dikaki budi
Illustration 5.24: Tenth Text for Tenth Testing
The result of the input values the closeness 44444444 and the Division of the input 3 is:
Cluster 1
comprises:-Cluster 2 comprises:budi memasak,ani memasak
Not included in cluster: budi memancing,andi sedang bekerja,adik bermain bola,bola dikaki budi
Testing 11
The eleventh trial took files from coba.txt contains: budi memasak,budi memancing,ani memasak,ikan berenang,andi sedang bekerja,adik bermain bola,bola dikaki budi
Illustration 5.26: Eleventh Text for Eleventh Testing
The result of the input values the closeness 999999999 and the Division of the input 3 is:
Cluster comprises:budi memasak,budi memancing,ani memasak,ikan berenang,bola dikaki budi
Cluster 1 comprises:adik bermain bola Cluster 2 comprises:
Cluster 3 comprises:
Not included in cluster: andi sedang bekerja
Testing 12
The twelve trial took files from coba.txt contains: budi memasak,budi memancing,ani memasak,ikan berenang,andi sedang bekerja,adik bermain bola,bola dikaki budi
Illustration 5.28: Twelve Text for Twelve Testing
The result of the input values the closeness 999999999 and the Division of the input 3 is:
Cluster 1
comprises:-Cluster 2 comprises:budi memasak,budi memancing,ani memasak,ikan berenang,bola dikaki budi
Cluster 3 comprises: adik bermain bola
Not included in cluster: andi sedang bekerja Testing 13
The thirteenth trial took files from coba.txt contains: budi memasak,budi memancing,ani memasak,ikan berenang,andi sedang bekerja,adik bermain bola,bola dikaki budi
Illustration 5.30: Thirteenth Text for Thirteenth Testing
The result of the input values the closeness 777777777 and the Division of the input 3 is:
Cluster comprises:budi memasak,budi memancing,ani memasak,ikan
berenang,bola dikaki budi
Cluster 1 comprises: adik bermain bola Cluster 2 comprises:
Cluster 3 comprises:
Not included in cluster: andi sedang bekerja
Testing 14
Illustration 5.32: Fourthteen Text for Fourthteen Testing
The result of the input values the closeness 777777777 and the Division of the input 3 is:
Cluster 1
comprises:-Cluster 2 comprises: budi memasak,budi memancing,ani memasak,ikan berenang,bola dikaki budi
Cluster 3 comprises: adik bermain bola Not included in cluster: andi sedang bekerja
Testing 15
The fifteenth trial took files from coba.txt contains: budi memasak,budi memancing,ani memasak,ikan berenang,andi sedang bekerja,adik bermain bola,bola dikaki budi
Illustration 5.34: Fifthteenth Text for Fifthteenth Testing
The result of the input values the closeness 55555555 and the Division of the input 3 is:
Cluster 1 comprises:bola dikaki budi Cluster 2 comprises: adik bermain bola Cluster 3
comprises:-Not included in cluster: budi memasak,budi memancing,ani memasak,ikan