Procedia - Social and Behavioral Sciences 195 ( 2015 ) World Conference on Technology, Innovation and Entrepreneurship

Similar documents
An Efficient Elliptic Curve Cryptography Arithmetic Using Nikhilam Multiplication

REALIZATION OF MULTIPLE- OPERAND ADDER-SUBTRACTOR BASED ON VEDIC MATHEMATICS

ISSN: (Online) Volume 2, Issue 10, October 2014 International Journal of Advance Research in Computer Science and Management Studies

Chapter 2: Divide and Conquer

Area-Time Efficient Square Architecture

How to Do Word Problems. Building the Foundation

Survey on Implementation of IEEE754 Floating Point Number Division using Vedic Techniques

NZ Mathematics Level 1-Yr 9 Curriculum Objectives Addressed Within Numbers Up! Volcanic Panic

Squaring using Vedic mathematics and its architectures: a survey

Computers and Mathematics with Applications

MIRRORED VEDIC VERTICALLY AND CROSSWISE MULTIPLICATION TECHNIQUE (MVVCMT): LONG INTEGER MULTIPLICATION ALGORITHM

A Toolbox for Teaching Image Fusion in Matlab

An 8-Bit Scientific Calculator Based Intel 8086 Virtual Machine Emulator

Learning Log Title: CHAPTER 3: ARITHMETIC PROPERTIES. Date: Lesson: Chapter 3: Arithmetic Properties

FPGA IMPLEMENTATION OF DFT PROCESSOR USING VEDIC MULTIPLIER. Amrita School of Engineering, Coimbatore, Amrita Vishwa Vidyapeetham, India

Available online at ScienceDirect. Procedia Technology 24 (2016 )

An Extended Byte Carry Labeling Scheme for Dynamic XML Data

Available online at ScienceDirect. The 4th International Conference on Electrical Engineering and Informatics (ICEEI 2013)

FPGA Implementation of Low-Area Floating Point Multiplier Using Vedic Mathematics

A Rapid Automatic Image Registration Method Based on Improved SIFT

Properly even harmonious labelings of disconnected graphs

Hardware Design and Software Simulation for Four Classical Cryptosystems

Vedic Mathematics Based Floating Point Multiplier Implementation for 24 Bit FFT Computation

Available online at ScienceDirect. Procedia Engineering 99 (2015 )

An Efficient Design of Vedic Multiplier using New Encoding Scheme

Novel High Speed Vedic Maths Multiplier P. Harish Kumar 1 S.Krithiga 2

SINGLE PRECISION FLOATING POINT DIVISION

Available online at ScienceDirect. Procedia Computer Science 59 (2015 )

Available online at ScienceDirect. Procedia Technology 17 (2014 )

Procedia Computer Science

Counting Sets of Lattice Points in the Plane with a Given Diameter under the Manhattan and Chebyshev Distances

Development of Search Engines using Lucene: An Experience

Fig.1. Floating point number representation of single-precision (32-bit). Floating point number representation in double-precision (64-bit) format:

Procedia - Social and Behavioral Sciences 191 ( 2015 ) WCES 2014

DESIGN OF HIGH SPEED OPTIMIZED VEDIC MULTIPLICATION TECHNIQUES

The Further Mathematics Support Programme

Available online at ScienceDirect. Procedia Engineering 111 (2015 )

Design a DSP Operations using Vedic Mathematics

Design of High Speed Area Efficient IEEE754 Floating Point Multiplier

Development of Encapsulated Class Complexity Metric

Available online at ScienceDirect. The 4th International Conference on Electrical Engineering and Informatics (ICEEI 2013)

High speed DCT design using Vedic mathematics N.J.R. Muniraj 1 and N.Senathipathi 2

Performance Analysis of Adaptive Beamforming Algorithms for Smart Antennas

Available online at ScienceDirect. Procedia Computer Science 103 (2017 )

Hemraj Sharma 1, Abhilasha 2

ScienceDirect. A Human-Machine Interface Evaluation Method Based on Balancing Principles

Medium Term Plan Year 4

