Description
The v1 or 5x5 version (https://factorioprints.com/view/-NQHYf_XCsdl_ChkKKMW) only used the anything wildcard and basic comparisons, this version if for much bigger builds, with thousands of signals, in this case I used the alphabetic combinator to output every signal in the game and this made the 5x5 take about 2 min to process even though it did about 8 signals a second. This version uses an additional sum/count calc thats then compared to the any comparison, the higher one of the 2 is used, and it takes about twice as long per cycle but is O(logN).
So pick the one that you need for space, time, or use of how many signals you are inputting, if over 500-1k signals you may want to use this version seeing as with 4k signals in value order which caused old version to have to cycle once per signal, this version only takes 11 cycles to calculate. 2 min down to 1 sec. yet each cycle is twice as long.
There was a mod used for the alphabetic combinator as an input which was worst case input, but you dont need it to run the rest of the build.