If O(k*N^2)k is considered to be equal to N

Asked 1 years ago, Updated 1 years ago, 81 views

If O(k*N^2)k is considered to be the same as N, can you summarize it like O(N^3)?
For example, in the case of multiplying the matrix of NxN with the N-dimensional vector, O(N^2) would be
If I go N times, can I put them together like O(N^3)?

calculated-amount

2022-09-30 19:53

1 Answers

If k = cN+e(N) (c is a constant, e(x) is an expression of less than the first order of x, such as log(N), then of course O(k*N^2) is O(N^3).


2022-09-30 19:53

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.