SlideShare a Scribd company logo
Experimental Results:
 Execution time
Time is defined as the fraction of relevant instances that are retrieved. In other words
it is said as the number of correctly predicted on better execution time .the time is carried
out using equation 4.3.
TIME=TP/TP+FN ……………….. (4.3)
 Memory :
Memory is defined as the number of correctly predicted on the better instances
divided by the total number of instances present in dataset and the memory is
calculated using equation 4.4.
MEMORY=TP+TN/TP+TN+FP+FN ……………(4.4)
Screenshot:
AlgorithmName Execution Time
FuzzyCmeansSA 2.098129553
KMeansClustering 22.37031143
The comparisonratiois measuredusingthe execution time;the fuzzycmeansandK-means
clustering.the K–meansperformsbetterexecutiontime.
AlgorithmName Memory
FuzzyCmeansSA 27.55
KMeansClustering 65.742966
The comparisonratiois measuredusingthe memory;the fuzzycmeansandK-meansclustering.the
K–meansperformsbettermemory.
Coding:
NLP_Process.java
/*
* To change thistemplate,choose Tools|Templates
* and openthe template inthe editor.
*/
package conceptdrivenclustering;
importCom.commonfiles.db_conn;
importedu.stanford.nlp.ling.HasWord;
importedu.stanford.nlp.ling.Sentence;
importedu.stanford.nlp.ling.TaggedWord;
importedu.stanford.nlp.tagger.maxent.MaxentTagger;
importjava.io.StringReader;
importjava.sql.ResultSet;
importjava.sql.*;
importjava.util.ArrayList;
importjava.util.List;
importjava.util.Vector;
importjava.util.logging.Level;
importjava.util.logging.Logger;
/**
*
* @author admini
*/
publicclassNLP_Process {
publicstaticvoidmain(Stringargs[]) {
try {
db_conndb = newdb_conn();
db.st.executeUpdate("truncate table tbl_Nlpprocess");
Vectorvstopword=newVector();
Stringsel1= "select*from stopwords";
ResultSetrset1= db.stat1.executeQuery(sel1);
while (rset1.next()) {
vstopword.add(rset1.getString(2));
}
Vectorvfilename =newVector();
Vectorvfilecontent=newVector();
Vectorvcomment= newVector();
//Vectorvdomain= newVector();
Stringsel_qry= "selectfilename,filecontentfromtbl_stopwordremoval;";
ResultSetrset=db.st.executeQuery(sel_qry);
while (rset.next()) {
Stringcomm = "";
Stringtitle = rset.getString(1);
vfilename.add(title);
Stringfilecontent=rset.getString(2);
// Stringdomain= rset.getString(3);
// vdomain.add(domain);
Stringcommentsarr[] =filecontent.split("");
for (intk= 0; k < commentsarr.length;k++) {
Stringword = commentsarr[k];
// out.println(word);
booleanflag= false;
for (intx = 0; x < vstopword.size();x++) {
if (word.trim().equalsIgnoreCase(vstopword.get(x).toString().trim())) {
flag= true;
}
}
if (flag== true) {
} else {
MaxentTaggertagger= new MaxentTagger("D:/left3words-wsj-0-18.tagger");
@SuppressWarnings("unchecked")
StringstringToBeParsed=word;
StringReaderreader=newStringReader(stringToBeParsed);
List<List<HasWord>>sentences=tagger.tokenizeText(reader); //new
BufferedReader(new FileReader("testdata.txt")));
for(List<HasWord>sentence :sentences) {
ArrayList<TaggedWord>tSentence=tagger.tagSentence(sentence);
Stringstr = Sentence.listToString(tSentence,false);
//System.out.println(str);
Stringstr1[] = str.split("");
for (inti = 0; i < str1.length;i++) {
// System.out.println("------"+ str1[i].toString());
if (str1[i].toString().contains("/NN")) {
comm = comm+ word+ " ";
}//jj //jjr
if (str1[i].toString().contains("/JJ")) {
comm = comm+ word+ " ";
}
if (str1[i].toString().contains("/JJR")) {
comm = comm+ word+ " ";
}
if (str1[i].toString().contains("/NNP")) {
comm = comm+ word+ " ";
}
}
}
}
}
Stringinsert_qry= "insertintotbl_Nlpprocessvalues('"+title + "','" + filecontent+"','" +
comm + "')";
//System.out.println("---"+insert_qry);
db.stat4.executeUpdate(insert_qry);
vcomment.add(comm);
}
} catch (Exceptionex) {
Logger.getLogger(NLP_Process.class.getName()).log(Level.SEVERE,null,ex);
}
}
}
FuzzyCmeansClustering.java
/*
* To change thistemplate,choose Tools|Templates
* and openthe template inthe editor.
*/
package clustering;
importCom.commonfiles.db_conn;
importCom.commonfiles.tableview1;
importjava.sql.*;
importjava.util.*;
/**
*
* @author Lap1
*/
publicclassFuzzyCmeansandSimulatedannealing{
publicstaticvoidmain(Stringargs[])
{
db_conndb=newdb_conn();
try {
double starttime1= System.nanoTime();
Runtime run= Runtime.getRuntime();
double free =run.freeMemory();
double total = run.totalMemory();
double max = run.maxMemory();
double used=total - free;
db.st.executeUpdate("truncate table tbl_cluster_fcmsa");
intcount = 0;
Stringsel_qry_sum= "selectcontents,count(wc) fromtbl_weight";
ResultSetrset22= db.st1.executeQuery(sel_qry_sum);
while (rset22.next()){
count = Integer.parseInt(rset22.getString(2));
}
intheat=5;
intcool=5;
intfmemberfun=0;
intmax1 = 0;
intmin = 0;
Vectorvc = newVector();
Stringsel_qry= "selectcontents,Max(wc) fromtbl_weight orderbywc";
System.out.println(sel_qry);
ResultSetrset1= db.st2.executeQuery(sel_qry);
while (rset1.next()){
max1 = Integer.parseInt(rset1.getString(2));
}
Stringsel_qry1= "selectcontents,Min(wc) fromtbl_weightorderbywc";
ResultSetrset2= db.st3.executeQuery(sel_qry1);
while (rset2.next()){
min = Integer.parseInt(rset2.getString(2));
}
//Mean-Max Membership
intfcenter= max1/2 + min/ 2 ;
System.out.println("------FuzzyCenter-------"+fcenter);
Stringsel_qry2= "select*from tbl_weightwhere wc>='" + (fcenter+heat) +"'
orderby wc";
System.out.println(sel_qry2);
ResultSetrset3= db.st3.executeQuery(sel_qry2);
while (rset3.next()){
String tags= rset3.getString(1);
tags = tags.replace("'","");
tags = tags.replace(",","");
String contents=rset3.getString(2);
//disease =disease.replace("'","");
//disease =disease.replace(",","");
String insert_Qry= "insertintotbl_cluster_fcmsavalues('"+tags + "','" +
contents+ "','" + rset3.getString(3) +"','" + rset3.getString(4) +"', '2' )";
System.out.println(insert_Qry);
db.sta.executeUpdate(insert_Qry);
}
Stringsel_qry4= "select*from tbl_weightwhere wc<='" + (fcenter+heat) + "'
orderby wc";
System.out.println(sel_qry4);
ResultSetrset5= db.st2.executeQuery(sel_qry4);
while (rset5.next()){
String tags= rset5.getString(1);
tags = tags.replace("'","");
tags = tags.replace(",","");
String contents=rset5.getString(2);
//disease =disease.replace("'","");
//disease =disease.replace(",","");
String insert_Qry= "insertintotbl_cluster_fcmsavalues('"+tags + "','" +
contents+ "','" + rset5.getString(3) +"','" + rset5.getString(4) +"','1' )";
System.out.println(insert_Qry);
db.stat4.executeUpdate(insert_Qry);
}
Runtime run1= Runtime.getRuntime();
double free1= run1.freeMemory();
double total1= run1.totalMemory();
double used1= total1- free1;
double total_exememrory=used1- used;
floatumemory= (float) total_exememrory/1024/10;
System.out.println("-UsedMemory--"+umemory);
double Endtime =System.nanoTime();
double ExeTime =(Endtime - starttime1) /60 / 60/10;
System.out.println("Total ExecutionTime "+ExeTime/10000);
Stringinsert_performence="insertintotbl_performence_fcmvalues( 'Fuzzy CmeansSA ',
'ExecutionTime','"+Math.abs(ExeTime )/10000+"') ";
db.st.executeUpdate(insert_performence);
Stringinsert_performence1="insertintotbl_performence_fcmvalues( 'FuzzyCmeansSA ',
'Memory', '"+Math.abs(umemory)+"') ";
db.st2.executeUpdate(insert_performence1);
tableview1tv=newtableview1();
tv.table("select*fromtbl_cluster_fcmsa","FuzzyCmeansClusterandSA");
} catch (Exceptionexpp) {
expp.printStackTrace();
}
}
}
Kmeans_Clustering.java
/*
* To change thistemplate,choose Tools|Templates
* and openthe template inthe editor.
*/
package clustering;
importCom.commonfiles.db_conn;
importCom.commonfiles.tableview1;
importjava.sql.*;
/**
*
* @author Lap1
*/
publicclassClustering{
publicstaticvoidmain(Stringargs[])
{
db_conndb=newdb_conn();
try{
double starttime1= System.nanoTime();
Runtime run= Runtime.getRuntime();
double free =run.freeMemory();
double total = run.totalMemory();
double maxmem=run.maxMemory();
double used=total - free;
ResultSetrset=db.sta1.executeQuery("select*fromtbl_weight");
while(rset.next())
{
Stringfilename=rset.getString(1);
Stringfilecontents=rset.getString(2);
Stringtags=rset.getString(3);
intwc=Integer.parseInt(rset.getString(4));
}
intmax=0;
Stringsel_max="Selectmax(wc) fromtbl_weight";
ResultSetrset1=db.stat4.executeQuery(sel_max);
while(rset1.next())
{
max=Integer.parseInt(rset1.getString(1));
}
intnoofcluster=4;
intstart=0;
intend=max/4;
for(inti=0;i<noofcluster;i++)
{
Stringsel_qry="select*fromtbl_weightwhere wc>"+start+"andwc<="+end+"";
Thread.sleep(2000);
tableview1tv=newtableview1();
tv.table(sel_qry,"Cluster---"+(i+1) );
start=end;
end=start+end;
}
Runtime run1= Runtime.getRuntime();
double free1= run1.freeMemory();
double total1= run1.totalMemory();
double used1= total1- free1;
double total_exememrory=used1- used;
floatumemory= (float) total_exememrory/1024/10;
System.out.println("-UsedMemory--"+umemory);
double Endtime =System.nanoTime();
double ExeTime =(Endtime - starttime1) /60 / 60/10;
System.out.println("Total ExecutionTime "+ExeTime/10000);
Stringinsert_performence="insertintotbl_performence_fcmvalues( 'KMeansClustering ',
'ExecutionTime','"+Math.abs(ExeTime )/10000+"') ";
db.st.executeUpdate(insert_performence);
Stringinsert_performence1="insertintotbl_performence_fcmvalues( 'KMeansClustering
', 'Memory', '"+Math.abs(umemory)+"') ";
db.st2.executeUpdate(insert_performence1);
}catch(Exceptionexpp)
{
expp.printStackTrace();
}
}
}

