A Method For Random Matrixes Generation On Behalf Of Task Graphs Without Communication Costs

Yong Yao,Hong Tu,Zhijing Liu,Yingfeng Wang
2011-01-01
Abstract:Random task graphs are widely adopted in studying effectiveness of scheduling methods, while adjacency matrix is one of important forms to represent a random graph. Therefore, this paper proposes a method for generation of a random adjacency matrix to represent directed acyclic graphs or directed cyclic graphs. First, a square matrix is generated, in which the elements fall into a uniform distribution. Second, the elements are inserted into an empty array. Third, the elements use the inverse of the sum of each element and random number as the new priorities to reorder. At last, according to the number of edges k required in a random graph, the elements in the matrix which are equal to the first k elements in the array are set as 1 while others are set as 0. In order to generate random adjacency matrixes to only represent directed acyclic graphs, we proposed another method based on the above method. In such matrixes, the dimension and the number of 1 are free to specify, and the locations of 1 are randomly generated. The test case demonstrate that the methods are concise and effective, which are suitable for various designs which need random adjacency matrixes to test.
What problem does this paper attempt to address?