⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 node121.html

📁 Design and building parallel program
💻 HTML
字号:
<html><!DOCTYPE HTML PUBLIC "-//W3O//DTD W3 HTML 2.0//EN">
<!Converted with LaTeX2HTML 95.1 (Fri Jan 20 1995) by Nikos Drakos (nikos@cbl.leeds.ac.uk), CBLU, University of Leeds >
<HEAD>
<TITLE> Exercises</TITLE>
</HEAD>
<BODY>
<meta name="description" value=" Exercises">
<meta name="keywords" value="book">
<meta name="resource-type" value="document">
<meta name="distribution" value="global">
<P>
 <BR> <HR><a href="msgs0.htm#2" tppabs="http://www.dit.hcmut.edu.vn/books/system/par_anl/tppmsgs/msgs0.htm#2"><img ALIGN=MIDDLE src="asm_color_tiny.gif" tppabs="http://www.dit.hcmut.edu.vn/books/system/par_anl/asm_color_tiny.gif" alt="[DBPP]"></a>    <A NAME=tex2html3441 HREF="node120.html" tppabs="http://www.dit.hcmut.edu.vn/books/system/par_anl/node120.html"><IMG ALIGN=MIDDLE ALT="previous" SRC="previous_motif.gif" tppabs="http://www.dit.hcmut.edu.vn/books/system/par_anl/previous_motif.gif"></A> <A NAME=tex2html3449 HREF="node122.html" tppabs="http://www.dit.hcmut.edu.vn/books/system/par_anl/node122.html"><IMG ALIGN=MIDDLE ALT="next" SRC="next_motif.gif" tppabs="http://www.dit.hcmut.edu.vn/books/system/par_anl/next_motif.gif"></A> <A NAME=tex2html3447 HREF="node116.html" tppabs="http://www.dit.hcmut.edu.vn/books/system/par_anl/node116.html"><IMG ALIGN=MIDDLE ALT="up" SRC="up_motif.gif" tppabs="http://www.dit.hcmut.edu.vn/books/system/par_anl/up_motif.gif"></A> <A NAME=tex2html3451 HREF="node1.html" tppabs="http://www.dit.hcmut.edu.vn/books/system/par_anl/node1.html"><IMG ALIGN=MIDDLE ALT="contents" SRC="contents_motif.gif" tppabs="http://www.dit.hcmut.edu.vn/books/system/par_anl/contents_motif.gif"></A> <A NAME=tex2html3452 HREF="node133.html" tppabs="http://www.dit.hcmut.edu.vn/books/system/par_anl/node133.html"><IMG ALIGN=MIDDLE ALT="index" SRC="index_motif.gif" tppabs="http://www.dit.hcmut.edu.vn/books/system/par_anl/index_motif.gif"></A> <a href="msgs0.htm#3" tppabs="http://www.dit.hcmut.edu.vn/books/system/par_anl/tppmsgs/msgs0.htm#3"><img ALIGN=MIDDLE src="search_motif.gif" tppabs="http://www.dit.hcmut.edu.vn/books/system/par_anl/search_motif.gif" alt="[Search]"></a>   <BR>
<B> Next:</B> <A NAME=tex2html3450 HREF="node122.html" tppabs="http://www.dit.hcmut.edu.vn/books/system/par_anl/node122.html"> Chapter Notes</A>
<B>Up:</B> <A NAME=tex2html3448 HREF="node116.html" tppabs="http://www.dit.hcmut.edu.vn/books/system/par_anl/node116.html">10 Random Numbers</A>
<B> Previous:</B> <A NAME=tex2html3442 HREF="node120.html" tppabs="http://www.dit.hcmut.edu.vn/books/system/par_anl/node120.html">10.4 Summary</A>
<BR><HR><P>
<H1><A NAME=SECTION04250000000000000000> Exercises</A></H1>
<P>
<OL><LI>
An application running on <IMG BORDER=0 ALIGN=BOTTOM ALT="" SRC="img1110.gif" tppabs="http://www.dit.hcmut.edu.vn/books/system/par_anl/img1110.gif"> processors consumes <IMG BORDER=0 ALIGN=BOTTOM ALT="" SRC="img1111.gif" tppabs="http://www.dit.hcmut.edu.vn/books/system/par_anl/img1111.gif"> random
numbers per second per processor.  For how long can the application
execute before it exhausts all available numbers, assuming that the
leapfrog method is applied to the linear congruential generator of
Equation <A HREF="node117.html#eqrand2" tppabs="http://www.dit.hcmut.edu.vn/books/system/par_anl/node117.html#eqrand2">10.3</A> on a 32-bit machine?  A 64-bit machine?
<P>
<LI>
A Monte Carlo simulation must perform <IMG BORDER=0 ALIGN=BOTTOM ALT="" SRC="img1112.gif" tppabs="http://www.dit.hcmut.edu.vn/books/system/par_anl/img1112.gif"> independent trials.  How
many random numbers can be employed in each trial without duplication,
assuming that the modified leapfrog method is applied to the linear
congruential generator of Equation <A HREF="node117.html#eqrand" tppabs="http://www.dit.hcmut.edu.vn/books/system/par_anl/node117.html#eqrand">10.1</A> on a 32-bit machine?
A 64 bit machine?
<P>
<LI>
Monte Carlo integration techniques are sometimes to compute integrals
of high dimension. They approximate the <b>r</b>-dimensional integral
<P><IMG BORDER=0 ALIGN=BOTTOM ALT="" SRC="img1113.gif" tppabs="http://www.dit.hcmut.edu.vn/books/system/par_anl/img1113.gif"><P>
of a function <b>f</b> as
<P><IMG BORDER=0 ALIGN=BOTTOM ALT="" SRC="img1114.gif" tppabs="http://www.dit.hcmut.edu.vn/books/system/par_anl/img1114.gif"><P>
where each <IMG BORDER=0 ALIGN=MIDDLE ALT="" SRC="img1115.gif" tppabs="http://www.dit.hcmut.edu.vn/books/system/par_anl/img1115.gif"> is an <em> r</em>
-vector of random values.  Design
and implement a parallel algorithm for this method, and use it to
compute the one-dimensional integral
<P><IMG BORDER=0 ALIGN=BOTTOM ALT="" SRC="img1116.gif" tppabs="http://www.dit.hcmut.edu.vn/books/system/par_anl/img1116.gif"><P>
Measure and account for the performance of the parallel program as a
function of <em> N</em>
 and P.
