SlideShare ist ein Scribd-Unternehmen logo
1 von 8
Downloaden Sie, um offline zu lesen
Scientific Journal Impact Factor (SJIF): 1.711
International Journal of Modern Trends in Engineering
and Research
www.ijmter.com
@IJMTER-2014, All rights Reserved 153
e-ISSN: 2349-9745
p-ISSN: 2393-8161
Testing of Matrices Multiplication Methods on Different Processors
Jaymit Pandya1
, Jay Vala2
, Chetan Chudasama3
, Dhara Monaka4
1
Assistant Professor, IT Dept, GCET Engg College, jaymitpandya@gcet.ac.in
2
Assistant Professor, IT Dept, GCET Engg College, jayvala@gcet.ac.in
3
Assistant Professor, CE Dept, MBICT, chetanfriends30@gmail.com
4
Assistant Professor, BCA Dept, NMC
Abstract – There are many algorithms we found for matrices multiplication. Until now it has been
found that complexity of matrix multiplication is O(n3
). Though Further research found that this
complexity can be decreased. This paper focus on the algorithm and its complexity of matrices
multiplication methods.
Keywords- Matrices, multiplication, strassen, coppersmith and winograd
I. INTRODUCTION
The product of two matrices is one of the most basic operations in mathematics and computer science.
Here, we foucs on mainly three methods of matrices multiplication. 1) Conventional Method,
2)Strassen’s Mehtod and 3)Coppersmith and Winograd.
Until 1969, it was thought that complexity of matrices multiplication is of order n3
though some of
researchers was of opinion that it is of order n2
. Following Table 1 shows Reducing complexities
found as time passed.
Table 1. Complexity of Various Algorithms for Matrices Multiplication[9,10,11]
Name of Method Complexity
Conventional Method n3
Strassen n2.808
Pan Ѡ < 2.796
Bini Ѡ < 2.78
Scḧonhage Ѡ <2.548
Romani Ѡ <2.517
Coppersmith & Winograd Ѡ <2.496
Strassen’s New Method Ѡ <2.479
Coppersmith & Winograd Ѡ <2.376
From the above table it can be seen that tighter lower bound decreases. It can also be seen that it was
only up gradation of Strassen’s Method and Coppersmith & Winograd. In this paper, we have
considered only three methods. They are considered in a view that which methods gives better result
when general matrices multiplication is done. Of course, it can be said that competitors are only last
two methods but for providing base Conventional method is considered[12,14]
.
International Journal of Modern Trends in Engineering and Research (IJMTER)
Volume 02, Issue 01, [January - 2015] e-ISSN: 2349-9745, p-ISSN: 2393-8161
@IJMTER-2014, All rights Reserved 154
II. MATRICES MULTIPLICAITON METHODS
1. Conventional Method of Matrix Multiplication
If A is an n × m matrix and B is an m × p matrix,
Multiplication can be given by following formula[13]
.
Calculation of complexity is as follows.
Here is an algorithm for doing this, assuming that a, b, and c have been declared as square two-
dimensional arrays of integers, and n is the length of a row or column in the arrays[13]
:
for (int i = 0; i < n; i++)
{
for (int j = 0; j < n; j++)
{
c[i][j]= 0;
for (int k = 0; k < n; k++)
{
c[i][j] += a[i][k] * b[k][j];
}
}
}
Let's analyze the number of operations performed by this algorithm in terms of the matrix size n, and
use that analysis to come up with a big-O expression for the time complexity of the algorithm as a
whole[13]
.
First, recognize that since we have triply-nested for loops, each of which individually loops n times,
the total number of iterations of the outermost loop will be n, the total number of iterations of the
middle loop will be n * n = n2
, and the total number of iterations of the innermost loop will be n * n *
n = n3
.
Multiplication
The only multiplication appears in the innermost loop. Since this loop will iterate a total of n3 times,
we will perform exactly n3
multiplication operations.
Addition
There are two addition operations in the innermost loop: c[i][j] += a[i][k] * b[k][j] and k++. Each of
these will happen n3
times, giving us 2n3
additions generated by the innermost loop. The middle loop
International Journal of Modern Trends in Engineering and Research (IJMTER)
Volume 02, Issue 01, [January - 2015] e-ISSN: 2349-9745, p-ISSN: 2393-8161
@IJMTER-2014, All rights Reserved 155
has one addition operation (j++) which happens n2
times, since the middle loop iterates a total of n2
times.
The outermost loop has one addition operation as well (i++) which happens n times, since the
outermost loop iterates a total of n times.
Adding these up, we get an exact value for the number of addition operations:2n3
+ n2+ n
Assignment
The += operation in the innermost loop happens n3 times, since it's inside the loop. The k = 0
assignment happens only once for each complete execution of the innermost loop, so it executes only
n2 times. Similarly, the c[i][j] = 0 assignment, being within the middle loop, happens n2
times. The j
= 0 assignment happens only once for each complete execution of the middle loop, so it executes n
times. The i = 0 assignment happens only once, when the outermost loop first starts running. Adding
these up gives us an exact expression for the number of assignments:n3
+ 2n2
+ n + 1
Now, using the exact expressions above, let's come up with big-O expressions for the time complexity
of each kind of operation as a function of n. There are exactly n3
multiplications, so there are O(n3
)
multiplications.
There are exactly 2n3
+ n2
+ n additions, so, dropping all but the largest term and discarding its
coefficient, there are O(n3
) additions.
There are exactly n3
+ 2n2
+ n + 1 assignments, so, dropping all but the largest term and discarding its
coefficient, there are O(n3
) assignments.
O(n3
) multiplications + O(n3
) additions + O(n3
)assignments = O(n3
) overall time complexity[13]
.
2. Strassen’s Method for Matrix Multiplication
Strassen’s Algorithm for matrix multiplication is seen as improvement over conventional method.
Assuming that we have following matrices.
&
Calculations for resulting matrix can be done as follows.
International Journal of Modern Trends in Engineering and Research (IJMTER)
Volume 02, Issue 01, [January - 2015] e-ISSN: 2349-9745, p-ISSN: 2393-8161
@IJMTER-2014, All rights Reserved 156
Based on this, we can find out values for final matrix as follows.
Complexity
It is well known that complexity of Strassen’s method is of order 2.808, which is improvement over
conventional method. Even Second Version of Strassen’s method gave lower complexity of order 2.479[2,3,4]
.
This method is for 2*2 matrices. If matrices are of higher size than they are divided to 2*2 matrices using
block method and then result is computed.
3. Coppersmith & Winograd Method for Matrix Multiplication
The original algorithm is divided into two parts. Easy Version and Complicated Version. For the
sake of complete ness here we have shown snapshots of both.
Following Figure 1 Shows Original Easy version of coppersmith and winograd algorithm.
Figure 1: Easy Version of Coppersmith & Winograd Method[1]
International Journal of Modern Trends in Engineering and Research (IJMTER)
Volume 02, Issue 01, [January - 2015] e-ISSN: 2349-9745, p-ISSN: 2393-8161
@IJMTER-2014, All rights Reserved 157
Following Figure 2 Shows Original complex version of coppersmith and winograd algorithm.
Figure 2: Complex Version of Coppersmith & Winograd Method[1]
Complexity
Consider that this is just snapshot of original algorithm. Even if we take any of the two version, it
can be said that complexity will be of order 2.496[7,8]
. Though it has been improved to have
complexity of order 2.376[5,6]
. It can be said that it is lower than of the methods described above.
III. ANALSIS OF RESULTS WITH RESPECT TO TIME TAKEN ON DIFFERENT
HARDWARES
To analyze above three algorithm, we have taken matrices of following size. 2*2, 4*4, 6*6, 8*8,
10*10, 20*20, 40*40, 100*100, 500*500, 1000*1000…… upto 10000*10000.
Hardware (Processors) taking for these computations are Pentium P4, Dual Core, Core2Duo, i3, i5 &
i7.
Noting that, we have to divide matrix bigger than 2*2 are divided using block method.
Taking all into consideration, we have found that all processors do not show any fluctuations in time
taken for computation upto the size of 500*500 size.
But as size increases, time taken for computation increases slightly. But this time is in fractional
milliseconds, i.e. for 10000*10000 time taken is around 0.02. While for 8000*8000 it is similar. But
if fast processors like i5 or i7 are taken then time taken is less as compared to processors like P4.
IV. CONCLUSION
From above discussion, it can be said that if small matrices are there, then all the methods give
almost equal time. It should be noted that this is true for any processor used. If size of the matrix is
increased then it show very less time. From this it can be said that because of speed of processors
these computations are done so fast that actual difference of speed due to algorithm can’t be seen.
But it should also be noted that if these procedures are to be done repeatedly with bigger matrices
then use of methods like strassen and coppersmith & winograd can make difference.
REFERENCES
[1] Coppersmith and Winograd, 1987; D. Coppersmith, S. Winograd. Matrix Multiplication via Arithmetic Progressions.
[2] BILMES, J., ASANOVIC, K., CHIN, C.,ANDDEMMEL, J. 1997. Optimizing matrix multiply using PHiPAC:a
portable, high-performance, Ansi C coding methodology. In International Conference on Supercomput-ing.
[3] BLACKFORD, L. S., DEMMEL, J., DONGARRA, J., DUFF, I., HAMMARLING, S., HENRY, G., HEROUX,
M.,KAUFMAN, L., LUMSDAINE, A., PETITET, A., POZO, R., REMINGTON, K.,ANDWHALEY, R. C. 2002. An
updated set of basic linear algebra subprograms (BLAS).ACM Transaction in Mathemathical Soft-ware 28,2, 135–151.
International Journal of Modern Trends in Engineering and Research (IJMTER)
Volume 02, Issue 01, [January - 2015] e-ISSN: 2349-9745, p-ISSN: 2393-8161
@IJMTER-2014, All rights Reserved 158
[4] BODRATO, M. 2010. A Strassen-like matrix multiplication suited for squaring and higher power computa-tion.
InISSAC ’10: Proceedings of the 2010 international symposium on Symbolic and algebraic compu-tation. ACM, New
York, NY, USA. http://bodrato.it/papers/#ISSAC2010
[5]Aho, Ullman. he design and analysis of computer algorithms.
[6]N . Alon, A. Shpilka, and C. Umans. On sunflowers and matrix multiplication. ECCC TR11-067, 18.2011
[7] Junjie Li Sanjay Ranka Sartaj Sahni Strassen's Matrix Multiplication on GPUs,
https://www.cise.ufl.edu/~sahni/papers/strassen.pdf
[8] D. Bailey, K. Lee, and H. Simon, Using Strassen's algorithm to accelerate the solution of linearsystems,Jr.
of Supercomputing, 4, 357-371, 1990
[9] B. Boyer, C. Pernet, and W. Zhou, Memory efficient scheduling of Strassen-Winograd's
matrixmultiplication algorithm,ACM ISSAC, 2009
[10] https://www.cise.ufl.edu/~sahni/papers/strassen.pdf
[11] http://www.cs.toronto.edu/~yuvalf/Limitations.pdf
[12] http://bioinfo.ict.ac.cn/~dbu/AlgorithmCourses/Lectures/MAndersonSBarman2009.pdf
[13] http://www.cs.mcgill.ca/~pnguyen/251F09/matrix-mult.pdf
[14] D. Bini, M. Capovani, F. Romani, and G. Lotti.O(n2:7799)complexity for n*n approximate matrix
multiplication.Inf. Process. Lett., 8(5):234–235, 1979
Testing of Matrices Multiplication Methods on Different Processors
Testing of Matrices Multiplication Methods on Different Processors

