Thread: linked list representation of set

  1. #1
    Registered User
    Join Date
    Dec 2010
    Posts
    3

    linked list representation of set

    Hello

    I want to make sets of linked list I know how to write single linked list but i want to make

    sets of single linked list

    please answer me

  2. #2
    Registered User
    Join Date
    Oct 2006
    Posts
    250
    I want to make sets of linked list
    I wish you good luck and have fun with that.

    I know how to write single linked list
    *applause*

    but i want to make sets of single linked list
    Yes you mentioned that earlier.

    please answer me
    Where's the question?
    iMalc: Your compiler doesn't accept misspellings and bad syntax, so why should we?
    justin777: I have no idea what you are talking about sorry, I use a laptop and there is no ascii eject or something

  3. #3
    Registered User
    Join Date
    Dec 2010
    Posts
    3
    OK

    how can I do set of single linked list؟

    Thanks.

  4. #4
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,336
    Like the way you got that backward irony-question mark in there.

    The answer is "the same way you make a set of anything else". It depends on what you mean by "set" I suppose. Normally a set is just a collection of distinct objects (i.e., if you try to add the same thing to the set twice, it just gets ignored the second time). So you'll have to decide what it means for two linked lists to be "different". Once you've worked that out, then you'll have to decide how much of your linked list needs to be in the set. The whole linked list? Just the head node? When you need to modify your linked lists, how are you going to keep that sync'ed up with your set?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. printing with linked list problem
    By schmidtc in forum C Programming
    Replies: 8
    Last Post: 07-13-2010, 06:17 PM
  2. single linked list to double linked list (help)
    By Countfog in forum C Programming
    Replies: 8
    Last Post: 04-29-2008, 08:04 PM
  3. Replies: 3
    Last Post: 03-04-2005, 02:46 PM
  4. Replies: 6
    Last Post: 03-02-2005, 02:45 AM
  5. Linked List Help
    By CJ7Mudrover in forum C Programming
    Replies: 9
    Last Post: 03-10-2004, 10:33 PM