Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
walkeronwater committed Jan 14, 2021
1 parent 430fb86 commit fc31108
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions 08_voting/index.tex
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ \section{Implementation}
\item the voting method that is chosen.
\end{itemize}

When receives all the ballots, the server counts the votes and selects a winner according to the voting-method parameter (see Algorithm~\ref{algo:Plurality}, \ref{algo:Borda}, \ref{algo:Runoff}, \ref{algo:InstantRunoff} and \ref{algo:Approval}). The recommended\footnote{The declaration of winner is subject to the islands' strategies where the initiator of voting may or may not abuse the power to declare a winner without following the voting method that is chosen.} winner is available for the initiator of voting.
Once it receives all the ballots, the server counts the votes and selects a winner according to the voting-method parameter (see Algorithm~\ref{algo:Plurality}, \ref{algo:Borda}, \ref{algo:Runoff}, \ref{algo:InstantRunoff} and \ref{algo:Approval}). The recommended\footnote{The declaration of winner is subject to the islands' strategies where the initiator of voting may or may not abuse the power to declare a winner without following the voting method that is chosen.} winner is available for the initiator of voting.

\begin{algorithm}[!h]
\KwData{IslandID, ballots("Aye", "Nay" or "Abstain")}
Expand Down Expand Up @@ -170,11 +170,11 @@ \section{Implementation}
$SecondFirstPlace \gets firstPlace[1]$\;

\eIf{$MostFirstPlace$ is the majority}{\Return $MostFirstPlace$\;}{
$C_{MFP} \gets$ 0\;
$C_{SFP} \gets$ 0\;
\For{$ballot \in ballots $}{
$K_{MFP} \gets$ the rank of $MostFirstPlace$\;
$K_{SFP} \gets$ the rank of $SecondFirstPlace$\;
$C_{MFP} \gets$ 0\;
$C_{SFP} \gets$ 0\;
\eIf{$K_{MFP} > K_{SFP}$}{
$C_{MFP} \gets C_{MFP}+1$\;}{$C_{SFP} \gets C_{SFP}+1$\;}
}
Expand Down

0 comments on commit fc31108

Please sign in to comment.