Skip to content

Commit 7fed77e

Browse files
committed
Add Schulze's method voting
1 parent 981b4f6 commit 7fed77e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

table.tsv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1171,6 +1171,7 @@ F{𝔽´𝔽˜⍟(/2|⌊∘÷⟜2⍟(↕1+⌊2⋆⁼𝕘)𝕘)}i0 y Compute F⍟
11711171
{s←('^'=𝕩)∧«1="@`"⍋𝕩⋄s¬⊸/𝕩-64×»s}d1 Evaluate control character sequences (like ^J) Tacit Text strings escapes characters charvector charvecs null bell backspace bs horizontaltab ht linefeed lf verticaltab vt formfeed ff carriagereturn cr crlf cr+lf ^M^J control-z sub eof endoffile end-of-file escape ^@ ^A ^B ^C ^D ^E ^F ^G ^H ^I ^J ^K ^L ^M ^N ^O ^P ^Q ^R ^S ^T ^U ^V ^W ^X ^Y ^Z ^[ ^\ ^] ^^ ^_
11721172
(≍↕0){∾˝(0∾˘1+𝕩)⊸⊏˘⍒˘=⌜˜↕𝕨}´-⟜↕n0 All permutations of ↕n0, as table rows in lexicographical order Expression Combinatorics combinatorics ordered orderings anagrams without replacement list
11731173
∾(⍉∾˘¨⟜(∾˜`)˝˜≠↑(↓≍↕0)˙)⌾⌽m0↕⟜↕n0 All length-m0 subsets (combinations) of ↕n0, as table rows in lexicographical order Expression Combinatorics combinatorics selections list sublists subsequences choices choose
1174+
⍋<⟜⍉{𝕩(⊢⌈⊏˘⌊⌜⊏)´↕≠𝕩}+´(<⌜˜⍋)¨y1 Given a list of complete ballots ordering ↕n, choose an overall ordering by Schulze's method (smaller wins ties) Expression Ordering ranked ranking choice voting rcv election votes voters rule majority winner condorcet beatpath
11741175
i0|⊑i0{0=𝕨?1‿0;(⌽-(0⋈𝕩⌊∘÷𝕨)⊸×)𝕨𝕊˜𝕨|𝕩}j0 Multiplicative inverse of j0 modulo i0 Expression Number Theory extended euclidean algorithm modular modulus modinv() invmod() numbertheory arithmetic
11751176
(((≠×+´∘ט)-·×˜+´)÷·(1⌈-⟜1)⊸×≠)n1 Sample variance Tacit Statistical σ² s² σ^2 s^2 empirical Var(x) dispersion
11761177
{m←(+´∘⥊÷˜+˝˘×⌜+˝)𝕩⋄+´⥊(ט𝕩-m)÷m}n2 Pearson's chi-squared test on contingency table n2 Block Function Statistical χ2 hypothesis testing null statistically significant distribution

0 commit comments

Comments
 (0)