C Board  

Go Back   C Board > General Programming Boards > C++ Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 10-03-2002, 07:25 PM   #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.
Sway2 is offline   Reply With Quote
Old 10-03-2002, 07:31 PM   #2
I lurk
 
Join Date: Aug 2002
Posts: 1,361
What do you think they are?
Eibro is offline   Reply With Quote
Old 10-03-2002, 07:31 PM   #3
End Of Line
 
Hammer's Avatar
 
Join Date: Apr 2002
Posts: 6,240
... 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]
Hammer is offline   Reply With Quote
Old 10-03-2002, 07:33 PM   #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.
Sway2 is offline   Reply With Quote
Old 10-03-2002, 07:36 PM   #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?
Eibro is offline   Reply With Quote
Old 10-03-2002, 07:36 PM   #6
End Of Line
 
Hammer's Avatar
 
Join Date: Apr 2002
Posts: 6,240
Quote:
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]
Hammer is offline   Reply With Quote
Old 10-03-2002, 07:40 PM   #7
Lead Moderator
 
kermi3's Avatar
 
Join Date: Aug 1998
Posts: 2,568
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.
kermi3 is offline   Reply With Quote
Old 10-03-2002, 07:43 PM   #8
moi
Registered User
 
moi's Avatar
 
Join Date: Jul 2002
Posts: 945
Quote:
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!
moi is offline   Reply With Quote
Old 10-03-2002, 08:38 PM   #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.
Mister C is offline   Reply With Quote
Old 10-04-2002, 12:41 AM   #10
and the hat of vanishing
 
Salem's Avatar
 
Join Date: Aug 2001
Location: The edge of the known universe
Posts: 21,214
> 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

Salem is offline   Reply With Quote
Old 10-04-2002, 12:56 AM   #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
Azuth is offline   Reply With Quote
Old 10-04-2002, 01:27 PM   #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
Mister C is offline   Reply With Quote
Old 10-04-2002, 01:35 PM   #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.
endo is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

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


All times are GMT -6. The time now is 04:35 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC2

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