Re: 450,000x450,000 array: The best programming language to handle it



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)
.



Relevant Pages

  • Re: Puppy Mastiff wants to Nip at Faces
    ... in my first college textbook on structured programming. ... they did was loop through an array to show how you could easily ... design, PIC code, and real time programming. ...
    (rec.pets.dogs.behavior)
  • Re: LISPPA
    ... > The abstract mathematical definition doesn't cope too well ... programming languages which do not allow to write bad programs, ... definition of array? ...
    (comp.lang.lisp)
  • Re: How do i change numerics into binary numbers?
    ... my first time trying out on programming. ... how do I extract the output from the user to make it an array? ... Those are needed details. ... what you expect for input, (even if you know that it may be garbage, you have ...
    (microsoft.public.vb.general.discussion)
  • Re: Bug/Gross InEfficiency in HeathFields fgetline program
    ... Maybe this is true in the sort of programming you do, ... you are storing a list of amounts of money as integers. ... int average ... the array, rounded towards zero. ...
    (comp.lang.c)
  • Re: Puppy Mastiff wants to Nip at Faces
    ... in my first college textbook on structured programming. ... they did was loop through an array to show how you could easily access ...   and improve your crack pot licensing fee calculator. ...
    (rec.pets.dogs.behavior)