sparsity - OR 3300/5300 Optimization I Fall 2011 Professor...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: OR 3300/5300 Optimization I Fall 2011 Professor Bland Sparsity and Packed Storage Assume we have an m × n constraint matrix A , where m and n are large, but σ (the fraction of entries in A that are nonzero) is very small. Then rather than store A explicitly, we can store only the nonzero entries by the following scheme. The arrays V AL ( · ) and ROW ( · ) each have length equal to the number of nonzeros in A , which is σmn . We scan A by columns, starting from column 1 and enter sequentially the value of each nonzero entry and its row number in V AL ( ) and ROW ( ) respectively. Consider an example where: m = 1 , 000; n = 10 , 000, σmn = 125 , 000 and • column 1 has 4 nonzero entries: a 72 , 1 = 1; a 416 , 1 =- 1; a 483 , 1 = 6; a 640 , 1 = 3 • column 2 has 5 nonzero entries: a 46 , 2 = . 5; a 47 , 2 = 4; a 189 , 2 =- 2; a 352 , 2 = 1; a 810 , 2 = 1 • column 3 has 8 nonzero entries: a 212 , 3 = 2 ,... ....
View Full Document

This note was uploaded on 03/08/2012 for the course ORIE 3300 at Cornell.

Page1 / 2

sparsity - OR 3300/5300 Optimization I Fall 2011 Professor...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online