More Related Content

What's hot

Data Analytics and Simulation in Parallel with MATLAB*
Data Analytics and Simulation in Parallel with MATLAB*Data Analytics and Simulation in Parallel with MATLAB*
Data Analytics and Simulation in Parallel with MATLAB*
Intel® Software
 
Parallel Processing with IPython
Parallel Processing with IPythonParallel Processing with IPython
Parallel Processing with IPython
Enthought, Inc.
 
4 dynamic memory allocation
4 dynamic memory allocation4 dynamic memory allocation
4 dynamic memory allocation
Frijo Francis
 
Smarter Scheduling
Smarter SchedulingSmarter Scheduling
Smarter Scheduling
David Evans
 
~Ns2~
~Ns2~~Ns2~
Router Queue Simulation in C++ in MMNN and MM1 conditions
Router Queue Simulation in C++ in MMNN and MM1 conditionsRouter Queue Simulation in C++ in MMNN and MM1 conditions
Router Queue Simulation in C++ in MMNN and MM1 conditions
Morteza Mahdilar
 
Memory allocation in c
Memory allocation in cMemory allocation in c
Memory allocation in c
Prabhu Govind
 
Stop Guessing and Start Measuring - Benchmarking Practice (Poly Version)
 Stop Guessing and Start Measuring - Benchmarking Practice (Poly Version) Stop Guessing and Start Measuring - Benchmarking Practice (Poly Version)
Stop Guessing and Start Measuring - Benchmarking Practice (Poly Version)
Tobias Pfeiffer
 
2Bytesprog2 course_2014_c8_units
2Bytesprog2 course_2014_c8_units2Bytesprog2 course_2014_c8_units
2Bytesprog2 course_2014_c8_units
kinan keshkeh
 
How fast is it really? Benchmarking in Practice (Ruby Version)
How fast is it really? Benchmarking in Practice (Ruby Version)How fast is it really? Benchmarking in Practice (Ruby Version)
How fast is it really? Benchmarking in Practice (Ruby Version)
Tobias Pfeiffer
 
Multirate sim
Multirate simMultirate sim
Multirate sim
Alim Sheikh
 
Introduction to Deep Learning, Keras, and Tensorflow
Introduction to Deep Learning, Keras, and TensorflowIntroduction to Deep Learning, Keras, and Tensorflow
Introduction to Deep Learning, Keras, and Tensorflow
Oswald Campesato
 
Working with NS2
Working with NS2Working with NS2
Working with NS2
chanchal214
 
Task allocation and scheduling inmultiprocessors
Task allocation and scheduling inmultiprocessorsTask allocation and scheduling inmultiprocessors
Task allocation and scheduling inmultiprocessors
Don William
 
H2 o berkeleydltf
H2 o berkeleydltfH2 o berkeleydltf
H2 o berkeleydltf
Oswald Campesato
 
Dynamic memory Allocation in c language
Dynamic memory Allocation in c languageDynamic memory Allocation in c language
Dynamic memory Allocation in c language
kiran Patel
 
Evaluation of computer performance
Evaluation of computer performanceEvaluation of computer performance
Evaluation of computer performance
Prasenjit Dey
 
Introduction to TensorFlow 2 and Keras
Introduction to TensorFlow 2 and KerasIntroduction to TensorFlow 2 and Keras
Introduction to TensorFlow 2 and Keras
Oswald Campesato
 
Redux Thunk
Redux ThunkRedux Thunk
Redux Thunk
ASIMYILDIZ
 
Dynamic Memory allocation
Dynamic Memory allocationDynamic Memory allocation
Dynamic Memory allocation
Grishma Rajput
 

What's hot (20)

Data Analytics and Simulation in Parallel with MATLAB*
Data Analytics and Simulation in Parallel with MATLAB*Data Analytics and Simulation in Parallel with MATLAB*
Data Analytics and Simulation in Parallel with MATLAB*
 
Parallel Processing with IPython
Parallel Processing with IPythonParallel Processing with IPython
Parallel Processing with IPython
 
4 dynamic memory allocation
4 dynamic memory allocation4 dynamic memory allocation
4 dynamic memory allocation
 
Smarter Scheduling
Smarter SchedulingSmarter Scheduling
Smarter Scheduling
 
~Ns2~
~Ns2~~Ns2~
~Ns2~
 
Router Queue Simulation in C++ in MMNN and MM1 conditions
Router Queue Simulation in C++ in MMNN and MM1 conditionsRouter Queue Simulation in C++ in MMNN and MM1 conditions
Router Queue Simulation in C++ in MMNN and MM1 conditions
 
Memory allocation in c
Memory allocation in cMemory allocation in c
Memory allocation in c
 
Stop Guessing and Start Measuring - Benchmarking Practice (Poly Version)
 Stop Guessing and Start Measuring - Benchmarking Practice (Poly Version) Stop Guessing and Start Measuring - Benchmarking Practice (Poly Version)
Stop Guessing and Start Measuring - Benchmarking Practice (Poly Version)
 
2Bytesprog2 course_2014_c8_units
2Bytesprog2 course_2014_c8_units2Bytesprog2 course_2014_c8_units
2Bytesprog2 course_2014_c8_units
 
How fast is it really? Benchmarking in Practice (Ruby Version)
How fast is it really? Benchmarking in Practice (Ruby Version)How fast is it really? Benchmarking in Practice (Ruby Version)
How fast is it really? Benchmarking in Practice (Ruby Version)
 
Multirate sim
Multirate simMultirate sim
Multirate sim
 
Introduction to Deep Learning, Keras, and Tensorflow
Introduction to Deep Learning, Keras, and TensorflowIntroduction to Deep Learning, Keras, and Tensorflow
Introduction to Deep Learning, Keras, and Tensorflow
 
Working with NS2
Working with NS2Working with NS2
Working with NS2
 
Task allocation and scheduling inmultiprocessors
Task allocation and scheduling inmultiprocessorsTask allocation and scheduling inmultiprocessors
Task allocation and scheduling inmultiprocessors
 
H2 o berkeleydltf
H2 o berkeleydltfH2 o berkeleydltf
H2 o berkeleydltf
 
Dynamic memory Allocation in c language
Dynamic memory Allocation in c languageDynamic memory Allocation in c language
Dynamic memory Allocation in c language
 
Evaluation of computer performance
Evaluation of computer performanceEvaluation of computer performance
Evaluation of computer performance
 
Introduction to TensorFlow 2 and Keras
Introduction to TensorFlow 2 and KerasIntroduction to TensorFlow 2 and Keras
Introduction to TensorFlow 2 and Keras
 
Redux Thunk
Redux ThunkRedux Thunk
Redux Thunk
 
Dynamic Memory allocation
Dynamic Memory allocationDynamic Memory allocation
Dynamic Memory allocation
 

