c - How thread can be used to improve time complexity of a code? -
as per knowledge thread can reduce execution time,and can not reduce time complexity.
correct me if wrong.
suppose have doubly linklist,can use thread improve time complexity of search element random node ? simple search traverse next random node till end of list,and pre of random node till first node,can improve using thread,can in less o(n) time using thread.
no. example, using thread make twice fast (if implemented), 1/2 of o(n) still o(n).
Comments
Post a Comment