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

Algorithms

 
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 
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 
Sorry, that's not quite what I wanted. I wanted to know how many permutations in total there would be. Also, permutations including absentee and spoiled votes do count since they are valid scenarios.

For example with an electorate of 2 the permutations are:
A  B  C  D  Absentee  Spoiled
2  0  0  0  0         0        A wins
1  0  0  0  1         0        A wins
1  0  0  0  0         1        A wins

In the above, there are 3 permutations where A can win
If that chart were continued for an electorate of 45,000 voters, how many permuations would A win. Is there a formula that can calculate this?



Luc Pattyn wrote:
Going for president in Scotland ??


Not quite, there are elections coming up in a little over a month and one of the "election communications" I got said that only C or D can win this seat. A or B cannot win. I just wanted to write back and claim false avertising on the grounds that mathematically there were so many permutations of results where A could indeed win the election.


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 
GeneralRe: generate unrepeated serials [modified] Pin
cp98761-Apr-07 21:13
cp98761-Apr-07 21:13 
GeneralRe: generate unrepeated serials Pin
Nathan Addy2-Apr-07 8:58
Nathan Addy2-Apr-07 8:58 

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.