The Nine Billion Names of God
Summary

by Arne Sommer

The Nine Billion Names of God with Raku - Part 5: Summary

[300.5] Published 4. August 2024.

[ Index | Introduction | Base | Recursion | Loops | Summary | RakuConf ]

Here is a summary of how long it took to compute the words, with different alphabet lengths, on my pc.

The actual time usage will differ substantially from pc to pc, but the overall trend should be the same.

Alphabet Size Number of Words Percent of Target Run Time Base Run Time Recursion Run Time Loops
130%0.3s0.6s0.8s
26500%0.5s1.1s1.3s
3252030.0002%6s30s9.2s
43250920.0036%1m 15s7m 10s2m 9s
523479550.026%7m 10s10m 28s
6118138380.1312%38m54m 22s
7463741950.51522h 56m2h 41m
81518201681.6868%6h 37m

The recursive version is the most time consuming, and this should not really be a surprise.

But I had expected that the nested loops would have been faster than the Base version, and they are not. The base method clearly is fast, faster than keeping track of 9 loops. Note that the Base version does not short circuit the succession rule (i.e. skips illegal words en masse), whereas the two others do. And it still is faster than the loops...

I'll fill in (some of) the missing values, when I get them. I have run out of time...

Anticlimactic Conclusion

So, how many characters are needed in the custom alphabet?

I do not have an answer, other than the up front estimate of 13 or 14. But I will update the artcile, if I get the numbers...

[ Index | Introduction | Base | Recursion | Loops | Summary | RakuConf ]