home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / lang / pascal / 7822 < prev    next >
Encoding:
Text File  |  1993-01-03  |  1.7 KB  |  35 lines

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