What is an example algorithm with complexity O (n ^ 5)?

can anyone provide an example of an algorithm with minimal runtime complexity O (n ^ 5)?

+4
source share
6 answers

O n5 volume algorithm for complex bodies.

http://matmod.elte.hu/~lovasz/vol5.pdf

+8
source
void N5(int n) { for( int n1 = 0; n1 < n; n1++ ) { for( int n2 = 0; n2 < n; n2++ ) { for( int n3 = 0; n3 < n; n3++ ) { for( int n4 = 0; n4 < n; n4++ ) { for( int n5 = 0; n5 < n; n5++ ) { DoSomething(); } } } } } } 
+4
source
 for 1 to n for 1 to n for 1 to n for 1 to n for 1 to n Do Something 
+3
source

Finden and Gordon's Algorithm for Obtaining Common Trimmed Trees Works in O (n ^ 5)

+3
source
It has been proven that a convex hull in 10 dimensions requires O (n ^ 5) (the proof was for general d, showing that the hull could be O (n ^ floor (d / 2)) in the worst case, IIRC)
+1
source

Source: https://habr.com/ru/post/1341698/


All Articles