ScienceDirect. Analogy between immune system and sensor replacement using mobile robots on wireless sensor networks

An Efficient Approach to an 8-Bit Digital Multiplier Architecture based on Ancient Indian Mathematics

DSP-Based Parallel Processing Model of Image Rotation

Experimental modelling of the cluster analysis processes

Unit 2: Accentuate the Negative Name:

VHDL IMPLEMENTATION OF FLOATING POINT MULTIPLIER USING VEDIC MATHEMATICS

Available online at ScienceDirect. Procedia Computer Science 60 (2015 )

VHDL IMPLEMENTATION OF FLOATING POINT MULTIPLIER BASED ON VEDIC MULTIPLICATION TECHNIQUE

Properties and Definitions

Procedia - Social and Behavioral Sciences 143 ( 2014 ) CY-ICER D visualization in teaching anatomy

Counting shapes 1.4.6

ScienceDirect. Plan Restructuring in Multi Agent Planning

Encryption à la Mod Name

Available online at ScienceDirect. Procedia Computer Science 98 (2016 )

Fixed-Width Recursive Multipliers

Available online at ScienceDirect. Procedia Engineering 192 (2017 )

A.1 Numbers, Sets and Arithmetic

9 Multiplication and Division

Achieve Significant Throughput Gains in Wireless Networks with Large Delay-Bandwidth Product

This is an electronic reprint of the original article. This reprint may differ from the original in pagination and typographic detail.

Beating Hand-Tuned Assembly. David Richardson

Mathematical Model of Network Address Translation Port Mapping

A Totally Astar-based Multi-path Algorithm for the Recognition of Reasonable Route Sets in Vehicle Navigation Systems

Design of Vedic Multiplier for Digital Signal Processing Applications R.Naresh Naik 1, P.Siva Nagendra Reddy 2, K. Madan Mohan 3

Available online at ScienceDirect. Procedia Computer Science 34 (2014 )

Lecture 7: Divide & Conquer 2. Integer Multiplication. & Matrix Multiplication. CS 341: Algorithms. Tuesday, Jan 29 th 2019

What we still don t know about addition and multiplication

Math Interim Mini-Tests. 3rd Grade Mini-Tests

Available online at ScienceDirect. Procedia Computer Science 45 (2015 )

What we still don t know about addition and multiplication

Run-Time Reconfigurable multi-precision floating point multiplier design based on pipelining technique using Karatsuba-Urdhva algorithms

Verilog Implementation of High Performance RC6 Algorithm using Ancient Indian Vedic Mathematics

On JAM of Triangular Fuzzy Number Matrices

The mathematics you have learned about so

IEEE-754 compliant Algorithms for Fast Multiplication of Double Precision Floating Point Numbers

The p-sized partitioning algorithm for fast computation of factorials of numbers

A comparative study of Floating Point Multipliers Using Ripple Carry Adder and Carry Look Ahead Adder

Designing Programmable Logic Controller (PLC) Experiment Set with Internal Experiment Blocks

Heinemann is a registered trademark of Pearson Education Limited

Ancient System of Operations: Computing with Mathematical Devices. By: Calvin L. Fitts Jr. History of Mathematics. Ms.

Unit 3: Multiplication and Division Reference Guide pages x 7 = 392 factors: 56, 7 product 392

COMMUNITY UNIT SCHOOL DISTRICT 200

Time efficient signed Vedic multiplier using redundant binary representation

VHDL implementation of 32-bit floating point unit (FPU)

Citation for the original published paper (version of record):

Rational Numbers: Multiply and Divide

Available online at ScienceDirect. Procedia Technology 24 (2016 )

Available online at ScienceDirect. Procedia Computer Science 57 (2015 )

ICIMTR International Conference on Innovation, Management and Technology Research, Malaysia, September, 2013

DESIGN AND ANALYSIS OF COMPETENT ARITHMETIC AND LOGIC UNIT FOR RISC PROCESSOR

Design of a Parallel Adder Circuit for a Heavy Computing Environment and the Performance Analysis of Multiplication Algorithm

