Search:

Type: Posts; User: ZING14

Search: Search took 0.00 seconds.

  1. set hold to true for each index i set a =...

    set hold to true
    for each index i
    set a = A[i]
    set b = B[i]
    set hold to false
    for each index j
    if A[j] is b
    if B[j] is a
    set hold to true
    break
  2. I've modified it a bit but it wants me to create...

    I've modified it a bit but it wants me to create pointers to the objects a[i] and b[i] I don't know why.



    void reflexive(int a[], int sizeOfA, int b[], int sizeOfB)
    {
    bool hold = true;...
  3. Ok, thank you for being patient with me walla. I...

    Ok, thank you for being patient with me walla. I believe this is close. I should be getting reflexive for sets 1 and 3. Although, it gave me reflexive for all of them which I know is wrong. Is one...
  4. My new reflexive function : void...

    My new reflexive function :


    void reflexive(int a[], int sizeOfA, int b[], int sizeOfB)
    {
    bool hold = true;

    for(i = 0; i < sizeOfA && hold; ++i )
    {
    for( int...
  5. @walla - changing it to b[j]==a[i] still comes...

    @walla - changing it to b[j]==a[i] still comes back false. So implement it by saying if (a,b) and (b,c), look for (a,c)? Can you give pseudo code of what you mean? Thanks.
  6. @ bradzk - For my transitive function, your...

    @ bradzk - For my transitive function, your saying to use 3 for loops and pointers? Also, what is M? Your telling to use i,j,k. Also, what do you mean i != i for all i in my reflexive function?
  7. @walla- are you stating my reflexive does not...

    @walla- are you stating my reflexive does not work properly? Also, can you help me in the right direction for determining the transitive function? Thanks.
  8. Transitive??

    I have got all of them but transitive now... I do not know how to include c in my functions. &nbsp;Transitive means: If aRb and bRc, then aRc. Here is my reflexive function... How can I change them...
  9. Determining whether the set is reflexive, symmetric, anti symmetric and transtitive

    I am having trouble finding out how to code this. I understand what each one is and know how to tell by looking but cannot figure out how to create functions to check whether it is either reflexive,...
  10. Replies
    1
    Views
    1,348

    Why is this seg faulting????

    The program runs and everything but for values in the list more than 100 it segment faults... The purpose of this program is to run Insertionsort only if the list size is less than the threshold; for...
Results 1 to 10 of 10