Weitere ähnliche Inhalte

Was ist angesagt?

A novel approach for high speed convolution of finite and infinite length seq...
A novel approach for high speed convolution of finite and infinite length seq...A novel approach for high speed convolution of finite and infinite length seq...
A novel approach for high speed convolution of finite and infinite length seq...
eSAT Journals
 

Was ist angesagt? (20)

Business Logistics Assignment Help
Business Logistics Assignment HelpBusiness Logistics Assignment Help
Business Logistics Assignment Help
 
[Term project] Junction-point process
[Term project] Junction-point process[Term project] Junction-point process
[Term project] Junction-point process
 
A novel approach for high speed convolution of finite and infinite length seq...
A novel approach for high speed convolution of finite and infinite length seq...A novel approach for high speed convolution of finite and infinite length seq...
A novel approach for high speed convolution of finite and infinite length seq...
 
Shor's discrete logarithm quantum algorithm for elliptic curves
 Shor's discrete logarithm quantum algorithm for elliptic curves Shor's discrete logarithm quantum algorithm for elliptic curves
Shor's discrete logarithm quantum algorithm for elliptic curves
 
Using information theory principles to schedule real time tasks
 Using information theory principles to schedule real time tasks Using information theory principles to schedule real time tasks
Using information theory principles to schedule real time tasks
 
