CS1101: Programming Methodology Aaron Tan.

Slides:



Advertisements
Similar presentations
2.3 Modeling Real World Data with Matrices
Advertisements

Section 13-4: Matrix Multiplication
Precalculus Lesson 7.2 Matrix Algebra 4/6/2017 8:43 PM
Chapter Matrices Matrix Arithmetic
Section 4.2 – Multiplying Matrices Day 2
Maths for Computer Graphics
1 Matrix Addition, C = A + B Add corresponding elements of each matrix to form elements of result matrix. Given elements of A as a i,j and elements of.
1 Session-13 CSIT 121 Spring 2006 Test-1 is on March 9 th ; Demo-5 due date extended to March 7 Test-1 is on March 9 th ; Demo-5 due date extended to.
Arithmetic Operations on Matrices. 1. Definition of Matrix 2. Column, Row and Square Matrix 3. Addition and Subtraction of Matrices 4. Multiplying Row.
CE 311 K - Introduction to Computer Methods Daene C. McKinney
CS1101: Programming Methodology Aaron Tan.
CS1101: Programming Methodology Aaron Tan.
4.2 Operations with Matrices Scalar multiplication.
CS1101: Programming Methodology Aaron Tan.
CS1101: Programming Methodology Aaron Tan.
Mathematics for Computer Graphics. Lecture Summary Matrices  Some fundamental operations Vectors  Some fundamental operations Geometric Primitives:
CS1101: Programming Methodology Aaron Tan.
CS1101: Programming Methodology Aaron Tan.
4.4 Identify and Inverse Matrices Algebra 2. Learning Target I can find and use inverse matrix.
CS1101: Programming Methodology
Data Structure CS 322. What is an array? Initializing arrays Accessing the values of an array Multidimensional arrays LAB#1 : Arrays.
Programming Practicum Day 3: Problem Solving with Graphs Aaron Tan NUS School of Computing.
WEEK 6 Class Activities Lecturer’s slides.
Meeting 18 Matrix Operations. Matrix If A is an m x n matrix - that is, a matrix with m rows and n columns – then the scalar entry in the i th row and.
8.2 Operations With Matrices
Matrices: Simplifying Algebraic Expressions Combining Like Terms & Distributive Property.
2.2 Multiplying Matrices Mr. Anderson Pre Calculus Falconer Central High School Falconer, NY.
Multiply Matrices Chapter 3.6. Matrix Multiplication Matrix multiplication is defined differently than matrix addition The matrices need not be of the.
MATRIX A set of numbers arranged in rows and columns enclosed in round or square brackets is called a matrix. The order of a matrix gives the number of.
CS1101: Programming Methodology
Matrix Multiplication The Introduction. Look at the matrix sizes.
3.6 Multiplying Matrices Homework 3-17odd and odd.
CS 450: COMPUTER GRAPHICS TRANSFORMATIONS SPRING 2015 DR. MICHAEL J. REALE.
Table of Contents Matrices - Definition and Notation A matrix is a rectangular array of numbers. Consider the following matrix: Matrix B has 3 rows and.
Notes Over 4.2 Finding the Product of Two Matrices Find the product. If it is not defined, state the reason. To multiply matrices, the number of columns.
Do Now: Perform the indicated operation. 1.). Algebra II Elements 11.1: Matrix Operations HW: HW: p.590 (16-36 even, 37, 44, 46)
Introduction to Programming Lecture # 43. Math Library Complex number Matrix Quadratic equation and their solution …………….…
CS 285- Discrete Mathematics Lecture 11. Section 3.8 Matrices Introduction Matrix Arithmetic Transposes and Power of Matrices Zero – One Matrices Boolean.
4.3 Multiplying Matrices Dimensions matching Rows times Columns.
MTH108 Business Math I Lecture 20.
13.4 Product of Two Matrices
Sections 2.4 and 2.5 Matrix Operations
Properties and Applications of Matrices
12-1 Organizing Data Using Matrices
Linear Algebra review (optional)
Matrix Multiplication
Introduction To Matrices
Matrix Operations SpringSemester 2017.
Multiplying Matrices.
WarmUp 2-3 on your calculator or on paper..
7.3 Matrices.
Multiplying Matrices.
Inverse & Identity MATRICES Last Updated: October 12, 2005.
2.2 Introduction to Matrices
Objectives Multiply two matrices.
Multiplying Matrices.
Dimensions matching Rows times Columns
Multiplication of Matrices
3.6 Multiply Matrices.
Linear Algebra review (optional)
Matrix Operations SpringSemester 2017.
Matrix A matrix is a rectangular arrangement of numbers in rows and columns Each number in a matrix is called an Element. The dimensions of a matrix are.
Chapter 8: Lesson 8.2 Operations With Matrices
Multiplying Matrices.
Multiplying Matrices.
Matrix Multiplication Sec. 4.2
Introduction to Matrices
Announcements DS-203 Fall 2007.
Multiplying Matrices.
Presentation transcript:

CS1101: Programming Methodology Aaron Tan

2 This is Week 10  Week 9:  Chapter 10: Arrays and ArrayList s  This week:  We will complete ArrayList s  Exercise: Matrix multiplication (Matrices.java)  Chapter 11: Type Details and Alternate Coding Mechanisms  Mini-programming test

3 Exercise: Matrix Multiplication To compute C = A  B, where A, B, C are matrices  c i,j = (a i,1  b 1,j ) + (a i,2  b 2,j ) (a i,n  b n,j )  c i,j is sum of terms produced by multiplying the elements of A’s row i with B’s column j. Example on 3  3 matrices:  Please refer to MatricesSolution.java

4 Chapter 11 Let’s go to Chapter 11.

5 Mini Programming Test Refer to hand-out.

6 Exercises  Try last year’s lab #7 exercises:  Sudoku  Rabbit Jumps  Polygon  Go to course website, “Labs” page to retrieve last year’s lab write-ups: 

7 Announcement/Reminder  Lab #4  Deadline: 22 October (Wednesday), 2359 hr.  Identical codes  Please do not share codes for your lab assignments!

8 This is Week 10  Next week?  No lecture!  No discussion session!  Week 12  Chapter 14 Exception Handling  Chapter 15 Files

9 End of file