Algorithm HELP!!!

This is a discussion on Algorithm HELP!!! within the C Programming forums, part of the General Programming Boards category; ok!! i will DO IT!! and show you that i can:'(...

  1. #16
    Registered User
    Join Date
    Feb 2011
    Posts
    16
    ok!! i will DO IT!! and show you that i can:'(

  2. #17
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by alexdavid View Post
    ok!! i will DO IT!! and show you that i can:'(
    Well... that only took 16 messages....

  3. #18
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    You forgot "waist deep" on that snow, CT!

    alexdavid, you want tough, you check out Haiti after the earthquake and cholera - and having to put up with an upper class that's ripping them off, decade after decade. That's tough.

    ok!! i will DO IT!! and show you that i can:
    Just needed to tick her off, and she's good to go.
    Last edited by Adak; 02-12-2011 at 10:22 PM.

  4. #19
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by Adak View Post
    You forgot "waist deep" on that snow, CT!
    Hmmm... you're right... noted for future

  5. #20
    Registered User
    Join Date
    Feb 2011
    Posts
    16
    yes i know how many people do people have! i know, and sorry sorry sorry ( i am a woman) this is my boyfriend's user!! thanks a lot for your advices, i am just nervous on everything

  6. #21
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    Understandable, no problem.

  7. #22
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Ok... final comment then I'm done with this...

    If you are scared of computers, I'd have to suggest you may be investing in the wrong career...

  8. #23
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    She's scared because of the demands for the class, and her limited time, and etc.

  9. #24
    Registered User
    Join Date
    Feb 2011
    Posts
    16
    nonono i am not scared on computers i am really happy with my carreer it is just the time, i think is getting me out, i really LOVE COMPUTEEEERS!!!!

  10. #25
    Registered User
    Join Date
    Feb 2011
    Posts
    16
    Adak knows

  11. #26
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    I was going to start deciphering your code into C, in anticipation of your follow up posts, but I see you have deleted it.

    It has some unusual features that aren't allowed in C, (like negative indeces in the array), and will take some work.

  12. #27
    Registered User
    Join Date
    Feb 2011
    Posts
    16
    Code:
    # Define FALSE 0
    # Define TRUE 1
    int a [1 .. 8] / / a [i] = TRUE indicates that there is a queen in the i-th column
    int b [2 .. 16] / / b [i] = TRUE indicates that there is a queen in the i-th
                  / / Diagonal from the upper right
                  / / To the lower left
    int c [-7 .. 7] / / c [i] = TRUE indicates that there is a queen in the i-th
                   / / Diagonal from the left end
                     / / Top to the bottom right
    int x [1 .. 8] / / indicates the position of the queen in the ith column
      void try (int i)
      begin
        int j
        for (j = 1 to 8)
           if (a [j] and b [i + j] and c [i, j]) then
              begin
                  x [i] = j
                  a [j] = FALSE
                  b [i + j] = FALSE
                  c [i, j] = FALSE
                  if (i <8) Then try (i +1) else print result
                     a [j] = TRUE
                     b [i + j] = TRUE
                     c [i, j] = TRUE
              end
      end
    main ()
    begin
        for (i = 1 to 8) a [i] = TRUE
        for (i = 2 to 16) b [i] = TRUE
        for 9i =- 7 to 7) c [i] = TRUE
        try (1)
    end

  13. #28
    Registered User
    Join Date
    Feb 2011
    Posts
    16
    thanks a lot for your help in advanced, actually i am requesting for this help because after this i have to use fork() for making a process and the the child processes too, but that i can do it, because i have been reading on it i will show you later!! THANKS A LOT!!!

  14. #29
    Registered User
    Join Date
    Feb 2011
    Posts
    16
    after that i am going to program by threads with the pthread.h on linux!!!

  15. #30
    Registered User
    Join Date
    Feb 2011
    Posts
    16
    Quote Originally Posted by Adak View Post
    You forgot "waist deep" on that snow, CT!

    alexdavid, you want tough, you check out Haiti after the earthquake and cholera - and having to put up with an upper class that's ripping them off, decade after decade. That's tough.



    Just needed to tick her off, and she's good to go.
    haha sometimes i need someone to tick me off and then i will react hehehe!!!

Page 2 of 3 FirstFirst 123 LastLast
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Implement of a Fast Time Series Evaluation Algorithm
    By BiGreat in forum C Programming
    Replies: 7
    Last Post: 12-04-2007, 02:30 AM
  2. Replies: 4
    Last Post: 12-10-2006, 07:08 PM
  3. Binary Search Trees Part III
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 10-02-2004, 04:00 PM
  4. Request for comments
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 01-02-2004, 10:33 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21