Click here to Skip to main content
15,917,793 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: how to read the number printed on an image by Vb6 or .Net Pin
Christian Graus5-Apr-06 13:44
protectorChristian Graus5-Apr-06 13:44 
QuestionSum algorithm Pin
Scott Page5-Apr-06 7:31
professionalScott Page5-Apr-06 7:31 
AnswerRe: Sum algorithm Pin
Guffa5-Apr-06 8:17
Guffa5-Apr-06 8:17 
GeneralRe: Sum algorithm Pin
Scott Page5-Apr-06 10:04
professionalScott Page5-Apr-06 10:04 
AnswerRe: Sum algorithm Pin
J4amieC5-Apr-06 9:02
J4amieC5-Apr-06 9:02 
GeneralRe: Sum algorithm Pin
Scott Page5-Apr-06 9:58
professionalScott Page5-Apr-06 9:58 
GeneralRe: Sum algorithm Pin
machman15-Apr-06 12:16
machman15-Apr-06 12:16 
AnswerRe: Sum algorithm Pin
Steve Pullan5-Apr-06 15:38
Steve Pullan5-Apr-06 15:38 
This problem is usually framed in the guise of how to provide the least number of coins in change. See this Google search[^]

I had a thought that the 'greedy algorithm' would be a good choice but it did not find a solution to 2.305. (The greedy algorithm always takes the highest possible amount from the required sum, remainder and so on - almost opposite to the algorithm you proposed.) Maybe a least-spanning tree algorithm is the way to go?

I also note that with the sample set you provided, you cannot make up a stack of 0.06". Is this correct?



...Steve

1. quod erat demonstrandum
2. "Give a man a fish and you've fed him for a day. Teach him how to fish and you've fed him for life."
I read that somewhere once Smile | :)
GeneralRe: Sum algorithm Pin
Scott Page6-Apr-06 2:10
professionalScott Page6-Apr-06 2:10 
GeneralRe: Sum algorithm Pin
machman16-Apr-06 3:52
machman16-Apr-06 3:52 
AnswerRe: Sum algorithm Pin
Scott Page6-Apr-06 2:39
professionalScott Page6-Apr-06 2:39 
Questionhow i can redefine string Pin
Mr kilany5-Apr-06 7:09
Mr kilany5-Apr-06 7:09 
AnswerRe: how i can redefine string Pin
HaloZa5-Apr-06 7:19
HaloZa5-Apr-06 7:19 
AnswerRe: how i can redefine string Pin
FrankyT5-Apr-06 13:24
FrankyT5-Apr-06 13:24 
Questionhow can i send enter character to anothe applicatoin Pin
Mr kilany5-Apr-06 7:07
Mr kilany5-Apr-06 7:07 
AnswerRe: how can i send enter character to anothe applicatoin Pin
Chatura Dilan5-Apr-06 20:59
Chatura Dilan5-Apr-06 20:59 
QuestionAppDev Suggestions Please Pin
digicd15-Apr-06 6:09
digicd15-Apr-06 6:09 
AnswerRe: AppDev Suggestions Please Pin
J4amieC5-Apr-06 9:04
J4amieC5-Apr-06 9:04 
GeneralRe: AppDev Suggestions Please Pin
digicd15-Apr-06 9:17
digicd15-Apr-06 9:17 
Questionhow to open a binary file in VB? Pin
Mayur Gondaliya4-Apr-06 21:12
Mayur Gondaliya4-Apr-06 21:12 
QuestionUrgent help needed : Reading from a .htm file using VBScript Pin
giftsana4-Apr-06 20:30
giftsana4-Apr-06 20:30 
Questionhow to make Login Page in VB.Net Site Pin
Amit Agarrwal4-Apr-06 20:23
Amit Agarrwal4-Apr-06 20:23 
AnswerRe: how to make Login Page in VB.Net Site Pin
Chandan_Kr5-Apr-06 23:10
Chandan_Kr5-Apr-06 23:10 
Questionvb.net how to move to next tab on click of button????? Pin
Ron.S4-Apr-06 20:12
Ron.S4-Apr-06 20:12 
AnswerRe: vb.net how to move to next tab on click of button????? Pin
Dean_SF5-Apr-06 4:47
Dean_SF5-Apr-06 4:47 

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.