VLSI IMPLEMENTATION OF AREA EFFICIENT 2-PARALLEL FIR DIGITAL FILTER
VLSI IMPLEMENTATION OF AREA EFFICIENT 2-PARALLEL FIR DIGITAL FILTERVLSI IMPLEMENTATION OF AREA EFFICIENT 2-PARALLEL FIR DIGITAL FILTER
VLSI IMPLEMENTATION OF AREA EFFICIENT 2-PARALLEL FIR DIGITAL FILTER
 
A Method for the Reduction 0f Linear High Order MIMO Systems Using Interlacin...
A Method for the Reduction 0f Linear High Order MIMO Systems Using Interlacin...A Method for the Reduction 0f Linear High Order MIMO Systems Using Interlacin...
A Method for the Reduction 0f Linear High Order MIMO Systems Using Interlacin...
 
Gk3611601162
Gk3611601162Gk3611601162
Gk3611601162
 
Recursive algorithms
Recursive algorithmsRecursive algorithms
Recursive algorithms
 
Unit 3
Unit 3Unit 3
Unit 3
 
Unit 2
Unit 2Unit 2
Unit 2
 
Daa unit 2
Daa unit 2Daa unit 2
Daa unit 2
 
Signal Processing Assignment Help
Signal Processing Assignment HelpSignal Processing Assignment Help
Signal Processing Assignment Help
 
Electrical Engineering Assignment Help
Electrical Engineering Assignment HelpElectrical Engineering Assignment Help
Electrical Engineering Assignment Help
 
Time of arrival based localization in wireless sensor networks a non linear ...
Time of arrival based localization in wireless sensor networks  a non linear ...Time of arrival based localization in wireless sensor networks  a non linear ...
Time of arrival based localization in wireless sensor networks a non linear ...
 
Design of Low Power Vedic Multiplier Based on Reversible Logic
Design of Low Power Vedic Multiplier Based on Reversible LogicDesign of Low Power Vedic Multiplier Based on Reversible Logic
Design of Low Power Vedic Multiplier Based on Reversible Logic
 
Lecture2b algorithm
Lecture2b algorithmLecture2b algorithm
Lecture2b algorithm
 
Fuzzy c-Means Clustering Algorithms
Fuzzy c-Means Clustering AlgorithmsFuzzy c-Means Clustering Algorithms
Fuzzy c-Means Clustering Algorithms
 
Neural Networks: Least Mean Square (LSM) Algorithm
Neural Networks: Least Mean Square (LSM) AlgorithmNeural Networks: Least Mean Square (LSM) Algorithm
Neural Networks: Least Mean Square (LSM) Algorithm
 
Edge tenacity in cycles and complete
Edge tenacity in cycles and completeEdge tenacity in cycles and complete
Edge tenacity in cycles and complete
 

Andere mochten auch (8)

PHB production by bacteria and its applications
PHB production by bacteria and its applicationsPHB production by bacteria and its applications
PHB production by bacteria and its applications
 
Cultivation of bacteria and culture methods
Cultivation of bacteria and culture methodsCultivation of bacteria and culture methods
Cultivation of bacteria and culture methods
 
