Advertisements
Advertisements
प्रश्न
With the help of an example, briefly explain the dominant term in complexity.
थोडक्यात उत्तर
उत्तर
- When determining the performance of an algorithm, we must also consider the term, which is an important component that influences the function's performance. Such a phrase is referred to as dominant.
- For example, let an algorithm have both a nested loop running it N2 times and a single loop running N times. In this case, N2 is the dominant term and hence, the complexity is O(N2).
shaalaa.com
Importance of Dominant Term
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?