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

gcc - MinGW's ld cannot perform PE operations on non PE output file -

timeout - Handshake_timeout on RabbitMQ using python and pika from remote vm -

c# - Search and Add Comment with OpenXML for Word -