Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #27803
| Path | csiph.com!usenet.pasdenom.info!aioe.org!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Eric Sosman <esosman@comcast-dot-net.invalid> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: JAVA MathSET API |
| Date | Thu, 20 Mar 2014 17:35:04 -0400 |
| Organization | A noiseless patient Spider |
| Lines | 45 |
| Message-ID | <lgfmub$miv$1@dont-email.me> (permalink) |
| References | <3072d913-c0a8-4dc0-a957-2f761a4b7da1@googlegroups.com> <b5e64014-476e-4332-82e7-15b153f0d5d0@googlegroups.com> <lgfcll$3fu$1@dont-email.me> <49237003-c1ce-4ccf-b9be-f68dda0be43d@googlegroups.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| Injection-Date | Thu, 20 Mar 2014 21:35:07 +0000 (UTC) |
| Injection-Info | mx05.eternal-september.org; posting-host="bd4e1cba8d8592bec5d5ed9e4537fbfd"; logging-data="23135"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX183bUjwSoIK4JUt3FrgewMD" |
| User-Agent | Mozilla/5.0 (Windows NT 5.1; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 |
| In-Reply-To | <49237003-c1ce-4ccf-b9be-f68dda0be43d@googlegroups.com> |
| Cancel-Lock | sha1:1pTkWfynM9QV/e0icpF9AjveF+8= |
| Xref | csiph.com comp.lang.java.programmer:27803 |
Show key headers only | View raw
On 3/20/2014 4:39 PM, Kai wrote:
> On Thursday, March 20, 2014 10:39:46 PM UTC+4, Eric Sosman wrote:
>> On 3/20/2014 1:34 PM, Kai wrote:
>>> On Thursday, March 6, 2014 10:13:46 PM UTC+4, Kai wrote:
>>>> I want to implement a mathematical set of strings using the JAVA API MathSET.
>>>> Is there anything you can suggest for this implementation.
>>>
>>> I meant the type of set where we have union, intersection, etc.. I need to implement it using "mathSET API". Hashing also will be involved. Anyone can help for the implementation please?
>>
>> What's your difficulty?
>>
>> If by "JAVA API MathSET" you mean the class documented at
>> <http://math-it.org/java/docs/org/mathIT/algebra/MathSet.html>,
>> it looks like everything you ask is already done: Just grab the
>> class and start using it.
>>
>> If by "JAVA API MathSET" you mean some other class, tell us
>> what other class you mean and where we can find out about it.
>>
>> ... besides which, the included-with-Java classes that
>> implement the java.util.Set interface already provide union and
>> intersection via the addAll() and retainAll() methods, respectively.
>>
>> So, again: What problems are you having?
>
> You really helped, thanks. I'm starting having ideas on it now. But, frankly, I am kind of new to these types of data structures and don't know how to use the documentation(still learning stage), like the link you sent. I need a small example on how to implement using the documentation, e.g for the superset or subset. Then I'll be able to complete the remaining methods. :/
You *still* haven't described what you're trying to do! What
do you mean by "the superset," for example? You probably don't
want to enumerate all supersets of a given set, which would require
infinite time. If you're trying to test whether set S1 is a superset
of set S2, just find their intersection and compare its size to S2's.
Also, you *still* haven't explained what kind of difficulty you
are having! The documentation for the Set interface and for the
MathSet class seem clear enough; what can I add to what they've
already told you?
(Surmise: Kai, do you know how to write Java? If you're just
starting to learn the language, a "small example" isn't going to
be a whole lot of help ...)
--
Eric Sosman
esosman@comcast-dot-net.invalid
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
JAVA MathSET API Kai <indivarf11@gmail.com> - 2014-03-06 10:13 -0800
Re: JAVA MathSET API Martin Gregorie <martin@address-in-sig.invalid> - 2014-03-06 20:53 +0000
Re: JAVA MathSET API Jeff Higgins <jeff@invalid.invalid> - 2014-03-06 16:19 -0500
Re: JAVA MathSET API Lew <lewbloch@gmail.com> - 2014-03-12 18:04 -0700
Re: JAVA MathSET API "Qu0ll" <Qu0llSixFour@gmail.com> - 2014-03-13 13:19 +1100
Re: JAVA MathSET API Jeff Higgins <jeff@invalid.invalid> - 2014-03-06 16:01 -0500
Re: JAVA MathSET API Eric Sosman <esosman@comcast-dot-net.invalid> - 2014-03-06 20:24 -0500
Re: JAVA MathSET API Kai <indivarf11@gmail.com> - 2014-03-20 10:34 -0700
Re: JAVA MathSET API Eric Sosman <esosman@comcast-dot-net.invalid> - 2014-03-20 14:39 -0400
Re: JAVA MathSET API Kai <indivarf11@gmail.com> - 2014-03-20 13:39 -0700
Re: JAVA MathSET API Eric Sosman <esosman@comcast-dot-net.invalid> - 2014-03-20 17:35 -0400
Re: JAVA MathSET API Kai <indivarf11@gmail.com> - 2014-03-21 00:34 -0700
csiph-web