Similar to Result and screen shots

Writing Faster Python 3
Writing Faster Python 3Writing Faster Python 3
Writing Faster Python 3
Sebastian Witowski
 
Keras and TensorFlow
Keras and TensorFlowKeras and TensorFlow
Keras and TensorFlow
NopphawanTamkuan
 
Microkernel Development
Microkernel DevelopmentMicrokernel Development
Microkernel Development
Rodrigo Almeida
 
From Tensorflow Graph to Tensorflow Eager
From Tensorflow Graph to Tensorflow EagerFrom Tensorflow Graph to Tensorflow Eager
From Tensorflow Graph to Tensorflow Eager
Guy Hadash
 
Apache Flink Training: DataStream API Part 1 Basic
 Apache Flink Training: DataStream API Part 1 Basic Apache Flink Training: DataStream API Part 1 Basic
Apache Flink Training: DataStream API Part 1 Basic
Flink Forward
 
An eternal question of timing
An eternal question of timingAn eternal question of timing
An eternal question of timing
PVS-Studio
 
Parallel Programming With Dot Net
Parallel Programming With Dot NetParallel Programming With Dot Net
Parallel Programming With Dot Net
Neeraj Kaushik
 
Anirudh Koul. 30 Golden Rules of Deep Learning Performance
Anirudh Koul. 30 Golden Rules of Deep Learning PerformanceAnirudh Koul. 30 Golden Rules of Deep Learning Performance
Anirudh Koul. 30 Golden Rules of Deep Learning Performance
Lviv Startup Club
 
Program Assignment Process ManagementObjective This program a.docx
Program Assignment  Process ManagementObjective This program a.docxProgram Assignment  Process ManagementObjective This program a.docx
Program Assignment Process ManagementObjective This program a.docx
wkyra78
 
Performance analysis and randamized agoritham
Performance analysis and randamized agorithamPerformance analysis and randamized agoritham
Performance analysis and randamized agoritham
lilyMalar1
 
CPP Homework Help
CPP Homework HelpCPP Homework Help
CPP Homework Help
C++ Homework Help
 
Introduction to MPI
Introduction to MPIIntroduction to MPI
Introduction to MPI
yaman dua
 
Node.js System: The Landing
Node.js System: The LandingNode.js System: The Landing
Node.js System: The Landing
Haci Murat Yaman
 
OPM Recipe designer notes
OPM Recipe designer notesOPM Recipe designer notes
OPM Recipe designer notes
ted-xu
 
Writing a TSDB from scratch_ performance optimizations.pdf
Writing a TSDB from scratch_ performance optimizations.pdfWriting a TSDB from scratch_ performance optimizations.pdf
Writing a TSDB from scratch_ performance optimizations.pdf
RomanKhavronenko
 
week3_srcDoWhileLoopFactorial.javaweek3_srcDoWhileLoopFactoria.docx
week3_srcDoWhileLoopFactorial.javaweek3_srcDoWhileLoopFactoria.docxweek3_srcDoWhileLoopFactorial.javaweek3_srcDoWhileLoopFactoria.docx
week3_srcDoWhileLoopFactorial.javaweek3_srcDoWhileLoopFactoria.docx
alanfhall8953
 
Inference accelerators
Inference acceleratorsInference accelerators
Inference accelerators
DarshanG13
 
#define ENABLE_COMMANDER#define ENABLE_REPORTER#include c.docx
#define ENABLE_COMMANDER#define ENABLE_REPORTER#include c.docx#define ENABLE_COMMANDER#define ENABLE_REPORTER#include c.docx
#define ENABLE_COMMANDER#define ENABLE_REPORTER#include c.docx
katherncarlyle
 
A peek on numerical programming in perl and python e christopher dyken 2005
A peek on numerical programming in perl and python  e christopher dyken  2005A peek on numerical programming in perl and python  e christopher dyken  2005
A peek on numerical programming in perl and python e christopher dyken 2005
Jules Krdenas
 
Exploitation of counter overflows in the Linux kernel
Exploitation of counter overflows in the Linux kernelExploitation of counter overflows in the Linux kernel
Exploitation of counter overflows in the Linux kernel
Vitaly Nikolenko
 

Similar to Result and screen shots (20)

Writing Faster Python 3
Writing Faster Python 3Writing Faster Python 3
Writing Faster Python 3
 
Keras and TensorFlow
Keras and TensorFlowKeras and TensorFlow
Keras and TensorFlow
 
Microkernel Development
Microkernel DevelopmentMicrokernel Development
Microkernel Development
 
From Tensorflow Graph to Tensorflow Eager
From Tensorflow Graph to Tensorflow EagerFrom Tensorflow Graph to Tensorflow Eager
From Tensorflow Graph to Tensorflow Eager
 
Apache Flink Training: DataStream API Part 1 Basic
 Apache Flink Training: DataStream API Part 1 Basic Apache Flink Training: DataStream API Part 1 Basic
Apache Flink Training: DataStream API Part 1 Basic
 
An eternal question of timing
An eternal question of timingAn eternal question of timing
An eternal question of timing
 
Parallel Programming With Dot Net
Parallel Programming With Dot NetParallel Programming With Dot Net
Parallel Programming With Dot Net
 
Anirudh Koul. 30 Golden Rules of Deep Learning Performance
Anirudh Koul. 30 Golden Rules of Deep Learning PerformanceAnirudh Koul. 30 Golden Rules of Deep Learning Performance
Anirudh Koul. 30 Golden Rules of Deep Learning Performance
 
Program Assignment Process ManagementObjective This program a.docx
Program Assignment  Process ManagementObjective This program a.docxProgram Assignment  Process ManagementObjective This program a.docx
Program Assignment Process ManagementObjective This program a.docx
 
Performance analysis and randamized agoritham
Performance analysis and randamized agorithamPerformance analysis and randamized agoritham
Performance analysis and randamized agoritham
 
CPP Homework Help
CPP Homework HelpCPP Homework Help
CPP Homework Help
 
Introduction to MPI
Introduction to MPIIntroduction to MPI
Introduction to MPI
 
