使用c的并行编程 [英] parallel programming using c

查看:153
本文介绍了使用c的并行编程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Q.]如何通过并行执行该函数来发现两个函数的复杂性?

Q.] How can we find complexity of two funtion with parallel execution of that functions?

推荐答案

假设您正在谈论时间复杂性,即并行运行的两个函数是这两个复杂性中最大的.
Assuming you are talking of the time complexity, the complexity of two functions running in parallel is the largest of the two complexities.


一个非常笼统的问题,但是我认为以下链接可能会有所帮助.
https://computing.llnl.gov/tutorials/parallel_comp/ [
A very general question, but I think the following link might help.
https://computing.llnl.gov/tutorials/parallel_comp/[^]

Good luck!


您首先必须以一种符合您需求的(有意义的)方式定义"功能的复杂性",然后确保函数的"并行执行"为您提供这种复杂性"的度量.
如前所述,您的问题非常模糊.
You first have to define the ''complexity of a function'' in a (meaningful) way that fits your needs and then make sure that the ''parallel execution'' of the functions gives you a measure of such ''complexity''.
As it is stated your questions is pretty vague.


这篇关于使用c的并行编程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