home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!dtix!darwin.sura.net!tulane!uflorida!mailer.cc.fsu.edu!fsu1.cc.fsu.edu!rose
- From: rose@fsu1.cc.fsu.edu (Kermit Rose)
- Newsgroups: sci.math
- Subject: Re: ? Quick algorithm for random covering sets ?
- Message-ID: <1992Jul18.233109.4713@mailer.cc.fsu.edu>
- Date: 23 Jul 92 18:01:41 GMT
- References: <SQUASH.92Jul17215435@bourbaki.msri.org> <1992Jul18.131603.26814@mailer.cc.fsu.edu>
- Reply-To: rose@fsu1.cc.fsu.edu
- Organization: Florida State University
- Lines: 28
- News-Software: VAX/VMS VNEWS 1.3-4
-
- In article <1992Jul18.131603.26814@mailer.cc.fsu.edu>, rose@fsu1.cc.fsu.edu (Kermit Rose) writes...
- >In article <SQUASH.92Jul17215435@bourbaki.msri.org>, squash@bourbaki.msri.org (Jonathan King) writes...
- >>Do any of you have a suggestion for a "fast" algorithm which:
- >> Given positive integers D > K > 2, the algorithm hands me K "random"
- >>non-empty subsets of {1,...,D} whose union is all of {1,...,D} and with no
- >>element common to all K sets.
- >>
- >>"Fast" doesn't have a technical definition here, -the algorithm needs to go
- >>inside a deeply nested loop. "Random" isn't precise either but at least the
- >>probability that element d is in set S_k should be close to independent of d.
- >>
- >>I'm looking for a easily-programmable, practical algorithm, even if it has
- >>theoretical shortcomings. -Jonathan, squash@math.ufl.edu
- >
- > Here is a FAST algorithm. Use a random number generator which returns an
- integer in the range {1,2,....K} each time it is called. Then for j =
- 1,2,3,.....D, call this random number generator to give the number s_j.
- Put j in subset number s_j.
-
- It is possible that we could make your program run MUCH faster by figuring
- out how to make it unnecessary to have this random generation withing the
- deeply nested loop. Is the problem too complicated to post or describe in
- e-mail. Perhaps I or someone can suggest alternative ways to see the
- problem that will take less calculation.
- >
- >rose@fsu1.cc.fsu.edu To be sure I see your response, use e-mail.
- -----------------------------------------------------------------------
- Be of good cheer, for it is much more fun than being depressed.
-