He had explained about efficiency of algorithm with a graph
of growth rates of functions: n, log n, n log n, n^2, 2^n and n!. This is
continue of the last week. Depending on function. Measuring efficiency of
algorithm with a stop watch is not realistic. It should be calculated. The
order of big rule is important to compare the growth of functions; find a
dominant term in a notation. If rank of Big_O is same for notations, the
notations are in same order. The idea of
big_O has been seen in CSC165 and similar one in MAT137.
Calculation of Time Complexity is done in CSC165 as well,
but different. Thinking about worst case of function especially on loop to
count the number of comparisons is an idea of this. Big_O is what should be considered to find it.
No comments:
Post a Comment