Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #27695 > unrolled thread
| Started by | Kai <indivarf11@gmail.com> |
|---|---|
| First post | 2014-03-06 10:13 -0800 |
| Last post | 2014-03-21 00:34 -0700 |
| Articles | 12 — 6 participants |
Back to article view | Back to comp.lang.java.programmer
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
| From | Kai <indivarf11@gmail.com> |
|---|---|
| Date | 2014-03-06 10:13 -0800 |
| Subject | JAVA MathSET API |
| Message-ID | <3072d913-c0a8-4dc0-a957-2f761a4b7da1@googlegroups.com> |
Hello all, I want to implement a mathematical set of strings using the JAVA API MathSET. Is there anything you can suggest for this implementation. Thanks
[toc] | [next] | [standalone]
| From | Martin Gregorie <martin@address-in-sig.invalid> |
|---|---|
| Date | 2014-03-06 20:53 +0000 |
| Message-ID | <lfan7t$av$1@dont-email.me> |
| In reply to | #27695 |
On Thu, 06 Mar 2014 10:13:46 -0800, Kai wrote: > Hello all, > > I want to implement a mathematical set of strings using the JAVA API > MathSET. > Is there anything you can suggest for this implementation. > What do you mean by 'a mathematical set of strings' - a set of strings containing mathematical expressions that can be evaluated once values have been supplied for all variables? If so, I think something like Coco/R or Yacc/M may come in quite useful... -- martin@ | Martin Gregorie gregorie. | Essex, UK org |
[toc] | [prev] | [next] | [standalone]
| From | Jeff Higgins <jeff@invalid.invalid> |
|---|---|
| Date | 2014-03-06 16:19 -0500 |
| Message-ID | <lfaor6$gci$1@dont-email.me> |
| In reply to | #27696 |
On 03/06/2014 03:53 PM, Martin Gregorie wrote: > On Thu, 06 Mar 2014 10:13:46 -0800, Kai wrote: > >> Hello all, >> >> I want to implement a mathematical set of strings using the JAVA API >> MathSET. >> Is there anything you can suggest for this implementation. >> > What do you mean by 'a mathematical set of strings' - a set of strings > containing mathematical expressions that can be evaluated once values > have been supplied for all variables? > > If so, I think something like Coco/R or Yacc/M may come in quite useful... > > I think he means a Set implementation with union, intersection, complement, product, etc. It's somewhat surprising how many x.x.x.MathSet implementations turn up on Google.
[toc] | [prev] | [next] | [standalone]
| From | Lew <lewbloch@gmail.com> |
|---|---|
| Date | 2014-03-12 18:04 -0700 |
| Message-ID | <e0da09e8-0eb9-4848-ba24-63030efacb81@googlegroups.com> |
| In reply to | #27698 |
Jeff Higgins wrote: > Martin Gregorie wrote: >> Kai wrote: >>> Hello all, >>> I want to implement a mathematical set of strings using the JAVA API >>> MathSET. >>> Is there anything you can suggest for this implementation. 'java.util.Set'. >> What do you mean by 'a mathematical set of strings' - a set of strings >> containing mathematical expressions that can be evaluated once values >> have been supplied for all variables? >> >> If so, I think something like Coco/R or Yacc/M may come in quite useful... > > I think he means a Set implementation with > union, http://docs.oracle.com/javase/7/docs/api/java/util/Set.html#addAll(java.util.Collection) > intersection, http://docs.oracle.com/javase/7/docs/api/java/util/Set.html#removeAll(java.util.Collection) > complement, Set<Foo> universal = new HashSet<>(); ... Set<Foo> example = ... Set<Foo> complement = universal.removeAll(example); > product, etc. It's somewhat surprising how many Produce a Set<Foo, Foo> from two sets via an algorithm of your own devise. > x.x.x.MathSet implementations turn up on Goo'gle. So, basically, there's nothing to do except implement a "universal" set and a 'product(Set<Foo> x,y -> Set<Foo,Foo>)' (loose syntax here). -- Lew
[toc] | [prev] | [next] | [standalone]
| From | "Qu0ll" <Qu0llSixFour@gmail.com> |
|---|---|
| Date | 2014-03-13 13:19 +1100 |
| Message-ID | <lfr4lj$gjn$1@speranza.aioe.org> |
| In reply to | #27746 |
"Lew" wrote in message news:e0da09e8-0eb9-4848-ba24-63030efacb81@googlegroups.com... > Produce a Set<Foo, Foo> from two sets via an algorithm of your own devise. What is this Set<Foo, Foo> you speak of? -- And loving it, -Qu0ll (Rare, not extinct) _________________________________________________ Qu0llSixFour@gmail.com [Replace the "SixFour" with numbers to email me]
[toc] | [prev] | [next] | [standalone]
| From | Jeff Higgins <jeff@invalid.invalid> |
|---|---|
| Date | 2014-03-06 16:01 -0500 |
| Message-ID | <lfanoo$7re$1@dont-email.me> |
| In reply to | #27695 |
On 03/06/2014 01:13 PM, Kai wrote:
> Hello all,
>
> I want to implement a mathematical set of strings using the JAVA API MathSET.
> Is there anything you can suggest for this implementation.
>
> Thanks
>
public class MathSetImpl {
public static void main(String[] args) {
MathSet<String> mathematicalSetOfStrings = new MathSet<String>();
}
}
[toc] | [prev] | [next] | [standalone]
| From | Eric Sosman <esosman@comcast-dot-net.invalid> |
|---|---|
| Date | 2014-03-06 20:24 -0500 |
| Message-ID | <lfb74s$i4t$1@dont-email.me> |
| In reply to | #27695 |
On 3/6/2014 8:19 PM, Stefan Ram wrote:
> Kai <indivarf11@gmail.com> writes:
>> I want to implement a mathematical set
>
> What is the difference between a mathematical set and a set?
>
> What would be »an implementation of the Cantor set«?
I've written a class that implements it, but the constructor
seems to be taking quite a long time.
;-)
--
Eric Sosman
esosman@comcast-dot-net.invalid
[toc] | [prev] | [next] | [standalone]
| From | Kai <indivarf11@gmail.com> |
|---|---|
| Date | 2014-03-20 10:34 -0700 |
| Message-ID | <b5e64014-476e-4332-82e7-15b153f0d5d0@googlegroups.com> |
| In reply to | #27695 |
On Thursday, March 6, 2014 10:13:46 PM UTC+4, Kai wrote: > Hello all, > > > > I want to implement a mathematical set of strings using the JAVA API MathSET. > > Is there anything you can suggest for this implementation. > > > > Thanks 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?
[toc] | [prev] | [next] | [standalone]
| From | Eric Sosman <esosman@comcast-dot-net.invalid> |
|---|---|
| Date | 2014-03-20 14:39 -0400 |
| Message-ID | <lgfcll$3fu$1@dont-email.me> |
| In reply to | #27800 |
On 3/20/2014 1:34 PM, Kai wrote:
> On Thursday, March 6, 2014 10:13:46 PM UTC+4, Kai wrote:
>> Hello all,
>>
>>
>>
>> I want to implement a mathematical set of strings using the JAVA API MathSET.
>>
>> Is there anything you can suggest for this implementation.
>>
>>
>>
>> Thanks
>
> 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?
--
Eric Sosman
esosman@comcast-dot-net.invalid
[toc] | [prev] | [next] | [standalone]
| From | Kai <indivarf11@gmail.com> |
|---|---|
| Date | 2014-03-20 13:39 -0700 |
| Message-ID | <49237003-c1ce-4ccf-b9be-f68dda0be43d@googlegroups.com> |
| In reply to | #27801 |
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: > > >> Hello all, > > >> > > >> > > >> > > >> I want to implement a mathematical set of strings using the JAVA API MathSET. > > >> > > >> Is there anything you can suggest for this implementation. > > >> > > >> > > >> > > >> Thanks > > > > > > 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? > > > > -- > > Eric Sosman > > esosman@comcast-dot-net.invalid 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. :/ Thanks again
[toc] | [prev] | [next] | [standalone]
| From | Eric Sosman <esosman@comcast-dot-net.invalid> |
|---|---|
| Date | 2014-03-20 17:35 -0400 |
| Message-ID | <lgfmub$miv$1@dont-email.me> |
| In reply to | #27802 |
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
[toc] | [prev] | [next] | [standalone]
| From | Kai <indivarf11@gmail.com> |
|---|---|
| Date | 2014-03-21 00:34 -0700 |
| Message-ID | <92b921cc-a576-45bb-9886-26ba3d28c805@googlegroups.com> |
| In reply to | #27803 |
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
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.java.programmer
csiph-web