2079 5

BIT201 ยท 2079 ยท 5 marks

What is time complexity? Explain big oh notation with example.

What is time complexity? Explain big oh notation with example. [5]

Data Structures and AlgorithmsChapter 2: Algorithm Analysis and ComplexityTime complexity definition and measurement

Time complexity is a measure of the amount of time (or number of basic operations) an algorithm takes to complete as a function of the size of its input n. - It does not measure actual clock time, but rather the growth rate of operations relative to input size. - It helps compare algorithms and p...