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

Algorithms

 
QuestionFind out optimum volume for packing different boxes Pin
Member 1347639321-Oct-17 18:25
Member 1347639321-Oct-17 18:25 
QuestionBlobCounter Pin
Member 280612316-Oct-17 2:23
Member 280612316-Oct-17 2:23 
AnswerRe: BlobCounter Pin
phil.o16-Oct-17 2:42
professionalphil.o16-Oct-17 2:42 
GeneralSolutions distribution of the N-Queens problem Pin
zubetto12-Oct-17 10:53
zubetto12-Oct-17 10:53 
GeneralRe: Solutions distribution of the N-Queens problem Pin
Richard MacCutchan12-Oct-17 11:17
mveRichard MacCutchan12-Oct-17 11:17 
GeneralRe: Solutions distribution of the N-Queens problem Pin
zubetto12-Oct-17 11:34
zubetto12-Oct-17 11:34 
GeneralRe: Solutions distribution of the N-Queens problem Pin
Richard MacCutchan12-Oct-17 22:05
mveRichard MacCutchan12-Oct-17 22:05 
QuestionNeed to display dialog until all questions answered Pin
Christopher Cote11-Oct-17 3:24
Christopher Cote11-Oct-17 3:24 
I am having difficulty figuring out how to go about creating a dialog box which, when the user clicks the OK button, if that user hasn't answered all the questions in the dialog, then an error message should appear and reshow the dialog (either with or without the selections made previously).
My original solution was something similar to this:
show dialog box
while (!allAnswered) {
    if (OK clicked) {
        if all questions have answers then allAnswered=true
        else
           show error message
           show dialog box again
        end if
    end if
loop

Each of the questions contain a drop-down box with the first choice being empty. So, if the drop-down has the empty string for the result, then I know that it hasn't been answered.
However, I wasn't sure if I was performing the if and while in the correct order because it seemed that it wasn't. Could someone please confirm whether I have the proper algorithm or what I need to do to fix it.

Chris
AnswerRe: Need to display dialog until all questions answered Pin
Sascha Lefèvre11-Oct-17 4:01
professionalSascha Lefèvre11-Oct-17 4:01 
AnswerRe: Need to display dialog until all questions answered Pin
Jochen Arndt11-Oct-17 4:07
professionalJochen Arndt11-Oct-17 4:07 
QuestionSorting Algorithm to maximize 'availability' (help please) Pin
Member 134476015-Oct-17 3:30
Member 134476015-Oct-17 3:30 
AnswerRe: Sorting Algorithm to maximize 'availability' (help please) Pin
Ralf Meier6-Oct-17 0:35
mveRalf Meier6-Oct-17 0:35 
AnswerRe: Sorting Algorithm to maximize 'availability' (help please) Pin
Gerry Schmitz7-Oct-17 6:41
mveGerry Schmitz7-Oct-17 6:41 
QuestionEfficiently comparing results from an XPath query to a resultset returned from a database table Pin
terrybogard44-Oct-17 14:49
terrybogard44-Oct-17 14:49 
AnswerRe: Efficiently comparing results from an XPath query to a resultset returned from a database table Pin
Gerry Schmitz7-Oct-17 6:57
mveGerry Schmitz7-Oct-17 6:57 
QuestionConditional assembly Pin
A Jordison27-Sep-17 23:53
A Jordison27-Sep-17 23:53 
AnswerRe: Conditional assembly Pin
Jochen Arndt28-Sep-17 0:09
professionalJochen Arndt28-Sep-17 0:09 
GeneralRe: Conditional assembly Pin
A Jordison28-Sep-17 0:13
A Jordison28-Sep-17 0:13 
GeneralRe: Conditional assembly Pin
Jochen Arndt28-Sep-17 0:20
professionalJochen Arndt28-Sep-17 0:20 
AnswerRe: Conditional assembly Pin
Gerry Schmitz28-Sep-17 10:33
mveGerry Schmitz28-Sep-17 10:33 
QuestionCompare similarity of values that can have different lenght, number of words between 2 or more documents. Pin
Member 1342117220-Sep-17 21:46
Member 1342117220-Sep-17 21:46 
AnswerRe: Compare similarity of values that can have different lenght, number of words between 2 or more documents. Pin
Gerry Schmitz21-Sep-17 12:49
mveGerry Schmitz21-Sep-17 12:49 
QuestionEfficiently sort the following? Pin
arnold_w24-Aug-17 10:18
arnold_w24-Aug-17 10:18 
GeneralRe: Efficiently sort the following? Pin
harold aptroot24-Aug-17 10:28
harold aptroot24-Aug-17 10:28 
GeneralRe: Efficiently sort the following? Pin
arnold_w24-Aug-17 10:48
arnold_w24-Aug-17 10:48 

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.