Available online at ScienceDirect. Procedia Computer Science 79 (2016 )

ScienceDirect. -IRRESOLUTE MAPS IN TOPOLOGICAL SPACES K. Kannan a, N. Nagaveni b And S. Saranya c a & c

Transcription:

Available online at www.sciencedirect.com ScienceDirect Procedia - Social and Behavioral Sciences 195 ( 2015 ) 1959 1965 World Conference on Technology, Innovation and Entrepreneurship Investigation of the Performance of Nikhilam Multiplication Algorithm Can Eyupoglu a * a Istanbul Commerce University, Faculty of Engineering and Design, Department of Computer Engineering, Istanbul, 34840, Turkey Abstract Multiplication is one of the most important operations in computer arithmetic. Multiplication is used in many operations such as squaring, division and computing reciprocal. Moreover, multiplication is a very significant arithmetic operation for lots of signal processing applications which are convolution, correlation, frequency analysis, image processing etc. The efficiency of multiplication operation is crucial for the process time of these applications. Nikhilam algorithm is one of the algorithms developed for increasing the efficiency and reducing the cost in order to simplify multiplication. In this work, the performance of Nikhilam multiplication algorithm is analyzed in terms of the number of multiplication and the total process time for different bit lengths. 2015 The The Authors. Authors. Published Published by by Elsevier Elsevier Ltd. Ltd. This is an open access article under the CC BY-NC-ND license (http://creativecommons.org/licenses/by-nc-nd/4.0/). Peer-review under responsibility of Istanbul University. Peer-review under responsibility of Istanbul Univeristy. Keywords: Computer Arithmetic, Multiplication, Nikhilam Algorithm 1. Introduction In computer arithmetic, multiplication is one of the most significant operations. There are a lot of operations (i.e., squaring, division and computing reciprocal) using multiplication (Dwivedi, 2013). Furthermore, the efficiency of multiplication operation is vital owing to the use of digital signal processing applications such as correlation, frequency analysis, filtering and image processing (Patil et al., 2014). * Corresponding author. Tel.: 444-0413/3235; fax: +90-216-489-0269. E-mail address: ceyupoglu@ticaret.edu.tr 1877-0428 2015 The Authors. Published by Elsevier Ltd. This is an open access article under the CC BY-NC-ND license (http://creativecommons.org/licenses/by-nc-nd/4.0/). Peer-review under responsibility of Istanbul Univeristy. doi:10.1016/j.sbspro.2015.06.208

1960 Can Eyupoglu / Procedia - Social and Behavioral Sciences 195 ( 2015 ) 1959 1965 Multiplication is an important arithmetic operation used frequently in hardware level in digital filtering (Madke and Zafar, 2014). In order to implement modulators, cryptosystems, ALU (Arithmetic Logic Unit) and many other systems, the efficiency of multiplication operation is a basis (Mishra and Pradhan, 2012). Adding two integers of n-bits takes O(n) bit operations and multiplying two integers of n-bits takes O(n 2 ) bit operations in classical method or long multiplication method. In terms of the number of bit operations, complexity of addition operation is optimum, but it is not optimal for integers (Dwivedi, 2013). In order for improving O(n 2 ) multiplication bound, several algorithms are explored such as Karatsuba multiplication algorithm (Karatsuba and Ofman, 1963), Toom-Cook algorithm (Cook and Aanderaa, 1969), Schonhage-Strassen interger multiplication algorithm (Schonhage et al., 1971) and Furer algorithm (Furer, 2007). Nikhilam multiplication algorithm is one of these algorithms. Nikhilam algorithm is a sutra or method coming from Vedic mathematics (Tirthaji, 1992). In addition, it is used to perform efficient multiplication for small inputs. Moreover, Nikhilam algorithm performs multiplication operation by converting large multiplication to small multiplication along with some addition, subtraction and shifting operations (Dwivedi, 2013). In this study, it is thought that multiplication is performed by multiplicand and multiplier having equal length. The rest of the paper is organized as follows. In section 2, Nikhilam multiplication algorithm is explained. Section 3 investigates the performance of Nikhilam algorithm for different bit lengths. Finally, conclusions being under study are summarized in section 4. 2. Method Vedic mathematics is an ancient math and it was discovered by Shri Bharati Krishna Tirthaji. Furthermore, Vedic mathematics includes all mental calculations interested in mathematics and covers geometry and trigonometry. Shri Bharati Krishna Tirthaji who is a mathematician and philosopher rediscovered a 1500BC Vedic math between 1911 and 1918 (Sriskandarajah, 2003). The mental calculations of Vedic mathematics are organized as 16 simple sutras (Madke and Zafar, 2014). a*b A = (Nearest base) a B = (Nearest base) b C=A*B D=a B=b A Result =100*D+C Result of multiplication operation Fig. 1. Flowchart of Nikhilam algorithm (Multiplication of two 2-digit numbers which are smaller than the nearest base).

Can Eyupoglu / Procedia - Social and Behavioral Sciences 195 ( 2015 ) 1959 1965 1961 In Vedic mathematics, Nikhilam sutra is one of these 16 sutras. Moreover, it is used to convert large-digits multiplication to small-digits multiplication with some additional subtraction, addition and shifting operations. Classical multiplication method needs four multiplications in order to perform 2-digit multiplication operation. In Nikhilam algorithm, 2-digit multiplication operation can be performed with one multiplication (Dwivedi, 2013). The multiplication of two 2-digit decimal numbers which are smaller than the nearest base is calculated as shown in Fig. 1. 96 * 97 A = 100 96 =4 B = 100 97 =3 C=4*3=12 D=96 3=97 4=93 Result = 100 * 93 + 12 9312 Fig. 2. Calculation of 96*97 multiplication operation using Nikhilam algorithm. The cost of addition and subtraction operations is less than the cost of multiplication operation (Dwivedi, 2013). For example, the calculation of 96*97 multiplication operation using Nikhilam algorithm is shown in Fig. 2. This multiplication operation is calculated with four 1-digit multiplication along with some addition and shift operations in classical multiplication method. As it is seen in flowchart, Nikhilam algorithm requires one multiplication, one addition, three subtraction and one shift operations in order to perform this multiplication operation. Therefore, Nikhilam algorithm is more efficient than classical multiplication method. The multiplication of two 3-digit decimal numbers which are greater than the nearest base is calculated as shown in Fig. 3. As it is different from the multiplication of two 2-digit decimal numbers which are smaller than the nearest base, the nearest base is subtracted from the multiplicand and multiplier. The calculation of 106*107 multiplication operation using Nikhilam algorithm is shown in Fig. 4. According the flowchart, the result of 3-digit multiplication operation is calculated with only one 1-digit multiplication. In addition, 3-digit multiplication operation requires nine multiplications in classical multiplication method.

1962 Can Eyupoglu / Procedia - Social and Behavioral Sciences 195 ( 2015 ) 1959 1965 a*b A=a (Nearest base) B=b (Nearest base) C=A*B D=a+B=b+A Result =100*D+C Result of multiplication operation Fig. 3. Flowchart of Nikhilam algorithm (Multiplication of two 2-digit numbers which are greater than the nearest base). 106 * 107 A=106 100=6 B=107 100=7 C=6*7=42 D=106+7=107+6=113 Result = 100 * 113 + 42 11342 Fig. 4. Calculation of 106*107 multiplication operation using Nikhilam algorithm.

Can Eyupoglu / Procedia - Social and Behavioral Sciences 195 ( 2015 ) 1959 1965 1963 3. Results and Discussion In this study, the performance of Nikhilam algorithm is analyzed for multiplicand and multiplier having 4, 8, 16 and 32 bit length. Furthermore, the performance of Nikhilam algorithm is investigated in terms of the number of multiplication and the total process time. The applications used for performance analysis are implemented using MATLAB R2014a and the computer used for testing has these features: Windows 7 64 bit Operating System, Intel Core i5-3317u CPU @ 1.70 GHz Processor and 4 GB RAM. The performance analysis of Nikhilam algorithm in terms of the number of multiplication for different bit lengths is given in Fig. 5. As shown in the graph, the number of multiplication is one and the same for different bit lengths because Nikhilam algorithm performs multiplication operation by converting large multiplication to small multiplication with some extra addition, subtraction and shifting operations. In addition, the number of multiplication increases along with the amount of hardware and thus the cost required for performing multiplication operation raises. Moreover, the cost of multiplication operation is greater than the cost of addition, subtraction and shifting operations. The number of multiplication of Nikhilam algorithm is less than classical multiplication method. The performance of Nikhilam algorithm in terms of the total process time for different bit lengths is analyzed as shown in Fig. 6. As seen in the graph, the more the bit length raises, the more the total process time increases. This is because the number of required addition, subtraction and shifting operations increases along with the bit length. Besides, the total process time is inversely proportional to the processing speed. The increase of the total process time decreases the processing speed of multiplication. When compared to each other, Nikhilam algorithm gives better results than classical multiplication method in terms of the total process time because the number of multiplication required for performing the operation is less than the requirement in classical multiplication method. Fig. 5. Performance analysis of Nikhilam algorithm in terms of the number of multiplication for different bit lengths.

1964 Can Eyupoglu / Procedia - Social and Behavioral Sciences 195 ( 2015 ) 1959 1965 4. Conclusion Fig. 6. Performance analysis of Nikhilam algorithm in terms of the total process time for different bit lengths. In this work, the performance of Nikhilam multiplication algorithm is investigated. The performance analysis is carried out for different bit lengths. The number of multiplication and the total process time are used as analysis parameters. According to the study results, the number of multiplication is one and the same for different bit lengths in Nikhilam algorithm. The more the bit length rises, the more the total process time increases. Furthermore, Nikhilam algorithm has better results than classical multiplication method in terms of the number of multiplication and the total process time. The reason is that the number of multiplication and the cost required to perform multiplication operation are less than classical multiplication method. As a next step, the performance of Nikhilam algorithm can be compared with the performance of the other algorithms developed in order for performing multiplication operation. Besides, an algorithm can be developed for increasing the efficiency of multiplication operation and reducing the processing cost. References Cook, S. A., & Aanderaa, S. O. (1969). On the minimum computation time of the functions. Transactions of the American Mathematical Society. Dwivedi, S. P. (2013). An efficient multiplication algorithm using Nikhilam method. Fifth International Conference on Advances in Recent Technologies in Communication and Computing (ARTCom), 20-21 Sept, Bangalore, IET, ISBN: 978-1-84919-842-4, 223-228. Furer, M. (2007). Faster integer multiplication. Proc. of the ACM Symposium on Theory of Computing. Karatsuba, A., & Ofman, Y. (1963). Multiplication of multidigit numbers on automata. English Translation in Soviet Physics Doklady. Madke, D., & Zafar, S. (2014). Polynomial multiplication using Karatsuba and Nikhilam Sutra. International Journal of Advanced Research in Computer Science and Software Engineering, 4 (6), 1423-1428. Mishra, S., & Pradhan, M. (2012). Synthesis comparison of Karatsuba multiplierusing polynomial multiplication, vedic multiplier and classical multiplier. International Journal of Computer Applications, 41 (9), 13-17. Patil, S., Manjunatha, D. V., & Kiran, D. (2014). Design of speed and power efficient multipliers using vedic mathematics with VLSI implementation. International Conference on Advances in Electronics, Computers and Communications (ICAECC), 10-11 Oct., Bangalore, IEEE, DOI: 10.1109/ICAECC.2014. 7002484, 1-6.

Can Eyupoglu / Procedia - Social and Behavioral Sciences 195 ( 2015 ) 1959 1965 1965 Schonhage, A., Strassen, V., & Zanichelli, F. (1971). Schnelle Multiplikation grosser Zahlen. Computing 7. Sriskandarajah, J. (2003). Secrets of Ancient Maths: Vedic Mathematics. Journal of Indic Studies Foundation, 15-16. Tirthaji, B. K. M. (1992). Vedic mathematics. Motilal Banarsidass Publication.