Node.js System: The Landing
Node.js System: The LandingNode.js System: The Landing
Node.js System: The Landing
 
OPM Recipe designer notes
OPM Recipe designer notesOPM Recipe designer notes
OPM Recipe designer notes
 
Writing a TSDB from scratch_ performance optimizations.pdf
Writing a TSDB from scratch_ performance optimizations.pdfWriting a TSDB from scratch_ performance optimizations.pdf
Writing a TSDB from scratch_ performance optimizations.pdf
 
week3_srcDoWhileLoopFactorial.javaweek3_srcDoWhileLoopFactoria.docx
week3_srcDoWhileLoopFactorial.javaweek3_srcDoWhileLoopFactoria.docxweek3_srcDoWhileLoopFactorial.javaweek3_srcDoWhileLoopFactoria.docx
week3_srcDoWhileLoopFactorial.javaweek3_srcDoWhileLoopFactoria.docx
 
Inference accelerators
Inference acceleratorsInference accelerators
Inference accelerators
 
#define ENABLE_COMMANDER#define ENABLE_REPORTER#include c.docx
#define ENABLE_COMMANDER#define ENABLE_REPORTER#include c.docx#define ENABLE_COMMANDER#define ENABLE_REPORTER#include c.docx
#define ENABLE_COMMANDER#define ENABLE_REPORTER#include c.docx
 
A peek on numerical programming in perl and python e christopher dyken 2005
A peek on numerical programming in perl and python  e christopher dyken  2005A peek on numerical programming in perl and python  e christopher dyken  2005
A peek on numerical programming in perl and python e christopher dyken 2005
 
Exploitation of counter overflows in the Linux kernel
Exploitation of counter overflows in the Linux kernelExploitation of counter overflows in the Linux kernel
Exploitation of counter overflows in the Linux kernel
 

Recently uploaded

STREETONOMICS: Exploring the Uncharted Territories of Informal Markets throug...
STREETONOMICS: Exploring the Uncharted Territories of Informal Markets throug...STREETONOMICS: Exploring the Uncharted Territories of Informal Markets throug...
STREETONOMICS: Exploring the Uncharted Territories of Informal Markets throug...
sameer shah
 
一比一原版(IC毕业证)帝国理工大学毕业证如何办理
一比一原版(IC毕业证)帝国理工大学毕业证如何办理一比一原版(IC毕业证)帝国理工大学毕业证如何办理
一比一原版(IC毕业证)帝国理工大学毕业证如何办理
conose1
 
BONKMILLON Unleashes Its Bonkers Potential on Solana.pdf
BONKMILLON Unleashes Its Bonkers Potential on Solana.pdfBONKMILLON Unleashes Its Bonkers Potential on Solana.pdf
BONKMILLON Unleashes Its Bonkers Potential on Solana.pdf
coingabbar
 
一比一原版(UCSB毕业证)圣芭芭拉分校毕业证如何办理
一比一原版(UCSB毕业证)圣芭芭拉分校毕业证如何办理一比一原版(UCSB毕业证)圣芭芭拉分校毕业证如何办理
一比一原版(UCSB毕业证)圣芭芭拉分校毕业证如何办理
bbeucd
 
SWAIAP Fraud Risk Mitigation Prof Oyedokun.pptx
SWAIAP Fraud Risk Mitigation   Prof Oyedokun.pptxSWAIAP Fraud Risk Mitigation   Prof Oyedokun.pptx
SWAIAP Fraud Risk Mitigation Prof Oyedokun.pptx
Godwin Emmanuel Oyedokun MBA MSc PhD FCA FCTI FCNA CFE FFAR
 
Earn a passive income with prosocial investing
Earn a passive income with prosocial investingEarn a passive income with prosocial investing
Earn a passive income with prosocial investing
Colin R. Turner
 
Tumelo-deep-dive-into-pass-through-voting-Feb23 (1).pdf
Tumelo-deep-dive-into-pass-through-voting-Feb23 (1).pdfTumelo-deep-dive-into-pass-through-voting-Feb23 (1).pdf
Tumelo-deep-dive-into-pass-through-voting-Feb23 (1).pdf
Henry Tapper
 
5 Tips for Creating Standard Financial Reports
5 Tips for Creating Standard Financial Reports5 Tips for Creating Standard Financial Reports
5 Tips for Creating Standard Financial Reports
EasyReports
 
Tdasx: Unveiling the Trillion-Dollar Potential of Bitcoin DeFi
Tdasx: Unveiling the Trillion-Dollar Potential of Bitcoin DeFiTdasx: Unveiling the Trillion-Dollar Potential of Bitcoin DeFi
Tdasx: Unveiling the Trillion-Dollar Potential of Bitcoin DeFi
nimaruinazawa258
 
在线办理(GU毕业证书)美国贡萨加大学毕业证学历证书一模一样
在线办理(GU毕业证书)美国贡萨加大学毕业证学历证书一模一样在线办理(GU毕业证书)美国贡萨加大学毕业证学历证书一模一样
在线办理(GU毕业证书)美国贡萨加大学毕业证学历证书一模一样
5spllj1l
 
What's a worker’s market? Job quality and labour market tightness
What's a worker’s market? Job quality and labour market tightnessWhat's a worker’s market? Job quality and labour market tightness
What's a worker’s market? Job quality and labour market tightness
Labour Market Information Council | Conseil de l’information sur le marché du travail
 
Detailed power point presentation on compound interest and how it is calculated
Detailed power point presentation on compound interest  and how it is calculatedDetailed power point presentation on compound interest  and how it is calculated
Detailed power point presentation on compound interest and how it is calculated
KishanChaudhary23
 
Tdasx: In-Depth Analysis of Cryptocurrency Giveaway Scams and Security Strate...
Tdasx: In-Depth Analysis of Cryptocurrency Giveaway Scams and Security Strate...Tdasx: In-Depth Analysis of Cryptocurrency Giveaway Scams and Security Strate...
Tdasx: In-Depth Analysis of Cryptocurrency Giveaway Scams and Security Strate...
nimaruinazawa258
 
