Computational complexity question

Click For Summary
SUMMARY

The discussion centers on representing the computational complexity of an algorithm with a specific operation count, expressed as $(N-1) + \sum_{i=1}^{N-3}(i+1)(N-2)!/{i!}$. The consensus is that this complexity can be simplified to Big O notation as O(n!), indicating factorial time complexity. The contributors agree that the sum converges to (n - 2)!, and the linear term (N-1) is negligible in comparison to the factorial growth.

PREREQUISITES
  • Understanding of Big O Notation
  • Familiarity with factorial functions
  • Knowledge of summation notation
  • Basic algorithm analysis skills
NEXT STEPS
  • Study the implications of O(n!) complexity on algorithm performance
  • Explore advanced summation techniques in algorithm analysis
  • Learn about other factorial time complexities and their applications
  • Investigate optimization strategies for algorithms with high computational complexity
USEFUL FOR

Computer scientists, algorithm designers, and students studying computational complexity who seek to deepen their understanding of factorial time complexities and their implications in algorithm performance.

pemfir
Messages
4
Reaction score
0
how can i represent the computational complexity an algorithm that requires the following number of operations: (please see attached document)

Code:
$(N-1) + \sum_{i=1}^{N-3}(i+1)(N-2)!/{i!}$
 

Attachments

  • computational complexity.JPG
    computational complexity.JPG
    1.9 KB · Views: 445
Mathematics news on Phys.org
In Big O Notation, that would be simply O(n!) I believe, factorial time. The sum group amounts to (n - 2)! with a coefficient 2 + 1.5 + 0.6666 +... which is discarded (so is the -2), and the n - 1 grows so slow relative to the rest that it can be discarded to.
 
thank you very much you are precisely correct
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 13 ·
Replies
13
Views
3K
  • · Replies 13 ·
Replies
13
Views
2K
  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 12 ·
Replies
12
Views
2K
  • · Replies 0 ·
Replies
0
Views
3K
  • · Replies 13 ·
Replies
13
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K