Click here to Skip to main content
15,886,919 members
Home / Discussions / Algorithms
   

Algorithms

 
AnswerRe: Color generation algorithm Pin
Nathan Addy6-Apr-07 1:45
Nathan Addy6-Apr-07 1:45 
GeneralRe: Color generation algorithm Pin
roel_v7-Apr-07 6:56
roel_v7-Apr-07 6:56 
QuestionReading text file problem with casting to double Pin
kelvinic3-Apr-07 18:28
kelvinic3-Apr-07 18:28 
AnswerRe: Reading text file problem with casting to double Pin
cp98763-Apr-07 18:58
cp98763-Apr-07 18:58 
AnswerRe: Reading text file problem with casting to double Pin
cjengler4-Apr-07 2:09
cjengler4-Apr-07 2:09 
GeneralRe: Reading text file problem with casting to double Pin
kelvinic4-Apr-07 2:17
kelvinic4-Apr-07 2:17 
GeneralRe: Reading text file problem with casting to double Pin
cjengler4-Apr-07 2:36
cjengler4-Apr-07 2:36 
QuestionPermutations of an election result Pin
Colin Angus Mackay31-Mar-07 10:32
Colin Angus Mackay31-Mar-07 10:32 
I'm just curious about something.

Say there is a parliamentary consituency with X number of voters. Candidates A, B, C and D are standing for election. There is also the possibility that a voter may abstane or they may spoil their paper. Thus when the results are announced it is stated how many votes each candidate received, how many abstaned, and how many spoiled ballot papers there were.

If X (the total number of eligible voters) is known. How many permutations of results will allow candidate A to win? (using a first-past-the-post system. i.e. the candidate with more votes than any other candidate. Spoiled papers and abstentions are ignored for a win)




AnswerRe: Permutations of an election result Pin
Luc Pattyn31-Mar-07 11:05
sitebuilderLuc Pattyn31-Mar-07 11:05 
GeneralRe: Permutations of an election result Pin
Colin Angus Mackay31-Mar-07 11:27
Colin Angus Mackay31-Mar-07 11:27 
GeneralRe: Permutations of an election result Pin
Luc Pattyn31-Mar-07 11:47
sitebuilderLuc Pattyn31-Mar-07 11:47 
GeneralRe: Permutations of an election result Pin
Colin Angus Mackay31-Mar-07 23:03
Colin Angus Mackay31-Mar-07 23:03 
GeneralRe: Permutations of an election result Pin
Luc Pattyn31-Mar-07 23:33
sitebuilderLuc Pattyn31-Mar-07 23:33 
GeneralRe: Permutations of an election result Pin
Luc Pattyn31-Mar-07 12:55
sitebuilderLuc Pattyn31-Mar-07 12:55 
QuestionRe: Permutations of an election result Pin
David Crow4-Apr-07 4:11
David Crow4-Apr-07 4:11 
Questionmatlab a function in m-file Pin
akira3231-Mar-07 2:13
akira3231-Mar-07 2:13 
AnswerRe: matlab a function in m-file Pin
rbuchana31-Mar-07 9:48
rbuchana31-Mar-07 9:48 
AnswerRe: matlab a function in m-file Pin
Sean Cundiff31-Mar-07 13:24
Sean Cundiff31-Mar-07 13:24 
Questionbandwidth question Pin
Planker29-Mar-07 19:08
Planker29-Mar-07 19:08 
AnswerRe: bandwidth question Pin
Rilhas19-May-07 10:03
Rilhas19-May-07 10:03 
Questiongenerate unrepeated serials Pin
samira forooghi28-Mar-07 20:05
samira forooghi28-Mar-07 20:05 
AnswerRe: generate unrepeated serials Pin
Nathan Addy29-Mar-07 15:19
Nathan Addy29-Mar-07 15:19 
AnswerRe: generate unrepeated serials Pin
Tim Paaschen29-Mar-07 20:18
Tim Paaschen29-Mar-07 20:18 
GeneralRe: generate unrepeated serials Pin
Nathan Addy30-Mar-07 7:38
Nathan Addy30-Mar-07 7:38 
GeneralRe: generate unrepeated serials Pin
Tim Paaschen1-Apr-07 20:40
Tim Paaschen1-Apr-07 20:40 

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.