Thread: subset recursive algorithm

  1. #1
    Banned
    Join Date
    Oct 2008
    Posts
    1,535

    subset recursive algorithm

    i cant find the general algorithm for recursive subset
    on google
    ??

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    No?
    Really?
    You don't say.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User
    Join Date
    Sep 2001
    Posts
    4,912
    Your Google must be broken

    hint: Not every assignment you get can be solved by typing the problem into Google. The idea of getting assignments is to solve a problem yourself. i.e. You learn what the problem is and then you write your own algorithm.

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    Maybe even google has gotten bored with all the pointless questions
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  5. #5
    Banned
    Join Date
    Oct 2008
    Posts
    1,535
    ??????????

  6. #6
    Banned
    Join Date
    Oct 2008
    Posts
    1,535
    this is not a pointless question

  7. #7
    Registered User
    Join Date
    Sep 2001
    Posts
    4,912
    this is not a pointless question
    What makes you say that, exactly? Because I've never heard of the "general algorithm for recursive subsets", and apparently neither has anyone whose work is indexed by Google. That gives me a pretty good assurance that your question is pointless. Also, the manner in which it has been asked gives me a pretty good assurance that helping you find an answer is going to be pointless.

    If you've been given an assignment, why are you looking online for the algorithm? That's not going to teach you anything. And how do you expect us to solve the problem with a phrase that doesn't exist and no specifics? You really haven't learned anything.

    What you need to do is explain the whole problem, including where you heard this phrase, and what you are trying to accomplish. You also need to make a serious attempt to solve this problem yourself - you should've seen by now that if you don't learn by doing, anything we tell you is useless.

  8. #8
    Banned
    Join Date
    Oct 2008
    Posts
    1,535
    i dont have any assignment

    i need to understand the subset recursive algorithm

    and i didnt find it i good
    and its not pointless

  9. #9
    Registered User
    Join Date
    Sep 2001
    Posts
    4,912
    i need to understand the subset recursive algorithm
    No single algorithm exists. A subset is recursive if there exists an algorithm that can determine if a number is a member of that set in a finite amount of time (that's according to the first google result). So there's potentially billions of "subset recursive algorithms". Do you see now why that's a pointless question, and why you need to explain more?

    and i didnt find it i good
    and its not pointless
    ...

  10. #10
    & the hat of GPL slaying Thantos's Avatar
    Join Date
    Sep 2001
    Posts
    5,681
    Quote Originally Posted by transgalactic2 View Post
    this is not a pointless question
    You are right, it wasn't a pointless question since

    Quote Originally Posted by transgalactic2 View Post
    i cant find the general algorithm for recursive subset
    on google
    ??
    Is really a statement that you incorrectly punctuated with ??. So more correctly you have a pointless statement.

  11. #11
    Registered User NeonBlack's Avatar
    Join Date
    Nov 2007
    Posts
    431
    I'm pretty sure that someone was working on this on cboard a few weeks ago. Alternatively, Teh Codez.com
    I copied it from the last program in which I passed a parameter, which would have been pre-1989 I guess. - esbo

  12. #12
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,708
    Quote Originally Posted by transgalactic2 View Post
    i dont have any assignment

    i need to understand the subset recursive algorithm

    and i didnt find it i good
    and its not pointless
    You just need to learn how to ask "smart" questions. Open-ended one-liners just aren't going to get very good responses, generally. Expand on the idea so that we can see that you're making an effort and know where exactly the confusion exists.
    Code:
    #include <cmath>
    #include <complex>
    bool euler_flip(bool value)
    {
        return std::pow
        (
            std::complex<float>(std::exp(1.0)), 
            std::complex<float>(0, 1) 
            * std::complex<float>(std::atan(1.0)
            *(1 << (value + 2)))
        ).real() < 0;
    }

  13. #13
    Lurking whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    9,613
    Quote Originally Posted by NeonBlack View Post
    Alternatively, Teh Codez.com
    what is this i don't even

  14. #14
    Webhead Spidey's Avatar
    Join Date
    Jul 2009
    Posts
    285
    what is this i don't even
    Thats what I want to know.

  15. #15
    spurious conceit MK27's Avatar
    Join Date
    Jul 2008
    Location
    segmentation fault
    Posts
    8,300
    Quote Originally Posted by NeonBlack View Post
    Alternatively, Teh Codez.com
    lol dude

    vis. the secret algorithm, maybe this one is a better source:
    http://www.sindominio.net/ayuda/preg...eligentes.html
    C programming resources:
    GNU C Function and Macro Index -- glibc reference manual
    The C Book -- nice online learner guide
    Current ISO draft standard
    CCAN -- new CPAN like open source library repository
    3 (different) GNU debugger tutorials: #1 -- #2 -- #3
    cpwiki -- our wiki on sourceforge

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. subset algorithm
    By calc in forum C Programming
    Replies: 5
    Last Post: 06-24-2009, 12:06 PM
  2. Binary Search Trees Part III
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 10-02-2004, 03:00 PM
  3. Algorithm help (Changing from Recursive to Non Recursive)
    By Thantos in forum C++ Programming
    Replies: 1
    Last Post: 04-25-2004, 07:27 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