Internet Chess-Like Game and Simultaneous Linear Equations.

Slides:



Advertisements
Similar presentations
2. Review of Matrix Algebra Dr. Ahmet Zafer Şenalp Mechanical Engineering Department Gebze Technical.
Advertisements

Using Sparse Matrix Reordering Algorithms for Cluster Identification Chris Mueller Dec 9, 2004.
Tossing Coin Game and Linear Programming Big_M Simplex Algorithms Duc Nguyen, Old Dominion University, USA Yuzhong Shen, Old Dominion University, USA Ahmed.
MATH 685/ CSI 700/ OR 682 Lecture Notes
Solving Linear Systems (Numerical Recipes, Chap 2)
Systems of Linear Equations
SOLVING SYSTEMS OF LINEAR EQUATIONS. Overview A matrix consists of a rectangular array of elements represented by a single symbol (example: [A]). An individual.
CISE301_Topic3KFUPM1 SE301: Numerical Methods Topic 3: Solution of Systems of Linear Equations Lectures 12-17: KFUPM Read Chapter 9 of the textbook.
Lecture 9: Introduction to Matrix Inversion Gaussian Elimination Sections 2.4, 2.5, 2.6 Sections 2.2.3, 2.3.
Refresher: Vector and Matrix Algebra Mike Kirkpatrick Department of Chemical Engineering FAMU-FSU College of Engineering.
Solution of linear system of equations
Chapter 9 Gauss Elimination The Islamic University of Gaza
Linear Algebraic Equations
Part 3 Chapter 10 LU Factorization PowerPoints organized by Dr. Michael R. Gustafson II, Duke University All images copyright © The McGraw-Hill Companies,
Special Matrices and Gauss-Siedel
Ch 7.8: Repeated Eigenvalues
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 17 Solution of Systems of Equations.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 14 Elimination Methods.
Special Matrices and Gauss-Siedel
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 15 Solution of Systems of Equations.
ECIV 520 Structural Analysis II Review of Matrix Algebra.
ECIV 301 Programming & Graphics Numerical Methods for Engineers REVIEW II.
MOHAMMAD IMRAN DEPARTMENT OF APPLIED SCIENCES JAHANGIRABAD EDUCATIONAL GROUP OF INSTITUTES.
Mujahed AlDhaifallah (Term 342) Read Chapter 9 of the textbook
Systems of Linear Equations
1 Operations with Matrice 2 Properties of Matrix Operations
Chapter 7 Matrix Mathematics Matrix Operations Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Chapter 8 Objectives Understanding matrix notation.
Numerical Methods Discrete Fourier Transform Part: Discrete Fourier Transform
Copyright © Cengage Learning. All rights reserved. CHAPTER 11 ANALYSIS OF ALGORITHM EFFICIENCY ANALYSIS OF ALGORITHM EFFICIENCY.
LU Decomposition 1. Introduction Another way of solving a system of equations is by using a factorization technique for matrices called LU decomposition.
Chapter 10 Review: Matrix Algebra
Advanced Computer Graphics Spring 2014 K. H. Ko School of Mechatronics Gwangju Institute of Science and Technology.
SYSTEMS OF EQUATIONS MATRIX SOLUTIONS TO LINEAR SYSTEMS
Presenter : Kuang-Jui Hsu Date : 2011/5/3(Tues.).
Introduction to Numerical Analysis I MATH/CMPSC 455 PA=LU.
Simpson Rule For Integration.
Solving System Of Linear Equations 线性方程组 二元一次方程组.
Numerical Methods Part: Cholesky and Decomposition
WEEK 8 SYSTEMS OF EQUATIONS DETERMINANTS AND CRAMER’S RULE.
ΑΡΙΘΜΗΤΙΚΕΣ ΜΕΘΟΔΟΙ ΜΟΝΤΕΛΟΠΟΙΗΣΗΣ 4. Αριθμητική Επίλυση Συστημάτων Γραμμικών Εξισώσεων Gaussian elimination Gauss - Jordan 1.
Numerical Methods Part: Simpson Rule For Integration.
Copyright © 2013, 2009, 2005 Pearson Education, Inc. 1 5 Systems and Matrices Copyright © 2013, 2009, 2005 Pearson Education, Inc.
1 20-Oct-15 Last course Lecture plan and policies What is FEM? Brief history of the FEM Example of applications Discretization Example of FEM softwares.
Numerical Methods Fast Fourier Transform Part: Informal Development of Fast Fourier Transform
 6.2 Pivoting Strategies 1/17 Chapter 6 Direct Methods for Solving Linear Systems -- Pivoting Strategies Example: Solve the linear system using 4-digit.
