From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,bc4137777a63bff X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!news.glorb.com!border1.nntp.dca.giganews.com!local01.nntp.dca.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail NNTP-Posting-Date: Fri, 29 Jul 2005 03:37:15 -0500 From: tmoran@acm.org Newsgroups: comp.lang.ada Subject: Re: Help needed for ada package References: X-Newsreader: Tom's custom newsreader Message-ID: Date: Fri, 29 Jul 2005 03:37:15 -0500 NNTP-Posting-Host: 24.6.143.98 X-Trace: sv3-cHpO4NTmwMqpnzCzjFdez9JKegXOJ8tU2bn2xYMNJvlCLOS8iappIz2w4/u3k0ko1sTJmuLZZ45/GvN!O9tO7XYpGSdCTGQInR6QNJdIQ98eumBIvBK4JtxXtuGt6YMPJhXb0jXq0AqdieacmT0M9ExzcHc= X-Complaints-To: abuse@comcast.net X-DMCA-Complaints-To: dmca@comcast.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.32 Xref: g2news1.google.com comp.lang.ada:3831 Date: 2005-07-29T03:37:15-05:00 List-Id: > type Association_Matrix is array (Id'First .. Id'Last) of >Association_Vector; > pragma Pack(Association_Matrix); > -- 1_000_000 rows of 125_000 bytes is 125_000_000_000 bytes > -- very fat, 125GB Remember that a symmetric array A(1 .. N, 1 .. N) can be stored in half the space as a vector V(1 .. (N*(N+1))/2), where A(i,j) is at V((max(i,j)*(max(i,j)-1))/2+min(i,j))