falcon-invoice-discounting-a-premier-investment-platform-for-superior-returns...
falcon-invoice-discounting-a-premier-investment-platform-for-superior-returns...falcon-invoice-discounting-a-premier-investment-platform-for-superior-returns...
falcon-invoice-discounting-a-premier-investment-platform-for-superior-returns...
Falcon Invoice Discounting
 
Using Online job postings and survey data to understand labour market trends
Using Online job postings and survey data to understand labour market trendsUsing Online job postings and survey data to understand labour market trends
Using Online job postings and survey data to understand labour market trends
Labour Market Information Council | Conseil de l’information sur le marché du travail
 
falcon-invoice-discounting-a-strategic-approach-to-optimize-investments
falcon-invoice-discounting-a-strategic-approach-to-optimize-investmentsfalcon-invoice-discounting-a-strategic-approach-to-optimize-investments
falcon-invoice-discounting-a-strategic-approach-to-optimize-investments
Falcon Invoice Discounting
 
一比一原版(UoB毕业证)伯明翰大学毕业证如何办理
一比一原版(UoB毕业证)伯明翰大学毕业证如何办理一比一原版(UoB毕业证)伯明翰大学毕业证如何办理
一比一原版(UoB毕业证)伯明翰大学毕业证如何办理
nexop1
 
FCCS Basic Accounts Outline and Hierarchy.pptx
FCCS Basic Accounts Outline and Hierarchy.pptxFCCS Basic Accounts Outline and Hierarchy.pptx
FCCS Basic Accounts Outline and Hierarchy.pptx
nalamynandan
 
Instant Issue Debit Cards
Instant Issue Debit CardsInstant Issue Debit Cards
Instant Issue Debit Cards
egoetzinger
 
Instant Issue Debit Cards - School Designs
Instant Issue Debit Cards - School DesignsInstant Issue Debit Cards - School Designs
Instant Issue Debit Cards - School Designs
egoetzinger
 

Recently uploaded (20)

STREETONOMICS: Exploring the Uncharted Territories of Informal Markets throug...
STREETONOMICS: Exploring the Uncharted Territories of Informal Markets throug...STREETONOMICS: Exploring the Uncharted Territories of Informal Markets throug...
STREETONOMICS: Exploring the Uncharted Territories of Informal Markets throug...
 
一比一原版(IC毕业证)帝国理工大学毕业证如何办理
一比一原版(IC毕业证)帝国理工大学毕业证如何办理一比一原版(IC毕业证)帝国理工大学毕业证如何办理
一比一原版(IC毕业证)帝国理工大学毕业证如何办理
 
BONKMILLON Unleashes Its Bonkers Potential on Solana.pdf
BONKMILLON Unleashes Its Bonkers Potential on Solana.pdfBONKMILLON Unleashes Its Bonkers Potential on Solana.pdf
BONKMILLON Unleashes Its Bonkers Potential on Solana.pdf
 
一比一原版(UCSB毕业证)圣芭芭拉分校毕业证如何办理
一比一原版(UCSB毕业证)圣芭芭拉分校毕业证如何办理一比一原版(UCSB毕业证)圣芭芭拉分校毕业证如何办理
一比一原版(UCSB毕业证)圣芭芭拉分校毕业证如何办理
 
SWAIAP Fraud Risk Mitigation Prof Oyedokun.pptx
SWAIAP Fraud Risk Mitigation   Prof Oyedokun.pptxSWAIAP Fraud Risk Mitigation   Prof Oyedokun.pptx
SWAIAP Fraud Risk Mitigation Prof Oyedokun.pptx
 
Earn a passive income with prosocial investing
Earn a passive income with prosocial investingEarn a passive income with prosocial investing
Earn a passive income with prosocial investing
 
Tumelo-deep-dive-into-pass-through-voting-Feb23 (1).pdf
Tumelo-deep-dive-into-pass-through-voting-Feb23 (1).pdfTumelo-deep-dive-into-pass-through-voting-Feb23 (1).pdf
Tumelo-deep-dive-into-pass-through-voting-Feb23 (1).pdf
 
5 Tips for Creating Standard Financial Reports
5 Tips for Creating Standard Financial Reports5 Tips for Creating Standard Financial Reports
5 Tips for Creating Standard Financial Reports
 
Tdasx: Unveiling the Trillion-Dollar Potential of Bitcoin DeFi
Tdasx: Unveiling the Trillion-Dollar Potential of Bitcoin DeFiTdasx: Unveiling the Trillion-Dollar Potential of Bitcoin DeFi
Tdasx: Unveiling the Trillion-Dollar Potential of Bitcoin DeFi
 
在线办理(GU毕业证书)美国贡萨加大学毕业证学历证书一模一样
在线办理(GU毕业证书)美国贡萨加大学毕业证学历证书一模一样在线办理(GU毕业证书)美国贡萨加大学毕业证学历证书一模一样
在线办理(GU毕业证书)美国贡萨加大学毕业证学历证书一模一样
 
What's a worker’s market? Job quality and labour market tightness
What's a worker’s market? Job quality and labour market tightnessWhat's a worker’s market? Job quality and labour market tightness
What's a worker’s market? Job quality and labour market tightness
 
Detailed power point presentation on compound interest and how it is calculated
Detailed power point presentation on compound interest  and how it is calculatedDetailed power point presentation on compound interest  and how it is calculated
Detailed power point presentation on compound interest and how it is calculated
 
Tdasx: In-Depth Analysis of Cryptocurrency Giveaway Scams and Security Strate...
Tdasx: In-Depth Analysis of Cryptocurrency Giveaway Scams and Security Strate...Tdasx: In-Depth Analysis of Cryptocurrency Giveaway Scams and Security Strate...
Tdasx: In-Depth Analysis of Cryptocurrency Giveaway Scams and Security Strate...
 
falcon-invoice-discounting-a-premier-investment-platform-for-superior-returns...
falcon-invoice-discounting-a-premier-investment-platform-for-superior-returns...falcon-invoice-discounting-a-premier-investment-platform-for-superior-returns...
falcon-invoice-discounting-a-premier-investment-platform-for-superior-returns...
 