Culture Media - Prac. Microbiology
Culture Media - Prac. MicrobiologyCulture Media - Prac. Microbiology
Culture Media - Prac. Microbiology
 
Bio-control agents: Insecticidal toxins of Bacillus thuringiensis
Bio-control agents:Insecticidal toxins of Bacillus thuringiensisBio-control agents:Insecticidal toxins of Bacillus thuringiensis
Bio-control agents: Insecticidal toxins of Bacillus thuringiensis
 
Genetic engineering in baculovirus, entomopathogenic fungi and bacteria
Genetic engineering in baculovirus, entomopathogenic fungi and bacteriaGenetic engineering in baculovirus, entomopathogenic fungi and bacteria
Genetic engineering in baculovirus, entomopathogenic fungi and bacteria
 
Microbes in biological control,Fermentation and enzyme technology
Microbes in biological control,Fermentation and enzyme technologyMicrobes in biological control,Fermentation and enzyme technology
Microbes in biological control,Fermentation and enzyme technology
 
Culture methods
Culture methodsCulture methods
Culture methods
 
Culture media & methods
Culture media & methodsCulture media & methods
Culture media & methods
 

Ähnlich wie Testing of Matrices Multiplication Methods on Different Processors

JOURNAL PAPER
JOURNAL PAPERJOURNAL PAPER
JOURNAL PAPER
Raj kumar
 

Ähnlich wie Testing of Matrices Multiplication Methods on Different Processors (20)

High speed multiplier using vedic mathematics
High speed multiplier using vedic mathematicsHigh speed multiplier using vedic mathematics
High speed multiplier using vedic mathematics
 
High speed multiplier using vedic mathematics
High speed multiplier using vedic mathematicsHigh speed multiplier using vedic mathematics
High speed multiplier using vedic mathematics
 
Introduction to computing Processing and performance.pdf
Introduction to computing Processing and performance.pdfIntroduction to computing Processing and performance.pdf
Introduction to computing Processing and performance.pdf
 
A comprehensive study on Applications of Vedic Multipliers in signal processing
A comprehensive study on Applications of Vedic Multipliers in signal processingA comprehensive study on Applications of Vedic Multipliers in signal processing
A comprehensive study on Applications of Vedic Multipliers in signal processing
 
Master’s theorem Derivative Analysis
Master’s theorem Derivative AnalysisMaster’s theorem Derivative Analysis
Master’s theorem Derivative Analysis
 
Optimization of a 2D localization system of a moving object based on the prop...
Optimization of a 2D localization system of a moving object based on the prop...Optimization of a 2D localization system of a moving object based on the prop...
Optimization of a 2D localization system of a moving object based on the prop...
 
IRJET - Design of a Low Power Serial- Parallel Multiplier with Low Transition...
IRJET - Design of a Low Power Serial- Parallel Multiplier with Low Transition...IRJET - Design of a Low Power Serial- Parallel Multiplier with Low Transition...
IRJET - Design of a Low Power Serial- Parallel Multiplier with Low Transition...
 
Clock Skew Compensation Algorithm Immune to Floating-Point Precision Loss
Clock Skew Compensation Algorithm Immune to Floating-Point Precision LossClock Skew Compensation Algorithm Immune to Floating-Point Precision Loss
Clock Skew Compensation Algorithm Immune to Floating-Point Precision Loss
 
2.03.Asymptotic_analysis.pptx
2.03.Asymptotic_analysis.pptx2.03.Asymptotic_analysis.pptx
2.03.Asymptotic_analysis.pptx
 
IRJET - Predicting the Maximum Computational Power of Microprocessors using M...
IRJET - Predicting the Maximum Computational Power of Microprocessors using M...IRJET - Predicting the Maximum Computational Power of Microprocessors using M...
IRJET - Predicting the Maximum Computational Power of Microprocessors using M...
 
JOURNAL PAPER
JOURNAL PAPERJOURNAL PAPER
JOURNAL PAPER
 
Backtracking based integer factorisation, primality testing and square root c...
Backtracking based integer factorisation, primality testing and square root c...Backtracking based integer factorisation, primality testing and square root c...
Backtracking based integer factorisation, primality testing and square root c...
 
International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)
 
Analysis of different multiplication algorithm and FPGA implementation of rec...
Analysis of different multiplication algorithm and FPGA implementation of rec...Analysis of different multiplication algorithm and FPGA implementation of rec...
Analysis of different multiplication algorithm and FPGA implementation of rec...
 
IRJET- Different Data Mining Techniques for Weather Prediction
IRJET-  	  Different Data Mining Techniques for Weather PredictionIRJET-  	  Different Data Mining Techniques for Weather Prediction
IRJET- Different Data Mining Techniques for Weather Prediction
 
Extended Fuzzy C-Means with Random Sampling Techniques for Clustering Large Data
Extended Fuzzy C-Means with Random Sampling Techniques for Clustering Large DataExtended Fuzzy C-Means with Random Sampling Techniques for Clustering Large Data
Extended Fuzzy C-Means with Random Sampling Techniques for Clustering Large Data
 
IRJET- Matrix Multiplication using Strassen’s Method
IRJET-  	  Matrix Multiplication using Strassen’s MethodIRJET-  	  Matrix Multiplication using Strassen’s Method
IRJET- Matrix Multiplication using Strassen’s Method
 