Numerical Methods Fast Fourier Transform Part: Theoretical Development of Fast Fourier Transform
Lecture 7 - Systems of Equations CVEN 302 June 17, 2002.
Solving Linear Systems of Equations
Linear algebra: matrix Eigen-value Problems Eng. Hassan S. Migdadi Part 1.
Solution of Sparse Linear Systems
Tetris Agent Optimization Using Harmony Search Algorithm
Chapter 9 Gauss Elimination The Islamic University of Gaza
1 Section 5.3 Linear Systems of Equations. 2 THREE EQUATIONS WITH THREE VARIABLES Consider the linear system of three equations below with three unknowns.
ECE 530 – Analysis Techniques for Large-Scale Electrical Systems Prof. Hao Zhu Dept. of Electrical and Computer Engineering University of Illinois at Urbana-Champaign.
Consider Preconditioning – Basic Principles Basic Idea: is to use Krylov subspace method (CG, GMRES, MINRES …) on a modified system such as The matrix.
ECE 530 – Analysis Techniques for Large-Scale Electrical Systems Prof. Hao Zhu Dept. of Electrical and Computer Engineering University of Illinois at Urbana-Champaign.
Unit #1 Linear Systems Fall Dr. Jehad Al Dallal.
Conjugate gradient iteration One matrix-vector multiplication per iteration Two vector dot products per iteration Four n-vectors of working storage x 0.
Lecture 9 Numerical Analysis. Solution of Linear System of Equations Chapter 3.
Engineering Analysis ENG 3420 Fall 2009 Dan C. Marinescu Office: HEC 439 B Office hours: Tu-Th 11:00-12:00.
1 Numerical Methods Solution of Systems of Linear Equations.
ECE 3301 General Electrical Engineering
Spring Dr. Jehad Al Dallal
Numerical Methods Part: Cholesky and Decomposition
Chapter 10: Solving Linear Systems of Equations
Review of Matrix Algebra
Numerical Analysis Lecture10.
Major: All Engineering Majors Authors: Autar Kaw
Numerical Analysis Lecture11.
Presentation transcript:

Internet Chess-Like Game and Simultaneous Linear Equations. Duc Nguyen , Old Dominion University, USA Ahmed Ali Mohammed , Old Dominion University, USA Subhash Chandra Bose Kadiam , Old Dominion University, USA

Introduction Solving large (and sparse) system of simultaneous linear equations (SLE) has been (and continue to be) a major challenging problem for many real-world engineering/science applications [1-2]. In matrix notation, the SLE can be represented as: (1) where [A] = known coefficient matrix, with dimension NxN {b} = known right-hand-side (RHS) Nx1 vector {x} = unknown Nx1 vector.

Symmetrical Positive Definite (SPD) SLE For many practical SLE, the coefficient matrix [A] (see Eq.1) is SPD. In this case, efficient 3-step Cholesky algorithms [1-2] can be used. Step 1: Matrix Factorization Phase (2) (3)

Symmetrical Positive Definite (SPD) SLE (4) (5)

Symmetrical Positive Definite (SPD) SLE (6) (7) As a quick example, one computes: (8) Thus, for computing one only needs to use the (already computed) data in columns # i(=5), and # j(=7) of [U], respectively.

Symmetrical Positive Definite (SPD) SLE Step 2: Forward Solution phase Substituting Eq. (2) into Eq. (1), one gets: (9) Let’s define: (10) Then, Eq. (9) becomes: (11)

Symmetrical Positive Definite (SPD) SLE (12) (13) (14)

Symmetrical Positive Definite (SPD) SLE Similarly: (15) In general, one has (16)

Symmetrical Positive Definite (SPD) SLE Step 3: Backward Solution phase (17) hence (18) hence (19) Similarly: (20)

Symmetrical Positive Definite (SPD) SLE (21) In general, one has (22)

Algorithm. If the coefficient matrix [A] is symmetrical but not necessary positive definite, then the above Cholesky algorithms will not be valid. In this case, the following algorithms can be employed: (23) For example, (24)

