|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#12
|
||||
|
||||
|
Re: Google Sheets OPR Calculator
Quote:
Unique team search: Make an array of size 6*(matches), let's call it [C]. Place every team from the match list into a unique spot in this array. Sort [C] Either delete duplicates within [C] or map unique teams into your "teams" matrix. This process should go much faster than your current method goes, and it has the added bonus of giving you a sorted list so you don't have to sort it later. Creating the A matrix: Create a LUT that maps teams to their index in the sorted "teams" matrix. Set all entries of the A matrix to zero. Fill the A matrix using something like this (pseudocode): Code:
for each half-match
for each team in the half-match
A[half-match number][LUT(team)] = 1
end for
end for
|
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|