CCL Home Software Community Operations |
Practice Problems for Work Queue
Use the information in the Work Queue page to learn more about Work Queue, if necessary. Problem 1Write a Work Queue program to compute the maxima of a simulator.ObjectivesThis problem will illustrate the following:
Problem StatementThis problem involves a simulator that takes an integer as input (x), applies this input in a function (y=f(x)), and returns the evaluated value (y) as output. The simulator for this problem is a Python executable. It can be downloaded using: $ wget http://www.nd.edu/~ccl/software/tutorials/proposed/wq/simulator.py
It can be executed by specifying an integer as a command-line input argument. For example, to run the simulator with an input of 10 and write the output value to a file named 10.output: $ python simulator.py 10 > 10.output
Write a Work Queue program that determines the maxima of this simulator. You will achieve this without any knowledge of the function (f(x)) implemented in the simulator. That is, you will only use the output values returned by the simulator for the given inputs to determine its maxima. Or in other words, you will treat the simulator as a black box. Hints
For the given simulator, the value of the (global) maxima is given here. Problem 2Apply Work Queue in your research.Problem StatementIn completing the tutorial and Problem 1, you have mastered the fundamentals of transforming and running large dynamic worfklows as Work Queue programs! Now, can you think of one or two instances in your research where you can apply Work Queue to run computation/simulation workflows? |