Jump to content

Get Me Started

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
4 replies to this topic

#1
gammaman

gammaman

    Learning Programmer

  • Members
  • PipPipPip
  • 71 posts
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.

#2
Brandon W

Brandon W

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 4,828 posts
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
gammaman

gammaman

    Learning Programmer

  • Members
  • PipPipPip
  • 71 posts
This is the most information he is willing to give us.

#4
c0delicious

c0delicious

    Newbie

  • Members
  • PipPip
  • 18 posts
Ok lets see..
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
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
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.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog