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

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -