We initiate the theoretical study of Ext-TSP, a problem that originates in the area of profile-guided binary optimization. Given a graph with positive edge weights , and a non-increasing discount function such that and for , for some parameter that is part of the problem definition. The problem is to sequence the vertices so as to maximize $\sum_{(u, v) \in E} f(|d_u - d_v|)\cdot w(u,v)d_v \in {1, \ldots, |V| }$ is the position of vertex~ in the sequence. We show that \prob{Ext-TSP} is APX-hard to approximate in general and we give a -approximation algorithm for general graphs and a PTAS for some sparse graph classes such as planar or treewidth-bounded graphs. Interestingly, the problem remains challenging even on very simple graph classes; indeed, there is no exact time algorithm for trees unless the ETH fails. We complement this negative result with an exact time algorithm for trees.

生成讲解博客的中文版本

生成AI智能校验的中文版本