I am having trouble interpreting what this programming assignment means, can someone point me out on how to get started. I can use C++ or Java.
Input is a single dimensional array that represents a partition P on the set S with n-elements. Write a function that will convert this partition P into a 2-dimensional array that represents the Equivelence-relation R on S. Write a second function that will convert a Equivelence-relation into the partition P. Print out both relation and partitions.
Get Me Started
Started by gammaman, Feb 15 2009 05:53 PM
4 replies to this topic
#1
Posted 15 February 2009 - 05:53 PM
|
|
|
#2
Posted 15 February 2009 - 09:44 PM
Did you ask your teacher for any more greater details or was that it that was given to you?
jQuery Selectors Tutorial - jQuery Striped Table tutorial - jQuery Events - jQuery Validation
Sorry if I don't post as often as I did, I'll try to get here as much as possible! I'm working my bum off to get this scholarship and other stuff!
#3
Posted 16 February 2009 - 04:44 AM
This is the most information he is willing to give us.
#4
Posted 16 February 2009 - 07:26 AM
Ok lets see..
I like using C++ better than Java to handle arrays.. so lets try with it.
do you know how many locations has the array?
"on the 'set' S with n-elements" are you guys working with sets?
I like using C++ better than Java to handle arrays.. so lets try with it.
Quote
Input is a single dimensional array that represents a partition P on the set S with n-elements
do you know how many locations has the array?
"on the 'set' S with n-elements" are you guys working with sets?
#5
Posted 16 February 2009 - 08:17 AM
Start by thinking about some sample data for input and what the output data would look like. Then move on to how to store that data in the specified data structures.


Sign In
Create Account


Back to top









