Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #27804
| Newsgroups | comp.lang.java.programmer |
|---|---|
| Date | 2014-03-21 00:34 -0700 |
| 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> <lgfmub$miv$1@dont-email.me> |
| Message-ID | <92b921cc-a576-45bb-9886-26ba3d28c805@googlegroups.com> (permalink) |
| Subject | Re: JAVA MathSET API |
| From | Kai <indivarf11@gmail.com> |
On Friday, March 21, 2014 1:35:04 AM UTC+4, Eric Sosman wrote: > 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 Yes, sorry for not able to express myself well. I meant to do this type of subset implementation, as you mentioned above. My issue is that I need to know how to represent an implementation of the given set interface. I've studied OOP in java, I'm new to structures. I think you're right Eric, I should start from some basics of data structures. Is there any ref. you can suggest please? Thanks
Back to comp.lang.java.programmer | Previous | Next — Previous 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