<P>
</OL>
<P>

<BR> <HR><a href="msgs0.htm#2" tppabs="http://www.dit.hcmut.edu.vn/books/system/par_anl/tppmsgs/msgs0.htm#2"><img ALIGN=MIDDLE src="asm_color_tiny.gif" tppabs="http://www.dit.hcmut.edu.vn/books/system/par_anl/asm_color_tiny.gif" alt="[DBPP]"></a>    <A NAME=tex2html3441 HREF="node120.html" tppabs="http://www.dit.hcmut.edu.vn/books/system/par_anl/node120.html"><IMG ALIGN=MIDDLE ALT="previous" SRC="previous_motif.gif" tppabs="http://www.dit.hcmut.edu.vn/books/system/par_anl/previous_motif.gif"></A> <A NAME=tex2html3449 HREF="node122.html" tppabs="http://www.dit.hcmut.edu.vn/books/system/par_anl/node122.html"><IMG ALIGN=MIDDLE ALT="next" SRC="next_motif.gif" tppabs="http://www.dit.hcmut.edu.vn/books/system/par_anl/next_motif.gif"></A> <A NAME=tex2html3447 HREF="node116.html" tppabs="http://www.dit.hcmut.edu.vn/books/system/par_anl/node116.html"><IMG ALIGN=MIDDLE ALT="up" SRC="up_motif.gif" tppabs="http://www.dit.hcmut.edu.vn/books/system/par_anl/up_motif.gif"></A> <A NAME=tex2html3451 HREF="node1.html" tppabs="http://www.dit.hcmut.edu.vn/books/system/par_anl/node1.html"><IMG ALIGN=MIDDLE ALT="contents" SRC="contents_motif.gif" tppabs="http://www.dit.hcmut.edu.vn/books/system/par_anl/contents_motif.gif"></A> <A NAME=tex2html3452 HREF="node133.html" tppabs="http://www.dit.hcmut.edu.vn/books/system/par_anl/node133.html"><IMG ALIGN=MIDDLE ALT="index" SRC="index_motif.gif" tppabs="http://www.dit.hcmut.edu.vn/books/system/par_anl/index_motif.gif"></A> <a href="msgs0.htm#3" tppabs="http://www.dit.hcmut.edu.vn/books/system/par_anl/tppmsgs/msgs0.htm#3"><img ALIGN=MIDDLE src="search_motif.gif" tppabs="http://www.dit.hcmut.edu.vn/books/system/par_anl/search_motif.gif" alt="[Search]"></a>   <BR>
<B> Next:</B> <A NAME=tex2html3450 HREF="node122.html" tppabs="http://www.dit.hcmut.edu.vn/books/system/par_anl/node122.html"> Chapter Notes</A>
<B>Up:</B> <A NAME=tex2html3448 HREF="node116.html" tppabs="http://www.dit.hcmut.edu.vn/books/system/par_anl/node116.html">10 Random Numbers</A>
<B> Previous:</B> <A NAME=tex2html3442 HREF="node120.html" tppabs="http://www.dit.hcmut.edu.vn/books/system/par_anl/node120.html">10.4 Summary</A>
<BR><HR><P>
<P><ADDRESS>
<I>&#169 Copyright 1995 by <A href="msgs0.htm#6" tppabs="http://www.dit.hcmut.edu.vn/books/system/par_anl/tppmsgs/msgs0.htm#6">Ian Foster</a></I>
</ADDRESS>
</BODY>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -