This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.
View Full Document
Unformatted text preview: OR 320/520 Optimization I 11/013/07 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/30/2008 for the course ORIE 320 taught by Professor Bland during the Fall '07 term at Cornell University (Engineering School).
 Fall '07
 BLAND

Click to edit the document details