Skip to content

Instantly share code, notes, and snippets.

@scionoftech
Created September 1, 2019 07:17
Show Gist options
  • Save scionoftech/ab6a7da226dab83ea0bd1ca2faa7e0d7 to your computer and use it in GitHub Desktop.
Save scionoftech/ab6a7da226dab83ea0bd1ca2faa7e0d7 to your computer and use it in GitHub Desktop.
This gist is for round robin and Single Eliminaiton rules formulas
***** round robin macthes *****
(Even number participants)
----------
n = no of participants
matches = n(n-1)/2
rounds = n-1
byes = 0
Eg.
participants = 10
matches = 10(10-1)/2 = 45
rounds = 10-1 = 9
byes = 0
(Odd number participants)
---------------------
n = no of participants
matches = n(n-1)/2
rounds = n
byes = 0
Eg.
participants = 7
matches = 7(7-1)/2 = 21
rounds = 7
byes = 0
***** single eliminaiton macthes *****
n = no of participants
matches = n-1
rounds = 2^x = x
byes = n-2^x
Eg 1.
participants = 6
matches = 6-1 = 5
rounds = 2^3 = 3 **(6<(8=2^3))**
byes = 8-6 = 2
Eg 2.
participants = 9
matches = 9-1 = 8
rounds = 2^4 = 4 **(9<(16=2^4))**
byes = 16-9 = 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment