联系方式

  • QQ:99515681
  • 邮箱:99515681@qq.com
  • 工作时间:8:00-21:00
  • 微信:codinghelp

您当前位置:首页 >> Algorithm 算法作业Algorithm 算法作业

日期:2019-12-03 10:11

The matrices A, B and C are of dimensions n-by-n with entries independently drawn from N(0,1)N(0,1), the standard normal distribution of mean 0 and variance 1.


(1a) Write a program in R to compute the inverses of matrices A, B and C (generated by you) for n=50k,k=1,2,...,10n=50k,k=1,2,...,10, with i) the default serial computing, and ii) parallel computing using three processors.


(1b) Track the computation times for each n for both computing methods (20 time records total). Plot the times against n. Compare and comment.


(1c) Assuming your program did exactly what’s asked in (1a), no more, no less.

Your plot in (1b) will have some unreasonable pattern that make it not a “fair” comparison between parallel and serial computing. Comment and correct the unreasonable part, make a plot described in (1b) again.

Notes:

?Please include (not in a separate file) your appropriately commented code, with a step checking the number of cores your computer has.

?If your computer is very fast, you make need to add large values of k, until the advantage of parallel computing is illustrated.


版权所有:编程辅导网 2021 All Rights Reserved 联系方式:QQ:99515681 微信:codinghelp 电子信箱:99515681@qq.com
免责声明:本站部分内容从网络整理而来,只供参考!如有版权问题可联系本站删除。 站长地图

python代写
微信客服:codinghelp