Click here to Skip to main content
15,889,909 members
Home / Discussions / Algorithms
   

Algorithms

 
GeneralRe: an interesting program,please help Pin
DQNOK14-Apr-07 12:04
professionalDQNOK14-Apr-07 12:04 
QuestionQuadratic Rule Urgent Help needed Pin
pHysiX8-Apr-07 0:50
pHysiX8-Apr-07 0:50 
AnswerRe: Quadratic Rule Urgent Help needed Pin
cp98768-Apr-07 18:17
cp98768-Apr-07 18:17 
GeneralRe: Quadratic Rule Urgent Help needed Pin
pHysiX10-Apr-07 13:55
pHysiX10-Apr-07 13:55 
GeneralRe: Quadratic Rule Urgent Help needed Pin
BillW3324-May-07 8:01
professionalBillW3324-May-07 8:01 
QuestionFind Closest Sum of Numbers to a Given Number Pin
samv984-Apr-07 7:55
samv984-Apr-07 7:55 
AnswerRe: Find Closest Sum of Numbers to a Given Number Pin
Luc Pattyn4-Apr-07 10:39
sitebuilderLuc Pattyn4-Apr-07 10:39 
QuestionRe: Find Closest Sum of Numbers to a Given Number Pin
David Crow4-Apr-07 10:54
David Crow4-Apr-07 10:54 
What if you first sorted the set of numbers, yielding:

{78, 43, 35, 35, 33, 28, 23, 12, 8, 5}

Then search the set for the largest number that is less than or equal to 100, subtract that from 100, search the set again for the largest number that is less than or equal to 22, subtract that from 22, etc. So, 78+12+8 is the closest you can get to 100.

Or am I way off base?


"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15

"Judge not by the eye but by the heart." - Native American Proverb


AnswerRe: Find Closest Sum of Numbers to a Given Number Pin
Bassam Abdul-Baki5-Apr-07 3:25
professionalBassam Abdul-Baki5-Apr-07 3:25 
AnswerRe: Find Closest Sum of Numbers to a Given Number Pin
samv985-Apr-07 11:48
samv985-Apr-07 11:48 
GeneralRe: Find Closest Sum of Numbers to a Given Number Pin
Luc Pattyn5-Apr-07 12:31
sitebuilderLuc Pattyn5-Apr-07 12:31 
GeneralRe: Find Closest Sum of Numbers to a Given Number Pin
cp98765-Apr-07 16:23
cp98765-Apr-07 16:23 
GeneralRe: Find Closest Sum of Numbers to a Given Number Pin
David Crow6-Apr-07 2:39
David Crow6-Apr-07 2:39 
GeneralRe: Find Closest Sum of Numbers to a Given Number Pin
cp98766-Apr-07 3:01
cp98766-Apr-07 3:01 
GeneralRe: Find Closest Sum of Numbers to a Given Number Pin
David Crow6-Apr-07 3:23
David Crow6-Apr-07 3:23 
GeneralRe: Find Closest Sum of Numbers to a Given Number Pin
cp98766-Apr-07 3:47
cp98766-Apr-07 3:47 
GeneralRe: Find Closest Sum of Numbers to a Given Number Pin
Bassam Abdul-Baki6-Apr-07 5:52
professionalBassam Abdul-Baki6-Apr-07 5:52 
GeneralRe: Find Closest Sum of Numbers to a Given Number Pin
samv986-Apr-07 6:09
samv986-Apr-07 6:09 
GeneralRe: Find Closest Sum of Numbers to a Given Number Pin
cp98768-Apr-07 21:49
cp98768-Apr-07 21:49 
GeneralRe: Find Closest Sum of Numbers to a Given Number Pin
samv989-Apr-07 9:06
samv989-Apr-07 9:06 
QuestionMath (statistics) problem that I just can't seem to get a grasp on Pin
David Crow4-Apr-07 4:00
David Crow4-Apr-07 4:00 
AnswerRe: Math (statistics) problem that I just can't seem to get a grasp on Pin
CPallini4-Apr-07 4:08
mveCPallini4-Apr-07 4:08 
AnswerRe: Math (statistics) problem that I just can't seem to get a grasp on Pin
Dan Neely4-Apr-07 4:13
Dan Neely4-Apr-07 4:13 
AnswerRe: Math (statistics) problem that I just can't seem to get a grasp on Pin
Rob Graham4-Apr-07 4:19
Rob Graham4-Apr-07 4:19 
GeneralRe: Math (statistics) problem that I just can't seem to get a grasp on [modified] Pin
cp98764-Apr-07 17:59
cp98764-Apr-07 17:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.