Using Online job postings and survey data to understand labour market trends
Using Online job postings and survey data to understand labour market trendsUsing Online job postings and survey data to understand labour market trends
Using Online job postings and survey data to understand labour market trends
 
falcon-invoice-discounting-a-strategic-approach-to-optimize-investments
falcon-invoice-discounting-a-strategic-approach-to-optimize-investmentsfalcon-invoice-discounting-a-strategic-approach-to-optimize-investments
falcon-invoice-discounting-a-strategic-approach-to-optimize-investments
 
一比一原版(UoB毕业证)伯明翰大学毕业证如何办理
一比一原版(UoB毕业证)伯明翰大学毕业证如何办理一比一原版(UoB毕业证)伯明翰大学毕业证如何办理
一比一原版(UoB毕业证)伯明翰大学毕业证如何办理
 
FCCS Basic Accounts Outline and Hierarchy.pptx
FCCS Basic Accounts Outline and Hierarchy.pptxFCCS Basic Accounts Outline and Hierarchy.pptx
FCCS Basic Accounts Outline and Hierarchy.pptx
 
Instant Issue Debit Cards
Instant Issue Debit CardsInstant Issue Debit Cards
Instant Issue Debit Cards
 
Instant Issue Debit Cards - School Designs
Instant Issue Debit Cards - School DesignsInstant Issue Debit Cards - School Designs
Instant Issue Debit Cards - School Designs
 