Paper id 26201482
Paper id 26201482Paper id 26201482
Paper id 26201482
 
Design and Implementation of Test Vector Generation using Random Forest Techn...
Design and Implementation of Test Vector Generation using Random Forest Techn...Design and Implementation of Test Vector Generation using Random Forest Techn...
Design and Implementation of Test Vector Generation using Random Forest Techn...
 
dynamic programming complete by Mumtaz Ali (03154103173)
dynamic programming complete by Mumtaz Ali (03154103173)dynamic programming complete by Mumtaz Ali (03154103173)
dynamic programming complete by Mumtaz Ali (03154103173)
 

Mehr von Editor IJMTER

A NEW DATA ENCODER AND DECODER SCHEME FOR NETWORK ON CHIP
A NEW DATA ENCODER AND DECODER SCHEME FOR  NETWORK ON CHIPA NEW DATA ENCODER AND DECODER SCHEME FOR  NETWORK ON CHIP
A NEW DATA ENCODER AND DECODER SCHEME FOR NETWORK ON CHIP
Editor IJMTER
 
A CAR POOLING MODEL WITH CMGV AND CMGNV STOCHASTIC VEHICLE TRAVEL TIMES
A CAR POOLING MODEL WITH CMGV AND CMGNV STOCHASTIC VEHICLE TRAVEL TIMESA CAR POOLING MODEL WITH CMGV AND CMGNV STOCHASTIC VEHICLE TRAVEL TIMES
A CAR POOLING MODEL WITH CMGV AND CMGNV STOCHASTIC VEHICLE TRAVEL TIMES
Editor IJMTER
 
Textual Data Partitioning with Relationship and Discriminative Analysis
Textual Data Partitioning with Relationship and Discriminative AnalysisTextual Data Partitioning with Relationship and Discriminative Analysis
Textual Data Partitioning with Relationship and Discriminative Analysis
Editor IJMTER
 
SURVEY OF TRUST BASED BLUETOOTH AUTHENTICATION FOR MOBILE DEVICE
SURVEY OF TRUST BASED BLUETOOTH AUTHENTICATION FOR MOBILE DEVICESURVEY OF TRUST BASED BLUETOOTH AUTHENTICATION FOR MOBILE DEVICE
SURVEY OF TRUST BASED BLUETOOTH AUTHENTICATION FOR MOBILE DEVICE
Editor IJMTER
 
Software Quality Analysis Using Mutation Testing Scheme
Software Quality Analysis Using Mutation Testing SchemeSoftware Quality Analysis Using Mutation Testing Scheme
Software Quality Analysis Using Mutation Testing Scheme
Editor IJMTER
 
Software Defect Prediction Using Local and Global Analysis
Software Defect Prediction Using Local and Global AnalysisSoftware Defect Prediction Using Local and Global Analysis
Software Defect Prediction Using Local and Global Analysis
Editor IJMTER
 

Mehr von Editor IJMTER (20)

A NEW DATA ENCODER AND DECODER SCHEME FOR NETWORK ON CHIP
A NEW DATA ENCODER AND DECODER SCHEME FOR  NETWORK ON CHIPA NEW DATA ENCODER AND DECODER SCHEME FOR  NETWORK ON CHIP
A NEW DATA ENCODER AND DECODER SCHEME FOR NETWORK ON CHIP
 
A RESEARCH - DEVELOP AN EFFICIENT ALGORITHM TO RECOGNIZE, SEPARATE AND COUNT ...
A RESEARCH - DEVELOP AN EFFICIENT ALGORITHM TO RECOGNIZE, SEPARATE AND COUNT ...A RESEARCH - DEVELOP AN EFFICIENT ALGORITHM TO RECOGNIZE, SEPARATE AND COUNT ...
A RESEARCH - DEVELOP AN EFFICIENT ALGORITHM TO RECOGNIZE, SEPARATE AND COUNT ...
 
Analysis of VoIP Traffic in WiMAX Environment
Analysis of VoIP Traffic in WiMAX EnvironmentAnalysis of VoIP Traffic in WiMAX Environment
Analysis of VoIP Traffic in WiMAX Environment
 
A Hybrid Cloud Approach for Secure Authorized De-Duplication
A Hybrid Cloud Approach for Secure Authorized De-DuplicationA Hybrid Cloud Approach for Secure Authorized De-Duplication
A Hybrid Cloud Approach for Secure Authorized De-Duplication
 
Aging protocols that could incapacitate the Internet
Aging protocols that could incapacitate the InternetAging protocols that could incapacitate the Internet
Aging protocols that could incapacitate the Internet
 
A Cloud Computing design with Wireless Sensor Networks For Agricultural Appli...
A Cloud Computing design with Wireless Sensor Networks For Agricultural Appli...A Cloud Computing design with Wireless Sensor Networks For Agricultural Appli...
A Cloud Computing design with Wireless Sensor Networks For Agricultural Appli...
 
A CAR POOLING MODEL WITH CMGV AND CMGNV STOCHASTIC VEHICLE TRAVEL TIMES
A CAR POOLING MODEL WITH CMGV AND CMGNV STOCHASTIC VEHICLE TRAVEL TIMESA CAR POOLING MODEL WITH CMGV AND CMGNV STOCHASTIC VEHICLE TRAVEL TIMES
A CAR POOLING MODEL WITH CMGV AND CMGNV STOCHASTIC VEHICLE TRAVEL TIMES
 
