Urgent - Help - Homework Question

This is a discussion on Urgent - Help - Homework Question within the C++ Programming forums, part of the General Programming Boards category; What are the 3 factors should you consider when you are deciding which search alorithm to use on a list?...

  1. #1
    Registered User
    Join Date
    Sep 2002
    Posts
    4

    Unhappy Help - Homework Question - Sorts

    What are the 3 factors should you consider when you are deciding which search alorithm to use on a list?
    Last edited by Sway2; 10-03-2002 at 07:31 PM.

  2. #2
    I lurk
    Join Date
    Aug 2002
    Posts
    1,361
    What do you think they are?

  3. #3
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    ... and what makes this soooo urgent then?? Why don't you try answering the question yourself first.
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

  4. #4
    Registered User
    Join Date
    Sep 2002
    Posts
    4
    I wouldn't ask if I hadn't already tried to figure it out!!!

    FINE then.

  5. #5
    I lurk
    Join Date
    Aug 2002
    Posts
    1,361
    Did you read the rules? No one is going to help you unless you make a frigging attempt at this. If you would have made an attempt people would have helped you.

    Could one of them be the size of the list?

  6. #6
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    Originally posted by Sway2
    I wouldn't ask if I hadn't already tried to figure it out!!!

    FINE then.
    ... it's not obvious from your original post, thats all. Plus threads marked as urgent are always off to a bad start.
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

  7. #7
    Lead Moderator kermi3's Avatar
    Join Date
    Aug 1998
    Posts
    2,595
    Sway he isn't trying to be mad or ugly to you. But people don't like it when you list things urget. Sounds like you're too lazy to do your own work and people don't like being "used."

    I'm not gonna do it for you cause it sounds like this lead s into a lecture...

    But try this...What are the diffrent searching algorithms? How are they diffrent?
    Kermi3

    If you're new to the boards, welcome and reading this will help you get started.
    Information on code tags may be found here

    - Sandlot is the highest form of sport.

  8. #8
    moi
    moi is offline
    Registered User moi's Avatar
    Join Date
    Jul 2002
    Posts
    946
    Originally posted by Sway2
    I wouldn't ask if I hadn't already tried to figure it out!!!

    FINE then.
    we're the ones giving help. you're the one receiving it. and take a peek at this here website.
    hello, internet!

  9. #9
    CS Author and Instructor
    Join Date
    Sep 2002
    Posts
    511
    I agree with the posters above. Do you have a book- look it up.

    Mr. C.

  10. #10
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,494
    > What are the 3 factors should you consider when you are deciding which search alorithm to use on a list?
    - how fast the machine is which is running the code
    - how fast the user is at understanding the results
    - how fast the programmer is at implementing the code


  11. #11
    Registered User Azuth's Avatar
    Join Date
    Feb 2002
    Posts
    236
    Dammit Salem, I thought they were;

    A) Will anyone notice I've actually just made a bubblesort function in a header file & named it Uber_Sort?
    B) Do the programmers get paid before the software has been rolled out with anything more than a test data set?
    C) Which sort could I code before the IT boys knock off, so I can join them in a Friday Beer & Pizza lazy lunch?



    Sorry
    Demonographic rhinology is not the only possible outcome, but why take the chance

  12. #12
    CS Author and Instructor
    Join Date
    Sep 2002
    Posts
    511
    Hey, is the question:
    Code:
    17.	In deciding which search algorithm to use on a list, which of the following should not be a factor in your decision?
    
    	a.	The length of the list to be searched
    	b.	Whether or not the list contains negative numbers
    	c.	Whether or not the list is already in sorted order
    	d.	The number of times the list is to be searched
    Mr. C

  13. #13
    Seeking motivation... endo's Avatar
    Join Date
    May 2002
    Posts
    537
    Is he one of your students then?
    Couldn't think of anything interesting, cool or funny - sorry.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Design layer question
    By mdoland in forum C# Programming
    Replies: 0
    Last Post: 10-19-2007, 04:22 AM
  2. Exam Question - Possible Mistake?
    By Richie T in forum C++ Programming
    Replies: 15
    Last Post: 05-08-2006, 03:44 PM
  3. opengl DC question
    By SAMSAM in forum Game Programming
    Replies: 6
    Last Post: 02-26-2003, 08:22 PM
  4. Very simple question, problem in my Code.
    By Vber in forum C Programming
    Replies: 7
    Last Post: 11-16-2002, 02:57 PM
  5. Algorithm question
    By PJYelton in forum C++ Programming
    Replies: 2
    Last Post: 10-28-2002, 09:52 AM

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