Result and screen shots

  • 1. Experimental Results:  Execution time Time is defined as the fraction of relevant instances that are retrieved. In other words it is said as the number of correctly predicted on better execution time .the time is carried out using equation 4.3. TIME=TP/TP+FN ……………….. (4.3)  Memory : Memory is defined as the number of correctly predicted on the better instances divided by the total number of instances present in dataset and the memory is calculated using equation 4.4. MEMORY=TP+TN/TP+TN+FP+FN ……………(4.4)
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16. AlgorithmName Execution Time FuzzyCmeansSA 2.098129553 KMeansClustering 22.37031143 The comparisonratiois measuredusingthe execution time;the fuzzycmeansandK-means clustering.the K–meansperformsbetterexecutiontime.
  • 17. AlgorithmName Memory FuzzyCmeansSA 27.55 KMeansClustering 65.742966 The comparisonratiois measuredusingthe memory;the fuzzycmeansandK-meansclustering.the K–meansperformsbettermemory.
  • 18. Coding: NLP_Process.java /* * To change thistemplate,choose Tools|Templates * and openthe template inthe editor. */ package conceptdrivenclustering; importCom.commonfiles.db_conn; importedu.stanford.nlp.ling.HasWord; importedu.stanford.nlp.ling.Sentence; importedu.stanford.nlp.ling.TaggedWord; importedu.stanford.nlp.tagger.maxent.MaxentTagger; importjava.io.StringReader; importjava.sql.ResultSet; importjava.sql.*; importjava.util.ArrayList; importjava.util.List; importjava.util.Vector; importjava.util.logging.Level;
  • 19. importjava.util.logging.Logger; /** * * @author admini */ publicclassNLP_Process { publicstaticvoidmain(Stringargs[]) { try { db_conndb = newdb_conn(); db.st.executeUpdate("truncate table tbl_Nlpprocess"); Vectorvstopword=newVector(); Stringsel1= "select*from stopwords"; ResultSetrset1= db.stat1.executeQuery(sel1); while (rset1.next()) { vstopword.add(rset1.getString(2)); } Vectorvfilename =newVector(); Vectorvfilecontent=newVector(); Vectorvcomment= newVector();
  • 20. //Vectorvdomain= newVector(); Stringsel_qry= "selectfilename,filecontentfromtbl_stopwordremoval;"; ResultSetrset=db.st.executeQuery(sel_qry); while (rset.next()) { Stringcomm = ""; Stringtitle = rset.getString(1); vfilename.add(title); Stringfilecontent=rset.getString(2); // Stringdomain= rset.getString(3); // vdomain.add(domain); Stringcommentsarr[] =filecontent.split(""); for (intk= 0; k < commentsarr.length;k++) { Stringword = commentsarr[k]; // out.println(word); booleanflag= false; for (intx = 0; x < vstopword.size();x++) { if (word.trim().equalsIgnoreCase(vstopword.get(x).toString().trim())) { flag= true; }
  • 21. } if (flag== true) { } else { MaxentTaggertagger= new MaxentTagger("D:/left3words-wsj-0-18.tagger"); @SuppressWarnings("unchecked") StringstringToBeParsed=word; StringReaderreader=newStringReader(stringToBeParsed); List<List<HasWord>>sentences=tagger.tokenizeText(reader); //new BufferedReader(new FileReader("testdata.txt"))); for(List<HasWord>sentence :sentences) { ArrayList<TaggedWord>tSentence=tagger.tagSentence(sentence); Stringstr = Sentence.listToString(tSentence,false); //System.out.println(str); Stringstr1[] = str.split(""); for (inti = 0; i < str1.length;i++) { // System.out.println("------"+ str1[i].toString()); if (str1[i].toString().contains("/NN")) { comm = comm+ word+ " "; }//jj //jjr if (str1[i].toString().contains("/JJ")) {
  • 22. comm = comm+ word+ " "; } if (str1[i].toString().contains("/JJR")) { comm = comm+ word+ " "; } if (str1[i].toString().contains("/NNP")) { comm = comm+ word+ " "; } } } } } Stringinsert_qry= "insertintotbl_Nlpprocessvalues('"+title + "','" + filecontent+"','" + comm + "')"; //System.out.println("---"+insert_qry); db.stat4.executeUpdate(insert_qry); vcomment.add(comm); } } catch (Exceptionex) { Logger.getLogger(NLP_Process.class.getName()).log(Level.SEVERE,null,ex); } } }
  • 23. FuzzyCmeansClustering.java /* * To change thistemplate,choose Tools|Templates * and openthe template inthe editor. */ package clustering; importCom.commonfiles.db_conn; importCom.commonfiles.tableview1; importjava.sql.*; importjava.util.*; /** * * @author Lap1 */ publicclassFuzzyCmeansandSimulatedannealing{ publicstaticvoidmain(Stringargs[]) { db_conndb=newdb_conn();
  • 24. try { double starttime1= System.nanoTime(); Runtime run= Runtime.getRuntime(); double free =run.freeMemory(); double total = run.totalMemory(); double max = run.maxMemory(); double used=total - free; db.st.executeUpdate("truncate table tbl_cluster_fcmsa"); intcount = 0; Stringsel_qry_sum= "selectcontents,count(wc) fromtbl_weight"; ResultSetrset22= db.st1.executeQuery(sel_qry_sum); while (rset22.next()){ count = Integer.parseInt(rset22.getString(2)); } intheat=5;
  • 25. intcool=5; intfmemberfun=0; intmax1 = 0; intmin = 0; Vectorvc = newVector(); Stringsel_qry= "selectcontents,Max(wc) fromtbl_weight orderbywc"; System.out.println(sel_qry); ResultSetrset1= db.st2.executeQuery(sel_qry); while (rset1.next()){ max1 = Integer.parseInt(rset1.getString(2)); } Stringsel_qry1= "selectcontents,Min(wc) fromtbl_weightorderbywc"; ResultSetrset2= db.st3.executeQuery(sel_qry1); while (rset2.next()){ min = Integer.parseInt(rset2.getString(2)); }
  • 26. //Mean-Max Membership intfcenter= max1/2 + min/ 2 ; System.out.println("------FuzzyCenter-------"+fcenter); Stringsel_qry2= "select*from tbl_weightwhere wc>='" + (fcenter+heat) +"' orderby wc"; System.out.println(sel_qry2); ResultSetrset3= db.st3.executeQuery(sel_qry2); while (rset3.next()){ String tags= rset3.getString(1); tags = tags.replace("'",""); tags = tags.replace(",",""); String contents=rset3.getString(2); //disease =disease.replace("'",""); //disease =disease.replace(",",""); String insert_Qry= "insertintotbl_cluster_fcmsavalues('"+tags + "','" + contents+ "','" + rset3.getString(3) +"','" + rset3.getString(4) +"', '2' )"; System.out.println(insert_Qry); db.sta.executeUpdate(insert_Qry); } Stringsel_qry4= "select*from tbl_weightwhere wc<='" + (fcenter+heat) + "' orderby wc";
  • 27. System.out.println(sel_qry4); ResultSetrset5= db.st2.executeQuery(sel_qry4); while (rset5.next()){ String tags= rset5.getString(1); tags = tags.replace("'",""); tags = tags.replace(",",""); String contents=rset5.getString(2); //disease =disease.replace("'",""); //disease =disease.replace(",",""); String insert_Qry= "insertintotbl_cluster_fcmsavalues('"+tags + "','" + contents+ "','" + rset5.getString(3) +"','" + rset5.getString(4) +"','1' )"; System.out.println(insert_Qry); db.stat4.executeUpdate(insert_Qry); } Runtime run1= Runtime.getRuntime(); double free1= run1.freeMemory(); double total1= run1.totalMemory(); double used1= total1- free1;
  • 28. double total_exememrory=used1- used; floatumemory= (float) total_exememrory/1024/10; System.out.println("-UsedMemory--"+umemory); double Endtime =System.nanoTime(); double ExeTime =(Endtime - starttime1) /60 / 60/10; System.out.println("Total ExecutionTime "+ExeTime/10000); Stringinsert_performence="insertintotbl_performence_fcmvalues( 'Fuzzy CmeansSA ', 'ExecutionTime','"+Math.abs(ExeTime )/10000+"') "; db.st.executeUpdate(insert_performence); Stringinsert_performence1="insertintotbl_performence_fcmvalues( 'FuzzyCmeansSA ', 'Memory', '"+Math.abs(umemory)+"') ";
  • 29. db.st2.executeUpdate(insert_performence1); tableview1tv=newtableview1(); tv.table("select*fromtbl_cluster_fcmsa","FuzzyCmeansClusterandSA"); } catch (Exceptionexpp) { expp.printStackTrace(); } } } Kmeans_Clustering.java /* * To change thistemplate,choose Tools|Templates * and openthe template inthe editor. */ package clustering; importCom.commonfiles.db_conn; importCom.commonfiles.tableview1; importjava.sql.*; /** *
  • 30. * @author Lap1 */ publicclassClustering{ publicstaticvoidmain(Stringargs[]) { db_conndb=newdb_conn(); try{ double starttime1= System.nanoTime(); Runtime run= Runtime.getRuntime(); double free =run.freeMemory(); double total = run.totalMemory(); double maxmem=run.maxMemory(); double used=total - free; ResultSetrset=db.sta1.executeQuery("select*fromtbl_weight"); while(rset.next()) { Stringfilename=rset.getString(1); Stringfilecontents=rset.getString(2);
  • 32. Stringsel_qry="select*fromtbl_weightwhere wc>"+start+"andwc<="+end+""; Thread.sleep(2000); tableview1tv=newtableview1(); tv.table(sel_qry,"Cluster---"+(i+1) ); start=end; end=start+end; } Runtime run1= Runtime.getRuntime(); double free1= run1.freeMemory(); double total1= run1.totalMemory(); double used1= total1- free1; double total_exememrory=used1- used;
  • 33. floatumemory= (float) total_exememrory/1024/10; System.out.println("-UsedMemory--"+umemory); double Endtime =System.nanoTime(); double ExeTime =(Endtime - starttime1) /60 / 60/10; System.out.println("Total ExecutionTime "+ExeTime/10000); Stringinsert_performence="insertintotbl_performence_fcmvalues( 'KMeansClustering ', 'ExecutionTime','"+Math.abs(ExeTime )/10000+"') "; db.st.executeUpdate(insert_performence); Stringinsert_performence1="insertintotbl_performence_fcmvalues( 'KMeansClustering ', 'Memory', '"+Math.abs(umemory)+"') "; db.st2.executeUpdate(insert_performence1); }catch(Exceptionexpp) { expp.printStackTrace(); }
  • 34. } }