Runge kutta method for ordinary differential equation

Assignment Help Basic Computer Science
Reference no: EM133220431

Look up the classical fourth-order Runge Kutta method for solving an ordinary differential equation. Use this method instead of Euler's method to estimate the values. Modify the reduced versions of the serial n-body solver, either the Pthreads or the OpenMP n-body solver, and the MPI n-body solver. How does the output compare to the output using Euler's method? How does the performance of the two methods compare?

Use Pthreads or OpenMP to implement tree search in which there's a shared stack. As we discussed in the text, it would be very inefficient to have all calls to Push and Pop access a shared stack, so the program should also use a local stack for each thread. However, the Push function can occasionally push partial tours onto the shared stack, and the Pop function can pop several tours from the shared stack and push them onto the local stack, if the calling thread has run out of work. Thus, the program will need some additional input arguments:

a. The frequency with which tours are pushed onto the shared stack. This can be an int. For example, if every 10th tour generated by a thread should be pushed onto the shared stack, then the command-line argument would be 10.

b. A blocksize for pushing. There may be less contention if, rather than pushing a single tour onto the shared stack, a block of several tours is pushed

c. A blocksize for popping. If we pop a single tour from the shared stack when we run out of work, we may get too much contention for the shared stack.

How can a thread determine whether the program has terminated?

Implement this design and your termination detection with Pthreads or OpenMP. How do the various input arguments affect its performance? How does the optimal performance of this program compare with the optimal performance of the dynamically load-balanced code we discussed in the text?

Reference no: EM133220431

Questions Cloud

Calculate the total square feet and flooring cost : The user will enter the length of the room, the width of the room and the cost of the flooring per square foot. Calculate the total square feet, flooring cost,
Construct support vector machine : Construct a support vector machine that computes the XOR function. Draw the four input points in this space, and the maximal margin separator. What is margin.
Most commonly discussed areas is social media : The internet has transformed all of our lives and one of the most commonly discussed areas is social media.
Main tactics-techniques and procedures : An overview of the main tactics, techniques, and procedures (TTP's) that those groups use when operating.
Runge kutta method for ordinary differential equation : Look up the classical fourth-order Runge Kutta method for solving an ordinary differential equation.
Develop stock brokerage software : Develop a stock brokerage software that has the following functionalities,
Have you ever used gantt chart : Have you ever used a Gantt chart? Provide examples of other task sets that might lend themselves to Gantt charts
Is standardization of approach important : Support your ideas with four outside resources. Is standardization of approach important? Why are timelines and goals important?
What is the size of the hash required : Assume that the size of message space (domain) for a given hash function is 250. What is the size of the hash (in bits) required?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd