We are interested in embedding trees T with maximum degree at most four in a rectangular grid, such that the vertices of T correspond to grid points, while edges of T correspond to non-intersecting straight segments of the grid lines. Such embeddings are called straight models. While each edge is represented by a straight segment, a path of T is represented in the model by the union of the segments corresponding to its edges, which may consist of a path in the model having several bends. The aim is to determine a straight model of a given tree T minimizing the maximum number of bends over all paths of T. We provide a quadratic-time algorithm for this problem. We also show how to construct straight models that have k as its minimum number of bends and with the least number of vertices possible. As an application of our algorithm, we provide an upper bound on the number of bends of EPG models of graphs that are both VPT and EPT.
翻译:我们有兴趣将T树以最大程度植入一个矩形网格中,最多四个,这样T的顶端与网格点相对应,而T的边缘则与网格线中非交叉直线部分相对应。这种嵌入模型被称为直线模型。虽然每个边缘由直线部分代表,但模型中代表T的路径是与其边缘相对应的区块的组合,它可能由模型中具有若干弯曲的路径组成。目的是确定一棵特定树的直线模型,最大限度地减少T所有路径上的最大弯曲数。我们为此提供了一种二次算法。我们还展示了如何构建直线模型,这些模型的最小弯曲数是 k, 并尽可能小的顶端数是。作为我们的算法的应用,我们提供了一条关于VPT和ENPT两种图形的EPG模型弯曲数的上限。