Re: 450,000x450,000 array: The best programming language to handle it
- From: Richard Heathfield <invalid@xxxxxxxxxxxxxxx>
- Date: Mon, 30 Oct 2006 13:12:28 +0000
francescomoi@xxxxxxx said:
Hi.
I'd like to create a program to handle data (natural
numbers) within a 450,000 x 450,000 array.
202500000000 elements. Let's assume for the sake of argument that they are
32-bit ints on a platform where bytes are 8 bits wide. That means our
storage requirement is 810000000000 bytes, or 791015625 KB, or 772476 MB,
or 754 GB. That's going to be a challenge for any computer, is it not? So
you might want to explore other options...
Which is
the best programming language? I'm considering C, PHP
or Perl.
I don't think the language is the issue here, and anyway "Which is the best
programming language" is the stuff that holy wars are made on.
Or is there any better solution instead of arrays?
If most of your array elements will share one given value (typically 0),
consider the possibility of sparse arrays. Realistically, I don't think
you've given sufficient information about your needs for anyone to provide
a more helpful answer (although I'm always willing to be proved wrong!).
--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at above domain (but drop the www, obviously)
.
- References:
- 450,000x450,000 array: The best programming language to handle it
- From: francescomoi
- 450,000x450,000 array: The best programming language to handle it
- Prev by Date: 450,000x450,000 array: The best programming language to handle it
- Next by Date: Re: finding primes
- Previous by thread: 450,000x450,000 array: The best programming language to handle it
- Next by thread: Re: 450,000x450,000 array: The best programming language to handle it
- Index(es):
Relevant Pages
|