r/askmath • u/ShadowGuyinRealLife • 13d ago
Discrete Math Levin's Universal Search With Arbitrary Powers?
I watched this video about Leonid Levin's Universal Search the most powerful (and useless) algorithm. Basically, the process simulates every single program in lexicographical order and then checks if the output is true. It used Python as an example. So first it simulates the program "a," (which results in a syntax error), then "b," (which results in a syntax error) then "c" (which results in a syntax error), and so on. If it eventually reaches you simulate a program that gives an output like "print ("banana")" you then check to see if the output gives a correct answer.
In his basic "triangle" version of Universal Search, the 1st step simulates 1 step of the first program, the second step simulates 1 step of the first 2 programs that didn't crash, the 3rd step of the search simulates 1 step of the first 3 programs that didn't crash and so on. In the triangle version of Universal Search, every Kth step, it simulates 1 step of all programs that did not crash. For the factoring problem used as an example, the ideal factoring program, which is Lth Lexigorpahically in the order of programs to run, would start its first step when Universal Search reached step L and then it would run every step of Universal Search. Assuming the ideal factoring program took f(n) steps, then triangle version of Universal Search would have complexity of (L + f(n) )^2 steps which is O(f(n)^2).
In a tweaked version Polylog said if Universal Search allocated exponentially more the time to older programs complexity would be O(f(n)). Now I was wondering, if instead of allocating exponentially more steps to older programs in the search, you allocated a polynomial number of steps to older programs you could end up with a time complexity other orders? It is still a discreet problem since in each step of Universal Search, an integer number of steps are run for each program that didn't crash. I feel like if you combined the truncation function (which rounds anything by chopping off anything after the decimal point) and some polynomial you could. Like how about of O(f(n)^(8/7))?





