home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.pascal
- Path: sparky!uunet!elroy.jpl.nasa.gov!swrinde!zaphod.mps.ohio-state.edu!news.acns.nwu.edu!casbah.acns.nwu.edu!delusion
- From: delusion@casbah.acns.nwu.edu (Albert Schmezer)
- Subject: LARGE Sorts and such...
- Message-ID: <1993Jan3.222248.18162@news.acns.nwu.edu>
- Sender: usenet@news.acns.nwu.edu (Usenet on news.acns)
- Nntp-Posting-Host: unseen1.acns.nwu.edu
- Organization: Northwestern University, Evanston Illinois.
- Date: Sun, 3 Jan 1993 22:22:48 GMT
- Lines: 23
-
- Hello all, again. I am in the midst of a large programming project,
- and have come across an interesting stumbling block. I hope this isn't a FAQ.
- If it is, could someone direct me to the source of the answer?
-
- Anyways, for the question: How does one go about, in TurboPascal,
- sorting an array of IMMENSE proportions? What I mean is that I am making a
- database-type program, and I have at least 10,000 items in the database. How
- can I sort 10,000 items? They won't even fit into an array! If I can't sort
- them, how can I at least index them? I really need the ability to sort these
- LARGE amounts of information. If it were only 500 or even 1000 entries, it
- wouldn't be a problem - I would use a Quicksort or Heapsort routine, but
- 10,000 or 100,000 presents a grave problem. Is there a way to make use of a
- temporary file on the harddrive? How slow is this? How would I even go about
- doing this? Can I stick groups of 100 or so into an array and integrate the
- sorts? How would I do this?! Is this slow, too?
-
- Once again, if this is a FAQ, I apologize, and would like to be
- referred to the source of the answer of this problem. It is a very important
- problem to be solved, though, so I would appreciate any help at all in this.
-
- Thanx in advance!
- <<delusion
-
-