Algorithm. (25) (26)

Algorithm. Step1: Factorization phase (23, repeated) Step 2: Forward solution and diagonal scaling phase Substituting Eq. (23) into Eq.(1), one gets: (27)

Algorithm. Let’s define: (28) (29) Then Eq. (27) becomes: (30) Step 3: Backward solution phase In this step, Eq. (28) can be efficiently solved for the original unknown vector

Re-Ordering Algorithms for Minimizing Fill-in Terms (31) (32)

Re-Ordering Algorithms for Minimizing Fill-in Terms The Cholesky factorization matrix [U], based on the original matrix [A] (see Eq. 31) and Eqs. (6-7), can be symbolically computed as: (33)

Re-Ordering Algorithms for Minimizing Fill-in Terms IPERM (new equation #) = {old equation #} (34) such as, for this example: (35)

Re-Ordering Algorithms for Minimizing Fill-in Terms (36) and (37)

Re-Ordering Algorithms for Minimizing Fill-in Terms Now, one would like to solve the following modified system of linear equations (SLE) for (38) rather than to solve the original SLE (see Eq.1). The original unknown vector can be easily recovered from and shown in Eq. (35).

Re-Ordering Algorithms for Minimizing Fill-in Terms The factorized matrix can be “symbolically” computed from as: (39)

On-Line Chess-Like Game For Reordering/Factorized Phase [4]. Figure 1: A Chess-Like Game For Learning to Solve SLE.

On-Line Chess-Like Game For Reordering/Factorized Phase [4]. Figure 2: Another Chess-Like Game For Learning to Solve SLE.

Further Explanation of the Developed Game In the above Chess-Like Game, which is available on-line [4], powerful features of FLASH computer environments [3], such as animated sound, human voice, motions, graphical colors etc… have all been incorporated and programmed into the developed game-software for more appealing to game players/learners. In the developed “Chess-Like Game”, fictitious monetary (or any kind of ‘scoring system”) is rewarded (and broadcasted by computer animated human voice) to game players based on how he/she swaps the node (or equation) numbers, and consequently based on how many fill-in “F” terms occurred.

Further Explanation of the Developed Game 3. Based on the original/given matrix [A], and existing re-ordering algorithms (such as the Reverse Cuthill-Mckee, or RCM algorithms [1-2]) the number of fill-in (“F”) terms can be computed (using RCM algorithms). These internally generated information will be used to judge how good the players/learners are, and/or broadcasting “congratulation message” to a particular player who discovers a new (swapping node) strategies which are even better than RCM algorithms! 4. Initially, the player(s) will select the matrix size (8x8, or larger is recommended), and the percentage (50%, or larger is suggested) of zero-terms (or sparsity of the matrix). Then, “START Game” icon will be clicked by the player.

Further Explanation of the Developed Game 5. The player then CLICK one of the selected node “i” (or equation) number appeared on the computer screen. The player will see those nodes “j” which are connected to node “i” (based on the given/generated matrix [A]). The player then has to decide to swap node “i” with which of the possible node “j”. After confirming the player’s decision, the outcomes/results will be announced by the computer animated human voice, and the money-award will (or will NOT) be given to the players/learners, accordingly.

Further Explanation of the Developed Game In this software, a maximum of $1,000,000 can be earned by the player, and the “exact dollar amount” will be INVERSELY proportional to the number of fill-in terms occurred (as a consequence of the player’s decision on how to swap node “i” with another node “j”). 6. The next player will continue to play, with his/her move (meaning to swap the ith node with the jth node) based on the current best non-zero terms pattern of the matrix.

Acknowledgements   The authors would like to acknowledge the partial supports, provided in this work through the National Science Foundation (NSF Grant #0836916). References   Duc T. Nguyen. (2006). Finite Element Methods: Parallel-Sparse Statics and Eigen-Solutions, Springer Publishers. Duc T. Nguyen. (2002). Parallel-vector Equation Solvers for Finite Element Engineering Applications, Kluwer Academic/Plenum Publishers

References www.brothersoft.com/downloads/flash-animation- software.html.   http://www.lions.odu.edu/~amoha006/Fillinterms/ FILLINTERMS.html Nassif Ghoussoub and Amir Moradifam. Simultaneous preconditioning and symmetrization of non-symmetric linear systems. Department of Mathematics, University of British Columbia.