set intersection -> true/false
- From: oanacb@xxxxxxxxx
- Date: 30 May 2005 07:17:42 -0700
hi,
i am looking for an algorithm that without calculating/storing the
result of a set intersection (i have rather large sets...and a lot of
them) gives just a bool value - true : the sets have an non-void
intersection; or - false : the sets are disjoint. So to say, it stops
after it finds the first common element of the two sets.
If i write it myself, even if it stops, the function still takes
a lot of time :( ; much faster it goes with STL set-intersection but
then of course the whole intersection set is computed.
thanks a lot! grateful for any ideas...
.
- Follow-Ups:
- Re: set intersection -> true/false
- From: Casey Hawthorne
- Re: set intersection -> true/false
- From: Jon Harrop
- Re: set intersection -> true/false
- From: Willem
- Re: set intersection -> true/false
- Prev by Date: Re: Creationist software engineering? A frightening possibility!
- Next by Date: Re: set intersection -> true/false
- Previous by thread: Filemanager: Threaded file operations?
- Next by thread: Re: set intersection -> true/false
- Index(es):
Relevant Pages
|