Math is hard.

This is something I’ve been getting my head around since I was about 16. I’m still doing it, and I love it. I love it mostly for the pure math problems which have zero application in real life, but there are occasional fun⁰ opportunities to apply them in real life.

Here’s an example: factorials get really big, really quickly. Factorials are written as *n!, *and represent *n *· *(n-1) *·* (n-2)…2 *· *1*

For example, *3! *is 3 ·** **2 · 1 = 6

4! is 24. 5! is 120. 6! is 720. 10! is three million, six hundred and twenty-eight thousand, eight hundred, or 3,628,800

Factorials get big quickly.

This is a nice fact, but not much use in the real world. Here’s a real world example.

Suppose there are three equally qualified candidates for positions, and three such positions. There are consequently 3! ways we could combine candidates and positions to produce the map of all possible outcomes. You can prove this for yourself by combining A, B, and C with 1, 2, 3 in as many ways as you can with no repetition. You should get the answer 6.

With just six routes through this table, we can just guess — and since everyone’s equally qualified it doesn’t really matter which we pick.

However, if we map candidate skills against skills required, we’ll have a much easier time — each value will get weighted, and we ought to be able to just pick the best ones. If the combo of candidate A and position 2 is the best fit, we’ll pick that one. Easy. And with just three candidates and three positions, odds are it’ll work out so everyone gets the thing they’re best at.¹

So far so good. What if you’ve got 10 candidates and 10 positions, you’ve carried out your calculations and found there’s a tie. To whom do you give the job? And what do you do with the loser? Moving them to their next best match might displace someone better suited:

A1 and B3 both have a score of 9.8 out of 10. B loses. Their next highest score is 7.2 out of 10 for position 8 - but candidate F has a solid 8.0 match for that post.

You can keep shuffling B down, but eventually they’ll just be stuck with something terrible. You can tell B there’s no position for them — but you’ll be short a person. Or you can move everyone down one, which means everyone will be a bit less happy but you keep candidate B.²

And this is with just 10 candidates, 10 posts, and one tie. A real world, enterprise level version of this could theoretically try to match 400 people with 600 posts. It produces a matrix of 240,000 combinations which has 5.35 x 10¹⁰³² potential routes through it, assuming all candidates are equally well suited to all roles.

That number, by the way, runs out of words to describe it. 10¹⁰⁰ is a Googol, so this is ten Googols. It is a number with one thousand and thirty-three numbers in it. It is a Big Number.

Observe:

5,349,055,099,791,222,867,187,074,878,849,812,372,270,834,990,332,768,891,756,043,927,972,982,546,032,972,559,726,383,830,743,508,574,638,022,032,481,142,092,511,357,370,849,179,536,196,848,984,869,209,987,772,507,742,298,732,994,097,058,599,528,836,347,757,929,295,404,338,673,081,575,870,821,723,692,460,079,706,482,570,287,371,963,070,384,183,395,271,508,817,740,452,356,360,205,405,400,076,328,077,644,366,177,018,904,774,763,787,067,793,674,505,130,374,461,018,071,722,240,219,209,876,026,069,450,357,838,084,927,634,991,911,768,043,405,616,194,537,924,746,255,578,756,684,605,143,768,424,385,681,939,432,642,425,814,964,007,849,933,980,999,312,614,383,494,093,438,927,613,485,586,994,292,340,164,848,044,583,451,835,112,558,785,201,059,853,998,236,545,462,756,538,819,695,086,094,618,612,782,015,955,527,844,062,494,242,962,102,300,424,533,466,777,986,339,498,159,574,662,860,552,719,611,464,078,607,471,138,005,485,406,570,846,602,444,041,750,951,396,025,805,373,283,969,451,966,517,879,164,056,082,649,886,456,017,744,490,326,662,089,509,233,283,231,413,336,626,082,184,360,916,289,000,458,006,921,777,156,174,201,492,790,817,391,810,355,604,710,545,596,318,097,153,721,524,067,736,727,114,993,499,894,144,945,959,049,336,408,040,800,256,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000

It’s also only approximately right.As you can see, after a certain number of millions my laptop gave up entirely and just assumed that the lower numbers were zeros.

Of course that means for every role you can just roll a 600-sided die, but quite frankly that thing is for Dungeons and Dragons only and besides takes three people to roll.

So you try out algorithms, which is where we’ll move next time.

⁰ Yes, fun

¹ If you were particularly perverse, or ran a graduate training scheme, you might do the inverse: select the combinations with the lowest value to force the candidates to improve to meet the job spec.

² I don’t actually have answers here, I’m just posing the question.