Sustainable Construction With Foam Concrete As A Green Green Building Material
Sustainable Construction With Foam Concrete As A Green Green Building MaterialSustainable Construction With Foam Concrete As A Green Green Building Material
Sustainable Construction With Foam Concrete As A Green Green Building Material
 
USE OF ICT IN EDUCATION ONLINE COMPUTER BASED TEST
USE OF ICT IN EDUCATION ONLINE COMPUTER BASED TESTUSE OF ICT IN EDUCATION ONLINE COMPUTER BASED TEST
USE OF ICT IN EDUCATION ONLINE COMPUTER BASED TEST
 
Textual Data Partitioning with Relationship and Discriminative Analysis
Textual Data Partitioning with Relationship and Discriminative AnalysisTextual Data Partitioning with Relationship and Discriminative Analysis
Textual Data Partitioning with Relationship and Discriminative Analysis
 
Survey on Malware Detection Techniques
Survey on Malware Detection TechniquesSurvey on Malware Detection Techniques
Survey on Malware Detection Techniques
 
SURVEY OF TRUST BASED BLUETOOTH AUTHENTICATION FOR MOBILE DEVICE
SURVEY OF TRUST BASED BLUETOOTH AUTHENTICATION FOR MOBILE DEVICESURVEY OF TRUST BASED BLUETOOTH AUTHENTICATION FOR MOBILE DEVICE
SURVEY OF TRUST BASED BLUETOOTH AUTHENTICATION FOR MOBILE DEVICE
 
SURVEY OF GLAUCOMA DETECTION METHODS
SURVEY OF GLAUCOMA DETECTION METHODSSURVEY OF GLAUCOMA DETECTION METHODS
SURVEY OF GLAUCOMA DETECTION METHODS
 
Survey: Multipath routing for Wireless Sensor Network
Survey: Multipath routing for Wireless Sensor NetworkSurvey: Multipath routing for Wireless Sensor Network
Survey: Multipath routing for Wireless Sensor Network
 
Step up DC-DC Impedance source network based PMDC Motor Drive
Step up DC-DC Impedance source network based PMDC Motor DriveStep up DC-DC Impedance source network based PMDC Motor Drive
Step up DC-DC Impedance source network based PMDC Motor Drive
 
SPIRITUAL PERSPECTIVE OF AUROBINDO GHOSH’S PHILOSOPHY IN TODAY’S EDUCATION
SPIRITUAL PERSPECTIVE OF AUROBINDO GHOSH’S PHILOSOPHY IN TODAY’S EDUCATIONSPIRITUAL PERSPECTIVE OF AUROBINDO GHOSH’S PHILOSOPHY IN TODAY’S EDUCATION
SPIRITUAL PERSPECTIVE OF AUROBINDO GHOSH’S PHILOSOPHY IN TODAY’S EDUCATION
 
Software Quality Analysis Using Mutation Testing Scheme
Software Quality Analysis Using Mutation Testing SchemeSoftware Quality Analysis Using Mutation Testing Scheme
Software Quality Analysis Using Mutation Testing Scheme
 
Software Defect Prediction Using Local and Global Analysis
Software Defect Prediction Using Local and Global AnalysisSoftware Defect Prediction Using Local and Global Analysis
Software Defect Prediction Using Local and Global Analysis
 
Software Cost Estimation Using Clustering and Ranking Scheme
Software Cost Estimation Using Clustering and Ranking SchemeSoftware Cost Estimation Using Clustering and Ranking Scheme
Software Cost Estimation Using Clustering and Ranking Scheme
 
Single Phase Thirteen-Level Inverter using Seven Switches for Photovoltaic sy...
Single Phase Thirteen-Level Inverter using Seven Switches for Photovoltaic sy...Single Phase Thirteen-Level Inverter using Seven Switches for Photovoltaic sy...
Single Phase Thirteen-Level Inverter using Seven Switches for Photovoltaic sy...
 

Kürzlich hochgeladen

Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
Neometrix_Engineering_Pvt_Ltd
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
ssuser89054b
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
amitlee9823
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 

Kürzlich hochgeladen (20)

Unit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdfUnit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdf
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
 
Hostel management system project report..pdf
Hostel management system project report..pdfHostel management system project report..pdf
Hostel management system project report..pdf
 
Minimum and Maximum Modes of microprocessor 8086
Minimum and Maximum Modes of microprocessor 8086Minimum and Maximum Modes of microprocessor 8086
Minimum and Maximum Modes of microprocessor 8086
 
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
DC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationDC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equation
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
Introduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaIntroduction to Serverless with AWS Lambda
Introduction to Serverless with AWS Lambda
 
22-prompt engineering noted slide shown.pdf
22-prompt engineering noted slide shown.pdf22-prompt engineering noted slide shown.pdf
22-prompt engineering noted slide shown.pdf
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
 
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
 

Testing of Matrices Multiplication Methods on Different Processors

  • 1. Scientific Journal Impact Factor (SJIF): 1.711 International Journal of Modern Trends in Engineering and Research www.ijmter.com @IJMTER-2014, All rights Reserved 153 e-ISSN: 2349-9745 p-ISSN: 2393-8161 Testing of Matrices Multiplication Methods on Different Processors Jaymit Pandya1 , Jay Vala2 , Chetan Chudasama3 , Dhara Monaka4 1 Assistant Professor, IT Dept, GCET Engg College, jaymitpandya@gcet.ac.in 2 Assistant Professor, IT Dept, GCET Engg College, jayvala@gcet.ac.in 3 Assistant Professor, CE Dept, MBICT, chetanfriends30@gmail.com 4 Assistant Professor, BCA Dept, NMC Abstract – There are many algorithms we found for matrices multiplication. Until now it has been found that complexity of matrix multiplication is O(n3 ). Though Further research found that this complexity can be decreased. This paper focus on the algorithm and its complexity of matrices multiplication methods. Keywords- Matrices, multiplication, strassen, coppersmith and winograd I. INTRODUCTION The product of two matrices is one of the most basic operations in mathematics and computer science. Here, we foucs on mainly three methods of matrices multiplication. 1) Conventional Method, 2)Strassen’s Mehtod and 3)Coppersmith and Winograd. Until 1969, it was thought that complexity of matrices multiplication is of order n3 though some of researchers was of opinion that it is of order n2 . Following Table 1 shows Reducing complexities found as time passed. Table 1. Complexity of Various Algorithms for Matrices Multiplication[9,10,11] Name of Method Complexity Conventional Method n3 Strassen n2.808 Pan Ѡ < 2.796 Bini Ѡ < 2.78 Scḧonhage Ѡ <2.548 Romani Ѡ <2.517 Coppersmith & Winograd Ѡ <2.496 Strassen’s New Method Ѡ <2.479 Coppersmith & Winograd Ѡ <2.376 From the above table it can be seen that tighter lower bound decreases. It can also be seen that it was only up gradation of Strassen’s Method and Coppersmith & Winograd. In this paper, we have considered only three methods. They are considered in a view that which methods gives better result when general matrices multiplication is done. Of course, it can be said that competitors are only last two methods but for providing base Conventional method is considered[12,14] .
  • 2. International Journal of Modern Trends in Engineering and Research (IJMTER) Volume 02, Issue 01, [January - 2015] e-ISSN: 2349-9745, p-ISSN: 2393-8161 @IJMTER-2014, All rights Reserved 154 II. MATRICES MULTIPLICAITON METHODS 1. Conventional Method of Matrix Multiplication If A is an n × m matrix and B is an m × p matrix, Multiplication can be given by following formula[13] . Calculation of complexity is as follows. Here is an algorithm for doing this, assuming that a, b, and c have been declared as square two- dimensional arrays of integers, and n is the length of a row or column in the arrays[13] : for (int i = 0; i < n; i++) { for (int j = 0; j < n; j++) { c[i][j]= 0; for (int k = 0; k < n; k++) { c[i][j] += a[i][k] * b[k][j]; } } } Let's analyze the number of operations performed by this algorithm in terms of the matrix size n, and use that analysis to come up with a big-O expression for the time complexity of the algorithm as a whole[13] . First, recognize that since we have triply-nested for loops, each of which individually loops n times, the total number of iterations of the outermost loop will be n, the total number of iterations of the middle loop will be n * n = n2 , and the total number of iterations of the innermost loop will be n * n * n = n3 . Multiplication The only multiplication appears in the innermost loop. Since this loop will iterate a total of n3 times, we will perform exactly n3 multiplication operations. Addition There are two addition operations in the innermost loop: c[i][j] += a[i][k] * b[k][j] and k++. Each of these will happen n3 times, giving us 2n3 additions generated by the innermost loop. The middle loop
  • 3. International Journal of Modern Trends in Engineering and Research (IJMTER) Volume 02, Issue 01, [January - 2015] e-ISSN: 2349-9745, p-ISSN: 2393-8161 @IJMTER-2014, All rights Reserved 155 has one addition operation (j++) which happens n2 times, since the middle loop iterates a total of n2 times. The outermost loop has one addition operation as well (i++) which happens n times, since the outermost loop iterates a total of n times. Adding these up, we get an exact value for the number of addition operations:2n3 + n2+ n Assignment The += operation in the innermost loop happens n3 times, since it's inside the loop. The k = 0 assignment happens only once for each complete execution of the innermost loop, so it executes only n2 times. Similarly, the c[i][j] = 0 assignment, being within the middle loop, happens n2 times. The j = 0 assignment happens only once for each complete execution of the middle loop, so it executes n times. The i = 0 assignment happens only once, when the outermost loop first starts running. Adding these up gives us an exact expression for the number of assignments:n3 + 2n2 + n + 1 Now, using the exact expressions above, let's come up with big-O expressions for the time complexity of each kind of operation as a function of n. There are exactly n3 multiplications, so there are O(n3 ) multiplications. There are exactly 2n3 + n2 + n additions, so, dropping all but the largest term and discarding its coefficient, there are O(n3 ) additions. There are exactly n3 + 2n2 + n + 1 assignments, so, dropping all but the largest term and discarding its coefficient, there are O(n3 ) assignments. O(n3 ) multiplications + O(n3 ) additions + O(n3 )assignments = O(n3 ) overall time complexity[13] . 2. Strassen’s Method for Matrix Multiplication Strassen’s Algorithm for matrix multiplication is seen as improvement over conventional method. Assuming that we have following matrices. & Calculations for resulting matrix can be done as follows.
  • 4. International Journal of Modern Trends in Engineering and Research (IJMTER) Volume 02, Issue 01, [January - 2015] e-ISSN: 2349-9745, p-ISSN: 2393-8161 @IJMTER-2014, All rights Reserved 156 Based on this, we can find out values for final matrix as follows. Complexity It is well known that complexity of Strassen’s method is of order 2.808, which is improvement over conventional method. Even Second Version of Strassen’s method gave lower complexity of order 2.479[2,3,4] . This method is for 2*2 matrices. If matrices are of higher size than they are divided to 2*2 matrices using block method and then result is computed. 3. Coppersmith & Winograd Method for Matrix Multiplication The original algorithm is divided into two parts. Easy Version and Complicated Version. For the sake of complete ness here we have shown snapshots of both. Following Figure 1 Shows Original Easy version of coppersmith and winograd algorithm. Figure 1: Easy Version of Coppersmith & Winograd Method[1]
  • 5. International Journal of Modern Trends in Engineering and Research (IJMTER) Volume 02, Issue 01, [January - 2015] e-ISSN: 2349-9745, p-ISSN: 2393-8161 @IJMTER-2014, All rights Reserved 157 Following Figure 2 Shows Original complex version of coppersmith and winograd algorithm. Figure 2: Complex Version of Coppersmith & Winograd Method[1] Complexity Consider that this is just snapshot of original algorithm. Even if we take any of the two version, it can be said that complexity will be of order 2.496[7,8] . Though it has been improved to have complexity of order 2.376[5,6] . It can be said that it is lower than of the methods described above. III. ANALSIS OF RESULTS WITH RESPECT TO TIME TAKEN ON DIFFERENT HARDWARES To analyze above three algorithm, we have taken matrices of following size. 2*2, 4*4, 6*6, 8*8, 10*10, 20*20, 40*40, 100*100, 500*500, 1000*1000…… upto 10000*10000. Hardware (Processors) taking for these computations are Pentium P4, Dual Core, Core2Duo, i3, i5 & i7. Noting that, we have to divide matrix bigger than 2*2 are divided using block method. Taking all into consideration, we have found that all processors do not show any fluctuations in time taken for computation upto the size of 500*500 size. But as size increases, time taken for computation increases slightly. But this time is in fractional milliseconds, i.e. for 10000*10000 time taken is around 0.02. While for 8000*8000 it is similar. But if fast processors like i5 or i7 are taken then time taken is less as compared to processors like P4. IV. CONCLUSION From above discussion, it can be said that if small matrices are there, then all the methods give almost equal time. It should be noted that this is true for any processor used. If size of the matrix is increased then it show very less time. From this it can be said that because of speed of processors these computations are done so fast that actual difference of speed due to algorithm can’t be seen. But it should also be noted that if these procedures are to be done repeatedly with bigger matrices then use of methods like strassen and coppersmith & winograd can make difference. REFERENCES [1] Coppersmith and Winograd, 1987; D. Coppersmith, S. Winograd. Matrix Multiplication via Arithmetic Progressions. [2] BILMES, J., ASANOVIC, K., CHIN, C.,ANDDEMMEL, J. 1997. Optimizing matrix multiply using PHiPAC:a portable, high-performance, Ansi C coding methodology. In International Conference on Supercomput-ing. [3] BLACKFORD, L. S., DEMMEL, J., DONGARRA, J., DUFF, I., HAMMARLING, S., HENRY, G., HEROUX, M.,KAUFMAN, L., LUMSDAINE, A., PETITET, A., POZO, R., REMINGTON, K.,ANDWHALEY, R. C. 2002. An updated set of basic linear algebra subprograms (BLAS).ACM Transaction in Mathemathical Soft-ware 28,2, 135–151.
  • 6. International Journal of Modern Trends in Engineering and Research (IJMTER) Volume 02, Issue 01, [January - 2015] e-ISSN: 2349-9745, p-ISSN: 2393-8161 @IJMTER-2014, All rights Reserved 158 [4] BODRATO, M. 2010. A Strassen-like matrix multiplication suited for squaring and higher power computa-tion. InISSAC ’10: Proceedings of the 2010 international symposium on Symbolic and algebraic compu-tation. ACM, New York, NY, USA. http://bodrato.it/papers/#ISSAC2010 [5]Aho, Ullman. he design and analysis of computer algorithms. [6]N . Alon, A. Shpilka, and C. Umans. On sunflowers and matrix multiplication. ECCC TR11-067, 18.2011 [7] Junjie Li Sanjay Ranka Sartaj Sahni Strassen's Matrix Multiplication on GPUs, https://www.cise.ufl.edu/~sahni/papers/strassen.pdf [8] D. Bailey, K. Lee, and H. Simon, Using Strassen's algorithm to accelerate the solution of linearsystems,Jr. of Supercomputing, 4, 357-371, 1990 [9] B. Boyer, C. Pernet, and W. Zhou, Memory efficient scheduling of Strassen-Winograd's matrixmultiplication algorithm,ACM ISSAC, 2009 [10] https://www.cise.ufl.edu/~sahni/papers/strassen.pdf [11] http://www.cs.toronto.edu/~yuvalf/Limitations.pdf [12] http://bioinfo.ict.ac.cn/~dbu/AlgorithmCourses/Lectures/MAndersonSBarman2009.pdf [13] http://www.cs.mcgill.ca/~pnguyen/251F09/matrix-mult.pdf [14] D. Bini, M. Capovani, F. Romani, and G. Lotti.O(n2:7799)complexity for n*n approximate matrix multiplication.Inf. Process. Lett., 8(5):234–235, 1979