원시데이터 수집 시스템
선정목록으로

Hardness and approximation for the geodetic set problem in some graph classes

관련 필름·전자재료 · (13) 프리즘 필름

기본 정보

저자
  1. Chakraborty, Dibyayan
  2. Foucaud, Florent
  3. Gahlawat, Harmender
  4. Ghosh, Subir Kumar
  5. Roy, Bodhayan
DOI
10.48550/arxiv.1909.08795
저널
arXiv (Cornell University)
발행년도
2022
발행기관
Cornell University
피인용수
0
라이선스
0
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.48550/arxiv.1909.08795
토픽
Electric and Hybrid Vehicle Technologies
OpenAlex ID
W6910409637

평가 내용

관련도
관련
사업분야
필름·전자재료 · (13) 프리즘 필름
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '필름·전자재료 > 프리즘 필름' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

In this paper, we study the computational complexity of finding the \emph{geodetic number} of graphs. A set of vertices $S$ of a graph $G$ is a \emph{geodetic set} if any vertex of $G$ lies in some shortest path between some pair of vertices from $S$. The \textsc{Minimum Geodetic Set (MGS)} problem is to find a geodetic set with minimum cardinality. In this paper, we prove that solving the \textsc{MGS} problem is NP-hard on planar graphs with a maximum degree six and line graphs. We also show that unless $P=NP$, there is no polynomial time algorithm to solve the \textsc{MGS} problem with sublogarithmic approximation factor (in terms of the number of vertices) even on graphs with diameter $2$. On the positive side, we give an $O\left(\sqrt[3]{n}\log n\right)$-approximation algorithm for the \textsc{MGS} problem on general graphs of order $n$. We also give a $3$-approximation algorithm for the \textsc{MGS} problem on the family of solid grid graphs which is a subclass of planar graphs.

본문 54,379자

본문 펼치기
## Hardness and approximation for the geodetic set problem in some graph classes Dibyayan Chakraborty Indian Statistical Institute, Kolkata, India. [dibyayancg@gmail.com](mailto:dibyayancg@gmail.com) Florent Foucaud Univ. Orléans, INSA Centre Val de Loire, LIFO EA 4022, F-45067 Orléans Cedex 2, France. [florent.foucaud@gmail.com](mailto:florent.foucaud@gmail.com) Harmender Gahlawat Indian Statistical Institute, Kolkata, India. [harmendergahlawat@gmail.com](mailto:harmendergahlawat@gmail.com) Subir Kumar Ghosh Ramakrishna Mission Vivekananda Educational and Research Institute. [subir.ghosh@rkmvu.ac.in](mailto:subir.ghosh@rkmvu.ac.in) Bodhayan Roy Indian Institute of Technology, Kharagpur. [bodhayan.roy@gmail.com](mailto:bodhayan.roy@gmail.com) ~~Abstract~~ In this paper, we study the computational complexity of finding the _geodetic_ _number_ of graphs. A set of vertices _S_ of a graph _G_ is a _geodetic_ _set_ if any vertex of _G_ lies in some shortest path between some pair of vertices from _S_ . The Minimum Geodetic Set (MGS) problem is to find a geodetic set with minimum cardinality. In this paper, we prove that solving the MGS problem is NP-hard on planar graphs with a maximum degree six and line graphs. We also show that unless _P_ = _NP_, there is no polynomial time algorithm to solve the MGS problem with sublogarithmic approximation factor (in terms of the number of vertices) even on graphs with diameter 2. On the positive side, we give an _O_ <sup>�</sup> <sup>_~~√~~_</sup> 3 _<u>n</u>_ log _n_ <sup>�</sup> -approximation algorithm for the MGS problem on general graphs of order _n_ . We also give a 3-approximation algorithm for the MGS problem on the family of solid grid graphs which is a subclass of planar graphs. 2012 ACM Subject Classification Theory of computation _→_ Graph algorithms analysis. Keywords and phrases Planar graph, Geodetic Set, Approximation Digital Object Identifier [10.4230/LIPIcs.CVIT.2016.23](https://doi.org/10.4230/LIPIcs.CVIT.2016.23) Funding _Florent_ _Foucaud_ : Partially supported by the ANR project HOSIGRA (ANR-17-CE40-0022). Acknowledgements This research is funded by the IFCAM project “Applications of graph homo morphisms” (MA/IFCAM/18/39). We would like to thank Ajit A. Diwan for the many helpful pointers that he provided. <mark>1</mark> Introduction and results Suppose there is a city-road network (i.e. a graph) and a bus company wants to open bus terminals in some of the cities. The buses will go from one bus terminal to another (i.e. from one city to another) following the shortest route in the network. Finding the minimum number of bus terminals required so that any city belongs to some shortest route between some pair of bus terminals is equivalent to finding the _geodetic_ _number_ of the corresponding graph. Formally, an undirected simple graph _G_ has vertex set _V_ ( _G_ ) and edge set _E_ ( _G_ ). For two vertices _u, v_ _∈_ _V_ ( _G_ ), let _I_ ( _u, v_ ) denote the set of all vertices in _G_ that lie in some © Dibyayan Chakraborty,Florent Foucaud, Harmender Gahlawat, Subir Kumar Ghosh, Bodhayan Roy; licensed under Creative Commons License CC-BY 42nd Conference on Very Important Topics (CVIT 2016). Editors: John Q. Open and Joan R. Access; Article No. 23; pp. 23:1–23:12 Leibniz International [Proceedings](https://www.dagstuhl.de/lipics/) in Informatics Schloss Dagstuhl - Leibniz-Zentrum für [Informatik,](https://www.dagstuhl.de) Dagstuhl Publishing, Germany 23:2 Hardness and approximation for the geodetic set problem in some graph classes shortest path between _u_ and _v_ . A set of vertices _S_ is a _geodetic_ _set_ if _∪u,v∈SI_ ( _u, v_ ) = _V_ ( _G_ ). The _geodetic_ _number_, denoted as _g_ ( _G_ ), is the minimum integer _k_ such that _G_ has a geodetic set of cardinality _k_ . Given a graph _G_, the Minimum Geodetic Set (MGS) problem is to compute a geodetic set of _G_ with minimum cardinality. In this paper, we shall study the computational complexity of the MGS problem in various graph classes. The notion of geodetic sets and geodetic number was introduced by Harary et al. [18]. The notion of geodetic number is closely related to convexity and convex hulls in graphs, which have applications in game theory, facility location, information retrieval, distributed computing and communication networks [2, 19, 15, 22, 10]. In 2002, Atici [1] proved that finding the geodetic number of arbitrary graphs is NP-hard. Later, Dourado et al. [9, 8] strengthened the above result to _bipartite_ graphs, _chordal_ graphs and _chordal_ _bipartite_ graphs. Recently, Bueno et al. [3] proved that the MGS problem remains NP-hard even for _subcubic_ graphs. On the positive side, polynomial time algorithms to solve the MGS problem are known for _cographs_ [8], _split_ graphs [8], _ptolemaic_ graphs [12], _outer_ _planar_ graphs [21] and _proper_ _interval_ graphs [11]. In this paper, we prove the following theorem. - Theorem 1. _The_ MGS _problem_ _is_ _NP-hard_ _for_ _planar_ _graphs_ _of_ _maximum_ _degree_ 6 _._ Then we focus on _line_ graphs. Given a graph _G_, the _line_ graph of _G_, denoted by _L_ ( _G_ ) is a graph such that each vertex of _L_ ( _G_ ) represents an edge of _G_ and two vertices of _L_ ( _G_ ) are adjacent if and only if their corresponding edges share a common endpoint in _G_ . A graph _H_ is a _line_ _graph_ if _H_ <sup>_∼_</sup> = _L_ ( _G_ ) for some _G_ . Some optimisation problems which are difficult to solve in general graphs admit polynomial time algorithms when the input is a line graph [14, 17]. We prove the following theorem. - Theorem 2. _The_ MGS _problem_ _is_ _NP-hard_ _for_ _line_ _graphs._ From a result of Dourado et al. [8], it follows that solving the MGS problem is NP-hard even for graphs with diameter at most 4. On the other hand, solving the MGS problem on graphs with diameter 1 is trivial (since those are exactly complete graphs). In this paper, we prove that unless P=NP, there is no polynomial time algorithm with sublogarithmic approximation factor for the MGS problem even on graphs with diameter at most 2. A _universal_ _vertex_ of a graph is adjacent to all other vertices of the graph. We shall prove the following stronger theorem. - Theorem 3. _Unless_ _P=NP,_ _there_ _is_ _no_ _polynomial_ _time_ _o_ (log _n_ ) _-approximation_ _algorithm_ _for_ _the_ MGS _problem_ _even_ _on_ _graphs_ _that_ _have_ _a_ _universal_ _vertex,_ _where_ _n_ _is_ _the_ _number_ _of_ _vertices_ _in_ _the_ _input_ _graph._ On the positive side, we show that a reduction to the Minimum Rainbow Subgraph of Multigraph problem (defined in Section 3.1) gives the first sublinear approximation algorithm for the MGS problem on general graphs. - Theorem 4. _Given_ _a_ _graph,_ _there_ _is_ _a_ _polynomial-time_ _O_ ( <sup>_√_</sup> <sup>3</sup> _<u>n</u>_ log _n_ ) _-approximation_ _al-_ _gorithm_ _for_ _the_ MGS _problem_ _where_ _n_ _is_ _the_ _number_ _of_ _vertices._ Then we focus on _solid_ _grid_ graphs, an interesting subclass of planar graphs. A _grid_ _embedding_ of a graph is a collection of points with integer coordinates such that each point in the collection represents a vertex of the graph and two points are at a distance one if and only if the vertices they represent are adjacent in the graph. A graph is a _grid_ graph if it has a grid embedding. A graph is a _solid_ _grid_ graph if it has a grid embedding such that all interior faces have unit area. Approximation algorithms for optimisation problems like Chakraborty et al. 23:3 Longest path, Longest Cycle, Node-Disjoint Path etc. on grid graphs and solid grid graphs have been studied [4, 20, 6, 25, 23, 27]. In this paper, we prove the following theorem. - Theorem 5. _Given_ _a_ _solid_ _grid_ _graph,_ _there_ _is_ _an_ _O_ ( _n_ ) _time_ 3 _-approximation_ _algorithm_ _for_ _the_ MGS _problem,_ _even_ _if_ _the_ _grid_ _embedding_ _is_ _not_ _given_ _as_ _part_ _of_ _the_ _input._ _Here_ _n_ _is_ _the_ _number_ _of_ _vertices_ _in_ _the_ _input_ _graph._ Note that recognising solid grid graphs is NP-complete [16]. Organisation of the paper: In Section 2, we prove the hardness results for planar graphs, line graphs and graphs with diameter 2. In Section 3, we present our approximation algorithms. Finally we draw our conclusions in Section 4. <mark>2</mark> Hardness results In Section 2.1, we prove that the MGS problem is NP-hard for planar graphs with maximum degree 6 (Theorem 1). Then in Section 2.2 we prove that the MGS problem is NP-hard for line graphs (Theorem 2). In Section 2.3 we prove the inapproximability result (Theorem 3). 2.1 NP-hardness on planar graphs Given a graph _G_, a subset _S_ _⊆_ _V_ ( _G_ ) is a dominating set of _G_ if any vertex in _V_ ( _G_ ) _\ S_ has a neighbour in _S_ . The problem Minimum Dominating set (MDS) consists in computing a dominating set of an input graph _G_ with minimum cardinality. To prove Theorem 1, we shall reduce the NP-complete MDS problem on subcubic planar graphs [13] to the MGS problem on planar graphs with maximum degree 6. Let us describe the reduction. From a subcubic planar graph _G_ with a given planar embedding, we construct a graph _f_ ( _G_ ) as follows. Each vertex _v_ of _G_ will be replaced by a _vertex_ _gadget_ _Gv_ . This vertex gadget has vertex set _{c_ <sup>_v_</sup> _, t_ <sup>_v_</sup> 0 <sup>_, tv_</sup> 1 <sup>_, tv_</sup> 2 <sup>_} ∪{xv_</sup> _i,j_ <sup>_, y_</sup> _i,j_ <sup>_v_</sup> <sup>_, z_</sup> _i,j_ <sup>_v_</sup> <sup>_|_</sup> <sup>0</sup> <sup>_≤_</sup> <sup>_v_</sup> 0 <sup>_, tv_</sup> 1 <sup>_, tv_</sup> 2 <sup>_} ∪{xv_</sup> _i,j_ <sup>_, y_</sup> _i,j_ <sup>_v_</sup> _i,j_ <sup>_v_</sup> <sup>_, zv_</sup> a _vertex_ _gadget_ _Gv_ . This vertex gadget has vertex set _{c_ <sup>_v_</sup> _, t_ <sup>_v_</sup> 0 <sup>_, tv_</sup> 1 <sup>_, tv_</sup> 2 <sup>_} ∪{xv_</sup> _i,j_ <sup>_, y_</sup> _i,j_ <sup>_v_</sup> <sup>_, z_</sup> _i,j_ <sup>_v_</sup> <sup>_|_</sup> <sup>0</sup> <sup>_≤_</sup> _i_ _<_ _j_ _≤_ 2 _}_ . There are no other vertices in _f_ ( _G_ ). For the edges within _Gv_, vertex _t_ <sup>_v_</sup> _i_ <sup>(for</sup> 0 _≤_ _i_ _≤_ 2) is adjacent to vertices _c_ <sup>_v_</sup>, _x_ <sup>_v_</sup> _i,i_ +1 <sup>,</sup> <sup>_y_</sup> _i,i_ <sup>_v_</sup> +1 <sup>,</sup> <sup>_xv_</sup> _i−_ 1 _,i_ <sup>,</sup> <sup>_y_</sup> _i_ <sup>_v_</sup> _−_ 1 _,i_ <sup>(indices</sup> <sup>taken</sup> <sup>modulo</sup> <sup>3).</sup> _i,i_ <sup>_v_</sup> +1 <sup>,</sup> <sup>_xv_</sup> _i_ <sup>_v_</sup> _i−_ 1 _,i_ <sup>,</sup> <sup>_y_</sup> _i_ <sup>_v_</sup> 0 _≤_ _i_ _≤_ 2) is adjacent to vertices _c_ <sup>_v_</sup>, _x_ <sup>_v_</sup> _i,i_ +1 <sup>,</sup> <sup>_y_</sup> _i,i_ <sup>_v_</sup> +1 <sup>,</sup> <sup>_xv_</sup> _i−_ 1 _,i_ <sup>,</sup> <sup>_y_</sup> _i_ <sup>_v_</sup> _−_ 1 _,i_ <sup>(indices</sup> <sup>taken</sup> <sup>modulo</sup> <sup>3).</sup> Moreover, for each pair _i, j_ with 0 _≤_ _i_ _<_ _j_ _≤_ 2, _x_ <sup>_v_</sup> _i,j_ <sup>is</sup> <sup>adjacent</sup> <sup>to</sup> <sup>_cv_</sup> <sup>and</sup> <sup>_y_</sup> _i,j_ <sup>_v_</sup> <sup>,</sup> <sup>and</sup> <sup>_y_</sup> _i,j_ <sup>_v_</sup> <sup>is</sup> adjacent to _zi,j_ <sup>_v_</sup> <sup>.</sup> <sup>We</sup> <sup>now</sup> <sup>describe</sup> <sup>the</sup> <sup>edges</sup> <sup>outside</sup> <sup>of</sup> <sup>the</sup> <sup>vertex-gadgets.</sup> <sup>They</sup> <sup>will</sup> <sup>depend</sup> on the embedding of _G_ . We assume that the edges incident with any vertex _v_ are labeled _e_ <sup>_v_</sup> _i_ with 0 _≤_ _i < degG_ ( _v_ ), in such a way that the numbering increases counterclockwise around _v_ with respect to the embedding (thus the edge _vw_ will have two labels: _e_ <sup>_v_</sup> _i_ <sup>and</sup> <sup>_ew_</sup> _j_ <sup>).</sup> <sup>Consider</sup> two vertices _v_ and _w_ that are adjacent in _G_, and let _e_ <sup>_v_</sup> _i_ <sup>and</sup> <sup>_ew_</sup> _j_ <sup>be</sup> <sup>the</sup> <sup>two</sup> <sup>labels</sup> <sup>of</sup> <sup>edge</sup> <sup>_vw_</sup> in _G_ . Then, _t_ <sup>_v_</sup> _i_ <sup>is</sup> <sup>adjacent</sup> <sup>to</sup> <sup>_tw_</sup> _j_ <sup>,</sup> <sup>_y_</sup> _i,i_ <sup>_v_</sup> +1 <sup>is</sup> <sup>adjacent</sup> <sup>to</sup> <sup>_y_</sup> _j_ <sup>_w_</sup> _−_ 1 _,j_ <sup>and</sup> <sup>_y_</sup> _i_ <sup>_v_</sup> _−_ 1 _,i_ <sup>is</sup> <sup>adjacent</sup> <sup>to</sup> <sup>_y_</sup> _j_ <sup>_w_</sup> +1 _,j_ (indices are taken modulo the degree of the original vertex of _G_ ). It is clear that a planar embedding of _f_ ( _G_ ) can easily be obtained from the planar embedding of _G_ . Thus _f_ ( _G_ ) is planar and has maximum degree 6. The construction is depicted in Figure 1, where _v_ and _w_ are adjacent in _G_ and the edge _vw_ is labeled _e_ <sup>_v_</sup> 0 <sup>and</sup> <sup>_ew_</sup> 0 <sup>.</sup> We will show that _G_ has a dominating set of size _k_ if and only if _f_ ( _G_ ) has a geodetic set of size 3 _|V_ ( _G_ ) _|_ + _k_ . <sup>_v_</sup> _i,j_ <sup>is</sup> <sup>adjacent</sup> <sup>to</sup> <sup>_cv_</sup> <sup>and</sup> <sup>_y_</sup> _i,j_ <sup>_v_</sup> _i,j_ <sup>_v_</sup> <sup>,</sup> <sup>and</sup> <sup>_y_</sup> _i,j_ <sup>_v_</sup> _i_ <sup>_v_</sup> _−_ 1 _,i_ <sup>is</sup> <sup>adjacent</sup> <sup>to</sup> <sup>_y_</sup> _j_ <sup>_w_</sup> <sup>_v_</sup> _i_ <sup>and</sup> <sup>_ew_</sup> _j_ <sup>_v_</sup> _i_ <sup>is</sup> <sup>adjacent</sup> <sup>to</sup> <sup>_tw_</sup> _j_ <sup>_w_</sup> _j_ <sup>,</sup> <sup>_y_</sup> _i,i_ <sup>_v_</sup> _i,i_ <sup>_v_</sup> +1 <sup>is</sup> <sup>adjacent</sup> <sup>to</sup> <sup>_y_</sup> _j_ <sup>_w_</sup> <sup>_v_</sup> _i_ <sup>and</sup> <sup>_ew_</sup> _j_ _j_ <sup>_w_</sup> _−_ 1 _,j_ <sup>and</sup> <sup>_y_</sup> _i_ <sup>_v_</sup> embedding of _f_ ( _G_ ) can easily be obtained from the planar embedding of _G_ . Thus _f_ ( _G_ ) is planar and has maximum degree 6. The construction is depicted in Figure 1, where _v_ and _w_ are adjacent in _G_ and the edge _vw_ is labeled _e_ <sup>_v_</sup> 0 <sup>and</sup> <sup>_ew_</sup> 0 <sup>.</sup> Assume first that _G_ has a dominating set _D_ of size _k_ . We construct a geodetic set _S_ of _f_ ( _G_ ) of size 3 _|V_ ( _G_ ) _|_ + _k_ as follows. For each vertex _v_ in _G_, we add the three vertices _zi,j_ <sup>_v_</sup> (0 _≤_ _i < j_ _≤_ 2) of _Gv_ to _S_ . If _v_ is in _D_, we also add vertex _c_ <sup>_v_</sup> to _S_ . Let us show that _S_ is indeed a geodetic set. First, we observe that, in any vertex gadget _Gv_ that is part of _f_ ( _G_ ), the unique shortest path between two distinct vertices _zi,j_ <sup>_v_</sup> <sup>,</sup> <sup>_z_</sup> _i_ <sup>_v′_</sup> _,j_ <sup>_′_</sup> <sup>has</sup> _i,j_ <sup>_v_</sup> <sup>,</sup> <sup>_z_</sup> _i_ <sup>_v′_</sup> _Gv_ that is part of _f_ ( _G_ ), the unique shortest path between two distinct vertices _zi,j_ <sup>_v_</sup> <sup>,</sup> <sup>_z_</sup> _i_ <sup>_v′_</sup> _,j_ <sup>_′_</sup> <sup>has</sup> length 4 and goes through vertices _yi,j_ <sup>_v_</sup> <sup>,</sup> <sup>_tv_</sup> _k_ <sup>and</sup> <sup>_y_</sup> _i_ <sup>_v′_</sup> _,j_ <sup>_′_</sup> <sup>(where</sup> <sup>_{k}_</sup> <sup>=</sup> <sup>_{i, j} ∩{i′, j′}_</sup> <sup>).</sup> <sup>Thus,</sup> <sup>it</sup> _i,j_ <sup>_v_</sup> <sup>,</sup> <sup>_tv_</sup> _k_ <sup>_v_</sup> _k_ <sup>and</sup> <sup>_y_</sup> _i_ <sup>_v′_</sup> _i_ <sup>_v′_</sup> _,j_ <sup>_′_</sup> <sup>(where</sup> <sup>_{k}_</sup> <sup>=</sup> <sup>_{i, j} ∩{i′, j′}_</sup> <sup>).</sup> <sup>Thus,</sup> <sup>it</sup> CVIT 2016 23:4 Hardness and approximation for the geodetic set problem in some graph classes _z_ 0 <sup>_v_</sup> 0 _,_ 1 _t_ <sup>_v_</sup> 1 _y_ 0 <sup>_v_</sup> _,_ 1 _z_ 0 <sup>_w_</sup> _,_ 2 _y_ 0 <sup>_w_</sup> _,_ 2 _t_ <sup>_w_</sup> 2 1 _y_ 0 <sup>_v_</sup> 0 _,_ 1 _t_ <sup>_w_</sup> 0 _c_ <sup>_w_</sup> _x_ <sup>_w_</sup> 0 _,_ 1 _x_ <sup>_w_</sup> 0 _,_ 2 _y_ 1 <sup>_v_</sup> _,_ 2 _x_ <sup>_v_</sup> 1 _,_ 2 _x_ <sup>_v_</sup> 0 _,_ 1 _c_ <sup>_v_</sup> _t_ <sup>_v_</sup> 0 1 _,_ 2 _x_ <sup>_w_</sup> 1 _,_ 2 <sup>_w_</sup> 1 _,_ 2 _y_ 1 <sup>_w_</sup> _,_ 2 1 _,_ 2 _x_ <sup>_v_</sup> 1 _z_ 1 <sup>_v_</sup> _,_ 2 _z_ 1 <sup>_w_</sup> _,_ 2 _x_ <sup>_v_</sup> 0 _,_ 2 1 _t_ <sup>_v_</sup> 2 _y_ 0 <sup>_v_</sup> 0 _,_ 2 _z_ 0 <sup>_v_</sup> _y_ 0 <sup>_w_</sup> _,_ 1 0 _,_ 2 0 _,_ 1 _z_ 0 <sup>_w_</sup> _,_ 1 _y_ 0 <sup>_w_</sup> _,_ 1 _t_ <sup>_w_</sup> 1 0 <sup>_w_</sup> _,_ 1 Figure 1 Illustration of the reduction used in the proof of Theorem 1. Here, two vertex gadgets _Gv_, _Gw_ are depicted, with _v_ and _w_ adjacent in _G_ . Dashed lines represent potential edges to other vertex-gadgets. only remains to show that vertices _c_ <sup>_v_</sup> and _x_ <sup>_v_</sup> only remains to show that vertices _c_ <sup>_v_</sup> and _x_ <sup>_v_</sup> _i,j_ <sup>(0</sup> <sup>_≤_</sup> <sup>_i < j_</sup> <sup>_≤_</sup> <sup>2)</sup> <sup>belong</sup> <sup>to</sup> <sup>some</sup> <sup>shortest</sup> <sup>path</sup> of vertices of _S_ . Assume that _v_ is a vertex of _G_ in _D_ . The shortest paths between _c_ <sup>_v_</sup> and _zi,j_ <sup>_v_</sup> <sup>have</sup> <sup>length</sup> <sup>3</sup> <sup>and</sup> <sup>one</sup> <sup>of</sup> <sup>them</sup> <sup>goes</sup> <sup>through</sup> <sup>vertex</sup> <sup>_x_</sup> _i,j_ <sup>_v_</sup> <sup>.</sup> <sup>Thus,</sup> <sup>all</sup> <sup>vertices</sup> <sup>of</sup> <sup>_Gv_</sup> <sup>belong</sup> to some shortest path between vertices of _S_ . Now, consider a vertex _w_ of _G_ adjacent to _v_ and let _zi,j_ <sup>_w_</sup> <sup>be</sup> <sup>the</sup> <sup>vertex</sup> <sup>of</sup> <sup>_Gw_</sup> <sup>that</sup> <sup>is</sup> <sup>farthest</sup> <sup>from</sup> <sup>_cv_</sup> <sup>.</sup> <sup>The</sup> <sup>shortest</sup> <sup>paths</sup> <sup>between</sup> <sup>_cv_</sup> <sup>and</sup> _i,j_ <sup>_v_</sup> <sup>have</sup> <sup>length</sup> <sup>3</sup> <sup>and</sup> <sup>one</sup> <sup>of</sup> <sup>them</sup> <sup>goes</sup> <sup>through</sup> <sup>vertex</sup> <sup>_xv_</sup> and let _zi,j_ <sup>_w_</sup> <sup>be</sup> <sup>the</sup> <sup>vertex</sup> <sup>of</sup> <sup>_Gw_</sup> <sup>that</sup> <sup>is</sup> <sup>farthest</sup> <sup>from</sup> <sup>_cv_</sup> <sup>.</sup> <sup>The</sup> <sup>shortest</sup> <sup>paths</sup> <sup>between</sup> <sup>_cv_</sup> <sup>and</sup> _zi,j_ <sup>_w_</sup> <sup>have</sup> <sup>length</sup> <sup>6;</sup> <sup>one</sup> <sup>of</sup> <sup>them</sup> <sup>goes</sup> <sup>through</sup> <sup>vertices</sup> <sup>_cw_</sup> <sup>and</sup> <sup>_x_</sup> _i,j_ <sup>_w_</sup> <sup>;</sup> <sup>two</sup> <sup>others</sup> <sup>go</sup> <sup>through</sup> <sup>the</sup> two other vertices _x_ <sup>_w_</sup> _i_ <sup>_′_</sup> _,j_ <sup>_′_</sup> <sup>and</sup> <sup>_xw_</sup> _i_ <sup>_′′_</sup> _,j_ <sup>_′′_</sup> <sup>.</sup> <sup>Thus,</sup> <sup>_S_</sup> <sup>is</sup> <sup>a</sup> <sup>geodetic</sup> <sup>set.</sup> For the converse, assume we have a geodetic set _S_ <sup>_′_</sup> of _f_ ( _G_ ) of size 3 _|V_ ( _G_ ) _|_ + _k_ . We will show that _G_ has a dominating set of size _k_ . First of all, observe that all the 3 _|V_ ( _G_ ) _|_ vertices of type _zi,j_ <sup>_v_</sup> <sup>are</sup> <sup>necessarily</sup> <sup>in</sup> <sup>_S′_</sup> <sup>,</sup> <sup>since</sup> <sup>they</sup> <sup>have</sup> <sup>degree</sup> <sup>1.</sup> <sup>As</sup> <sup>observed</sup> <sup>earlier,</sup> <sup>the</sup> <sup>shortest</sup> _i,j_ <sup>_w_</sup> <sup>have</sup> <sup>length</sup> <sup>6;</sup> <sup>one</sup> <sup>of</sup> <sup>them</sup> <sup>goes</sup> <sup>through</sup> <sup>vertices</sup> <sup>_cw_</sup> <sup>and</sup> <sup>_x_</sup> _i,j_ <sup>_w_</sup> <sup>_w_</sup> _i_ <sup>_′_</sup> _,j_ <sup>_′_</sup> <sup>and</sup> <sup>_xw_</sup> _i_ <sup>_′′_</sup> of type _zi,j_ <sup>_v_</sup> <sup>are</sup> <sup>necessarily</sup> <sup>in</sup> <sup>_S′_</sup> <sup>,</sup> <sup>since</sup> <sup>they</sup> <sup>have</sup> <sup>degree</sup> <sup>1.</sup> <sup>As</sup> <sup>observed</sup> <sup>earlier,</sup> <sup>the</sup> <sup>shortest</sup> paths between those vertices already go through all vertices of type _t_ <sup>_v_</sup> _i_ <sup>and</sup> <sup>_y_</sup> _i,j_ <sup>_v_</sup> <sup>.</sup> <sup>However,</sup> <sup>no</sup> other vertex lies on a shortest path between two such vertices: these shortest paths always go through the boundary 6-cycle of the vertex-gadgets. Let _S_ 0 <sup>_′_</sup> <sup>be</sup> <sup>the</sup> <sup>set</sup> <sup>of</sup> <sup>the</sup> <sup>remaining</sup> <sup>_k_</sup> vertices of _S_ <sup>_′_</sup> . These vertices are there to cover the vertices of type _c_ <sup>_v_</sup> and _x_ <sup>_v_</sup> _i,j_ <sup>.</sup> <sup>We</sup> <sup>construct</sup> a subset _D_ <sup>_′_</sup> of _V_ ( _G_ ) as follows: _D_ <sup>_′_</sup> contains those vertices _v_ of _G_ whose vertex-gadget _Gv_ contains a vertex of _S_ 0 <sup>_′_</sup> <sup>.</sup> <sup>We claim that</sup> <sup>_D′_</sup> <sup>is a dominating set of</sup> <sup>_G_</sup> <sup>.</sup> <sup>Suppose by contradiction</sup> <sup>_v_</sup> _i_ <sup>and</sup> <sup>_y_</sup> _i,j_ <sup>_v_</sup> contains a vertex of _S_ 0 <sup>_′_</sup> <sup>.</sup> <sup>We claim that</sup> <sup>_D′_</sup> <sup>is a dominating set of</sup> <sup>_G_</sup> <sup>.</sup> <sup>Suppose by contradiction</sup> that there is a vertex _v_ of _G_ such that neither _Gv_ nor any of _Gw_ (with _w_ adjacent to _v_ in _G_ ) contains any vertex of _S_ 0 <sup>_′_</sup> <sup>.</sup> <sup>Here</sup> <sup>also,</sup> <sup>the</sup> <sup>shortest</sup> <sup>paths</sup> <sup>between</sup> <sup>vertices</sup> <sup>of</sup> <sup>_S_</sup> <sup>always</sup> <sup>go</sup> through the boundary 6-cycle of _Gv_ and thus, they never include vertex _cv_, a contradiction. Thus, _D_ <sup>_′_</sup> is a dominating set of size _k_, and we are done. 2.2 NP-hardness on line graphs In this section, we prove that the MGS problem remains NP-hard on line graphs. For a graph _G_ and edges _e, e_ <sup>_′_</sup> _∈_ _E_ ( _G_ ), define _d_ ( _e, e_ <sup>_′_</sup> ) = 1 if _e, e_ <sup>_′_</sup> shares a vertex and _d_ ( _e, e_ <sup>_′_</sup> ) = _i_ if _e_ <sup>_′_</sup> shares a vertex with an edge _e_ <sup>_′′_</sup> with _d_ ( _e, e_ <sup>_′′_</sup> ) = _i −_ 1. A path between two edges _e, e_ <sup>_′_</sup> is defined in the usual way. - Observation A. A path between two edges _e, e_ <sup>_′_</sup> of a graph _G_ corresponds to a path between the vertices _e_ and _e_ <sup>_′_</sup> in _L_ ( _G_ ). Given a graph _G_, a set _S_ _⊆_ _E_ ( _G_ ) is a _line_ _geodetic_ _set_ of _G_ if every edge _e ∈_ _E_ ( _G_ ) _\ S_ belongs to some shortest path between some pair of edges _{e, e_ <sup>_′_</sup> _} ⊆_ _S_ . Observation A implies the following. - Observation B. A graph _G_ has a line geodetic set of cardinality _k_ if and only if _L_ ( _G_ ) has a geodetic set of size _k_ . Chakraborty et al. 23:5 _a_ _b_ (a) (b) _d_ _c_ Figure 2 (a) A triangle-free graph _G_ and (b) the graph _HG_ . We shall show (in Lemma 10) that finding a line geodetic set of a graph with minimum cardinality is NP-hard. Then Observation B shall imply that solving the MGS problem on line graphs is NP-hard. For the above purpose we need the following definition. Given a graph _G_, a set _S_ _⊆_ _E_ ( _G_ ) is a _good_ _edge_ _set_ if for any edge _e ∈_ _E_ ( _G_ ) _\ S_, there are two edges _e_ <sup>_′_</sup> _, e_ <sup>_′′_</sup> _∈_ _S_ such that (i) _e_ lies in some shortest path between _e_ <sup>_′_</sup> and _e_ <sup>_′′_</sup>, and (ii) _d_ ( _e_ <sup>_′_</sup> _, e_ <sup>_′′_</sup> ) is 2 or 3. - Lemma 6. _Computing_ _a_ _good_ _edge_ _set_ _of_ _a_ _triangle-free_ _graph_ _with_ _minimum_ _cardinality_ _is_ _NP-hard._ Proof. We shall reduce the NP-complete Edge Dominating set problem on triangle-free graphs [26] to the problem of computing a good edge set of a graph with minimum cardinality on triangle-free graphs. Given a graph _G_, a set _S_ _⊆_ _E_ ( _G_ ) is an _edge_ _dominating_ _set_ of _G_ if any edge _e ∈_ _E_ ( _G_ ) _\ S_ shares a vertex with some edge in _S_ . The Edge Dominating Set problem is to compute an edge dominating set of _G_ with minimum cardinality. Let _G_ be a triangle-free graph. For each vertex _v_ _∈_ _V_ ( _G_ ), take a new edge _xvyv_ . Construct a graph _G_ <sup>_∗_</sup> whose vertex set is the union of _V_ ( _G_ ) and the set _{xv, yv}v∈V_ ( _G_ ) and _E_ ( _G_ <sup>_∗_</sup> ) = _E_ ( _G_ ) _∪{vxv}v∈V_ ( _G_ ) _∪{xvyv}v∈V_ ( _G_ ). Notice that _G_ <sup>_∗_</sup> is a triangle-free graph and we shall show that _G_ has an edge dominating set of cardinality _k_ if and only if _G_ <sup>_∗_</sup> has a good edge set of cardinality _k_ + _n_ where _n_ = _|V_ ( _G_ ) _|_ . Let _S_ be an edge dominating set of _G_ . For each _v_ _∈_ _G_, let _Hv_ be written as _xv, yv, zv_ . Notice that the set _S ∪{xvyv}v∈V_ ( _G_ ) forms a good edge set of _G_ <sup>_∗_</sup> and has cardinality _k_ + _n_ . Let _S_ <sup>_′_</sup> be a good edge set of _G_ <sup>_∗_</sup> of size at most _k_ + _n_ . Notice that for each _v_ _∈_ _V_ ( _G_ ), _S_ <sup>_′_</sup> must contain the edge _xvyv_ . Hence, the cardinality of the set _S_ <sup>_′_</sup> _∩_ _E_ ( _G_ ) is at most _k_ . Moreover, for each _e ∈_ _E_ ( _G_ <sup>_∗_</sup> ) _∩_ _E_ ( _G_ ), there is an edge _e_ <sup>_′_</sup> _∈_ _S_ <sup>_′_</sup> which is at distance 2 from _e_ . As _S_ <sup>_′_</sup> is a good edge set of _G_ <sup>_∗_</sup>, any edge in _E_ ( _G_ ) _\ S_ <sup>_′_</sup> shares a vertex with some edge of _S_ <sup>_′_</sup> . Hence _S_ <sup>_′_</sup> _∩_ _E_ ( _G_ ) is an edge dominating set of _G_ of cardinality at most _k_ . For a triangle-free graph _G_, let _HG_ be the graph with _V_ ( _HG_ ) = _V_ ( _G_ ) _∪{a, b, c, d}_ and _E_ ( _HG_ ) = _E_ ( _G_ ) _∪{ab, cd} ∪_ _E_ <sup>_′_</sup> where _E_ <sup>_′_</sup> = _{bv}v∈V_ ( _G_ ) _∪{cv}v∈V_ ( _G_ ). See Figure 2(a) and Figure 2(b) for an example. We prove the following proposition. - Lemma 7. _For_ _a_ _triangle-free_ _graph_ _G,_ _there_ _is_ _a_ _line_ _geodetic_ _set_ _Q_ _of_ _HG_ _with_ _minimum_ _cardinality_ _such_ _that_ _Q ∩_ _E_ <sup>_′_</sup> = _∅._ Proof. For a set _S_ _⊆_ _E_ ( _HG_ ), an edge _f_ _∈_ _S_ _covers_ an edge _e ∈_ _E_ ( _HG_ ), if there is another edge _f_ <sup>_′_</sup> _∈_ _S_ such that _e_ lies in the shortest path between _f_ and _f_ <sup>_′_</sup> . Notice that the edges _{ab, cd}_ lie in any line geodetic set of _HG_ and all edges in _E_ <sup>_′_</sup> are covered by _ab_ and _cd_ . First we prove the following claims. - Claim 8. Let _Q_ be a line geodetic set of _HG_ and _e ∈_ _E_ <sup>_′_</sup> _∩_ _Q_ . If _e_ does not cover any edge of _E_ ( _G_ ), then _Q \ {e}_ is a line geodetic set of _G_ <sup>_∗_</sup> . CVIT 2016 23:6 Hardness and approximation for the geodetic set problem in some graph classes The proof of the above claim follows from the fact that all edges in _E_ <sup>_′_</sup> _∪{ab, cd}_ are covered by _ab_ and _cd_ . - Claim 9. Let _Q_ be a line geodetic set of _HG_ and _e_ _∈_ _E_ <sup>_′_</sup> _∩_ _Q_ . There is another edge _e_ <sup>_′_</sup> _∈_ _E_ ( _G_ ) _\ Q_ such that ( _Q ∪{e_ <sup>_′_</sup> _}_ ) _\ {e}_ is a line geodetic set of _HG_ . To prove the claim above, first we define the _ecentricity_ of an edge _e_ _∈_ _E_ ( _HG_ ) to be the maximum shortest path distance between _e_ and any other edge in _E_ ( _HG_ ). Notice that the ecentricity of any edge in _E_ <sup>_′_</sup> is two and the ecentricity of any edge of _E_ ( _G_ ) in _HG_ is at most three. Now remove all edges from _E_ <sup>_′_</sup> _∩_ _Q_ which do not cover any edge of _E_ ( _G_ ). By Claim 1, the resulting set, say _Q_ <sup>_′_</sup>, is a line geodetic set of _HG_ . Let _e_ be an edge _Q_ <sup>_′_</sup> _∩_ _E_ <sup>_′_</sup> and let _{f_ 1 _, f_ 2 _, . . ., fk} ⊆_ _E_ ( _G_ ) _\ Q_ <sup>_′_</sup> be the set of edges covered by _e_ . Since the ecentricity of _e_ is two, there must exist _e_ 1 _, e_ 2 _, . . ., ek_ in _Q_ <sup>_′_</sup> such that _fi_ has a common endpoint with both _e_ and _ei_ for each _i_ _∈{_ 1 _,_ 2 _, . . ., k}_ . Therefore the distance between _e_ and _ei_ is two for each _i_ _∈{_ 1 _,_ 2 _, . . ., k}_ . As _G_ is triangle-free, _ei̸_ = _ej_ for any _i, j_ _∈{_ 1 _,_ 2 _, . . ., k}_ . Choose any edge _fj_ _∈{f_ 1 _, f_ 2 _, . . ., fk}_ . Observe that the distance between _fj_ and _ei_ is two when _i̸_ = _j_ . Therefore, for each _i_ _∈{i,_ 2 _, . . ., j_ _−_ 1 _, j_ + 1 _, . . . k}_, the edge _fi_ lies in the shortest path between _fj_ and _ei_ . Therefore, ( _Q_ <sup>_′_</sup> _∪{fj}_ ) _\ {e}_ is a line geodetic set of _HG_ . Given any line geodetic set _P_ of _HG_, we can use the arguments used in Claim 1 and Claim 2 repeatedly on _P_ to construct a line geodetic set _Q_ of _HG_ such that _|Q| ≤|P_ _|_ and _Q ∩_ _E_ <sup>_′_</sup> = _∅_ . Thus we have the proof. - Lemma 10. _Computing_ _a_ _line_ _geodetic_ _set_ _of_ _a_ _graph_ _with_ _minimum_ _cardinality_ _is_ _NP-hard._ Proof. We shall reduce the NP-complete problem of computing a good edge set of a trianglefree graph with minimum cardinality (Lemma 6). Let _G_ be a triangle-free graph. Construct the graph _HG_ as stated above (just before Lemma 7). The set _E_ <sup>_′_</sup> is also defined as before. We shall show that a triangle-free graph _G_ has a good edge set of cardinality _k_ if and only if _HG_ has a line geodetic set of cardinality _k_ + 2. Let _P_ be a good edge set of _G_ . Notice that, for each edge _e ∈_ _E_ ( _G_ ), there are two edges _e_ <sup>_′_</sup> _, e_ <sup>_′′_</sup> _∈_ _P_ such that _e_ belongs to a shortest path between _e_ <sup>_′_</sup> and _e_ <sup>_′′_</sup> in _HG_ . Also any edge of _E_ <sup>_′_</sup> belongs to a shortest path between the edges _ab_ and _cd_ in _HG_ . Hence _P_ _∪{ab, cd}_ is a line geodetic set of _HG_ with cardinality _k_ + 2. Let _Q_ be a line geodetic set of _HG_ of size _k_ + 2. Notice that _{ab, cd}_ _⊆_ _Q_ and let _Q_ <sup>_′_</sup> = _Q \ {ab, cd}_ . Due to Lemma 7, we can assume that _Q_ <sup>_′_</sup> does not contain any edge of _E_ <sup>_′_</sup> . Let _e_ be an edge in _E_ ( _G_ ) _\ Q_ <sup>_′_</sup> and let _e_ <sup>_′_</sup> _, e_ <sup>_′′_</sup> _∈_ _Q_ <sup>_′_</sup> such that _e_ lies in some shortest path between _e_ <sup>_′_</sup> and _e_ <sup>_′′_</sup> in _HG_ . Since the distance between _e_ <sup>_′_</sup> and _e_ <sup>_′′_</sup> is at most three in _HG_, it follows that _Q_ <sup>_′_</sup> is a good edge set of _G_ with cardinality _k_ . 2.3 Inapproximability on graphs with diameter 2 Given a graph _G_, a set _S_ _⊆_ _V_ ( _G_ ) is a _2-dominating_ _set_ of _G_ if any vertex _w_ _∈_ _V_ ( _G_ ) _\ S_ has at least two neighbours in _S_ . The 2-MDS problem is to compute a 2-dominating set of graphs with minimum cardinality. We shall use the following result. - Theorem 11 ([5, 7]) . _Unless_ _P_ = _NP_ _,_ _there_ _is_ _no_ _polynomial_ _time_ _o_ (log _n_ ) _-approximation_ _algorithm_ _for_ _the_ 2-MDS _problem_ _on_ _triangle-free_ _graphs._ We observe the following. Chakraborty et al. 23:7 - Lemma 12. _Let_ _G_ _be_ _a_ _triangle-free_ _graph_ _and_ _G_ <sup>_′_</sup> _be_ _the_ _graph_ _obtained_ _by_ _adding_ _an_ _universal_ _vertex_ _v_ _to_ _G._ _A_ _set_ _S_ _of_ _vertices_ _of_ _G_ <sup>_′_</sup> _is_ _a_ _geodetic_ _set_ _if_ _and_ _only_ _if_ _S \ {v}_ _is_ _a_ 2 _-dominating_ _set_ _of_ _G._ Proof. Let _S_ be a geodetic set of _G_ <sup>_′_</sup> . Observe that for any vertex _u ∈_ _V_ ( _G_ ) _\ S_ there must exist vertices _u_ 1 _, u_ 2 _∈_ _S_ _\ {v}_ such that _u_ _∈_ _I_ ( _u_ 1 _, u_ 2) and _u_ 1 _u_ 2 _∈/_ _E_ ( _G_ ). Hence, _S_ is a 2-dominating set of _G_ . Conversely, let _S_ <sup>_′_</sup> be any 2-dominating set of _G_ . For any two vertex _u ∈_ _V_ ( _G_ ) _\ S_ there exist _v, v_ <sup>_′_</sup> _∈_ _S_ such that _uv, uv_ <sup>_′_</sup> _∈_ _E_ ( _G_ ). Since _G_ is triangle-free, _v_ and _v_ <sup>_′_</sup> are non-adjacent. Hence, _u ∈_ _I_ ( _v, v_ <sup>_′_</sup> ) and _S_ <sup>_′_</sup> _∪{v}_ is a geodetic set of _G_ <sup>_′_</sup> . The proof of Theorem 3 follows due to Lemma 12 and Theorem 11. <mark>3</mark> Approximation algorithms In Section 3.1 and Section 3.2 we present approximation algorithms for the MGS problem on general graphs and solid grid graphs, respectively. 3.1 General graphs We will reduce the Minimum Geodetic Set problem to the Minimum Rainbow Subgraph of Multigraph (MRSM) problem. A subgraph _H_ of an edge colored multigraph _G_ is _colorful_ if _H_ contains at least one edge of each color. Given an edge colored multigraph _G_, the MRSM problem is to find a colorful subgraph of _G_ of minimum cardinality. The following is a consequence of a result due to Tirodkar and Vishwanathan [24]. - Theorem 13 ([24]) . _Given_ _an_ _edge_ _colored_ _multigraph_ _G,_ _there_ _is_ _a_ _polynomial_ _time_ _O_ ( <sup>_√_</sup> <sup>3</sup> _<u>n</u>_ log _n_ ) _-approximation_ _algorithm_ _to_ _solve_ _the_ MRSM _problem_ _where_ _n_ = _|V_ ( _G_ ) _|._ We note that Tirodkar and Vishwanathan [24] proved the above theorem for simple graphs only, but the proof works for multigraphs as well. Given a graph _G_ form an edge colored multigraph _HG_ as follows. The vertex set of _HG_ is the same as _G_ . For each subset _{u, v, w} ⊆_ _V_ ( _G_ ) such that _u_ lies in some shortest path between _v_ and _w_, add an edge in _HG_ between _v_ and _w_ having the color _u_ . Observe that, _G_ has a geodetic set of cardinality _k_ if and only if _HG_ has a colorful subgraph with _k_ vertices. The proof of Theorem 4 follows from Theorem 13. 3.2 Solid grid graphs In this section, we shall give a linear time 3-approximation algorithm for the MGS problem on solid grid graphs. From now on _G_ shall denote a solid grid graph and _R_ is a grid embedding of _G_ where every interior face has unit area. Let _G_ be a solid grid graph. A path _P_ of _G_ is a _corner_ _path_ if (i) no vertex of _P_ is a cut vertex, (ii) both end-vertices of _P_ have degree 2, and (iii) all vertices except the end-vertices of _P_ have degree 3. See Figure 3(a) for an example. Observe that for a corner path _P_, either the _x_ -coordinates of all vertices of _P_ are the same or the _y_ -coordinates of all vertices of _P_ are the same. Moreover, all vertices of a corner path lie in the outer face of _G_ . The next observation follows from the definition of corner path and the fact that _G_ is a solid grid graph. - Observation C. Let _P_ be a corner path of _G_ . Consider the set _Q_ = _{v_ _∈_ _V_ ( _G_ ) : _v_ _∈/_ _V_ ( _P_ ) _, N_ ( _v_ ) _∩_ _P̸_ = _∅}_ . Then _Q_ induces a path in _G_ . Moreover, if the _x_ -coordinates (resp. CVIT 2016 23:8 Hardness and approximation for the geodetic set problem in some graph classes (a) (b) (c) Figure 3 (a) The black and gray vertices are the vertices of the corner paths. The gray vertices indicate the corner vertices. (b) The gray vertices are vertices of the red path. Vertices in the shaded box form a rectangular block. (c) Example of a solid grid graph whose number of corner vertices is exactly three times the geodetic number. the _y_ -coordinates) of all the vertices of _P_ are the same, then the _x_ -coordinates (resp. the _y_ -coordinates) of all vertices in _Q_ are the same. We shall use Observation C to prove a lower bound on the geodetic number of _G_ in terms of the number of corner paths of _G_ . - Lemma 14. _Any_ _geodetic_ _set_ _of_ _G_ _contains_ _at_ _least_ _one_ _vertex_ _from_ _each_ _corner_ _path._ Proof. Without loss of generality, we assume the _x_ -coordinates of all vertices of _P_ are the same. By Observation C, the set _{v_ _∈_ _V_ ( _G_ ) : _v_ _∈/_ _V_ ( _P_ ) _, N_ ( _v_ ) _∩_ _P_ = _∅}_ induces a path _Q_ and the _x_ -coordinates of all vertices in _Q_ are the same. Now consider any two vertices _a, b_ _∈_ _V_ ( _G_ ) _\_ _V_ ( _P_ ) and with a path _P_ <sup>_′_</sup> between _a_ and _b_ that contains one of the end-vertices, say _u_, of _P_ . Observe that _P_ <sup>_′_</sup> can be expressed as _P_ <sup>_′_</sup> = _a_ _c_ 1 _c_ 2 _. . . ct_ _d_ _f_ 1 _f_ 2 _. . . ft′_ _u_ _g_ _h_ 1 _h_ 2 _. . . ht′′_ _b_ such that _{d, g}_ _⊆_ _V_ ( _Q_ ) and _{f_ 1 _, f_ 2 _, . . ., ft′} ⊆_ _V_ ( _P_ ). Then there is a path _P_ <sup>_′′_</sup> = _a c_ 1 _c_ 2 _. . . ct_ _d f_ 2 <sup>_′_</sup> <sup>_. . . f_</sup> _t_ <sup>_′′_</sup> <sup>_g_</sup> <sup>_h_</sup> <sup>1</sup> <sup>_h_</sup> <sup>2</sup> <sup>_. . . ht′′_</sup> <sup>_b_</sup> where for 2 _≤_ _i ≤_ _t_ <sup>_′_</sup>, _fi_ <sup>_′_</sup> <sup>is the vertex in</sup> <sup>_Q_</sup> <sup>which is adjacent to</sup> <sup>_fi_</sup> <sup>in</sup> <sup>_G_</sup> <sup>.</sup> <sup>Observe that the length</sup> of _P_ <sup>_′′_</sup> is strictly less than that of _P_ <sup>_′_</sup> . Therefore _u_ _∈/_ _I_ ( _a, b_ ) whenever _a, b_ _∈_ _V_ ( _G_ ) _\ V_ ( _P_ ). Hence any geodetic set of _G_ contains at least one vertex from _P_ . Any geodetic set of _G_ contains all vertices of degree 1. Inspired by the above fact and Lemma 14, we define the term _corner_ _vertex_ as follows. A vertex _v_ of _G_ is a _corner_ _vertex_ if _v_ has degree 1 or _v_ is an end-vertex of some corner path. See Figure 3(a) for an example. Observe that two corner paths may have at most one corner vertex in common. Moreover, a corner vertex cannot be in three corner paths. Therefore it follows that the cardinality of the set of corner vertices is at most 3 _· g_ ( _G_ ). - Remark 15. Note that there are solid grid graphs whose number of corner vertices is exactly three times the geodetic number. See Figure 3(c) for one such example. Now we prove that the set of all corner vertices of _G_ is indeed a geodetic set of _G_ . We shall use the following proposition of Ekim and Erey [10]. - Theorem 16 ([10]) . _Let_ _F_ _be_ _a_ _graph_ _and_ _F_ 1 _, . . ., Fk_ _its_ _biconnected_ _components._ _Let_ _C_ _be_ _the_ _set_ _of_ _cut_ _vertices_ _of_ _G._ _If_ _Xi_ _⊆_ _V_ ( _Fi_ ) _is_ _a_ _minimum_ _set_ _such_ _that_ _Xi ∪_ ( _V_ ( _Fi_ ) _∩_ _C_ ) _is_ _a_ _minimum_ _geodetic_ _set_ _of_ _Fi_ _then_ _∪_ <sup>_k_</sup> _i_ =1 <sup>_Xi_</sup> <sup>_is_</sup> <sup>_a_</sup> <sup>_minimum_</sup> <sup>_godetic_</sup> <sup>_set_</sup> <sup>_of_</sup> <sup>_F_</sup> <sup>_._</sup> The next observation follows from Theorem 16. Chakraborty et al. 23:9 - Observation D. Let _C_ ( _G_ ) be the set of corner vertices of _G_ and _S_ be the set of cut vertices of _G_ . Let _{H_ 1 _, H_ 2 _, . . ., Ht}_ be the set of biconnected components of _G_ . The set _C_ ( _G_ ) is a geodetic set of _G_ if and only if ( _C_ ( _G_ ) _∩_ _V_ ( _Hi_ )) _∪_ ( _S ∩_ _V_ ( _Hi_ )) is a geodetic set of _Hi_ for all 1 _≤_ _i ≤_ _t_ . From now on, _C_ ( _G_ ) is the set of corner vertices of _G_ and _H_ 1 _, H_ 2 _, . . ., Ht_ are the biconnected components of _G_ . Due to Theorem 16 and Observation D, it is enough to show that for each 1 _≤_ _i ≤_ _t_, the set ( _C_ ( _G_ ) _∩_ _V_ ( _Hi_ )) _∪_ ( _S ∩_ _V_ ( _Hi_ )) is a geodetic set of _Hi_ . First, we introduce some more notations and definitions below. Let _H_ be a biconnected component of _G_ . Recall that each vertex of _H_ is a pair of integers and each edge is a line segment with unit length. An edge _e ∈_ _E_ ( _H_ ) is an _interior_ edge if all interior points of _e_ lie in an interior face of _H_ . For a vertex _v_ _∈_ _V_ ( _H_ ), let _Pv_ denote the maximal path such that all edges of _Pv_ are interior edges and each vertex in _Pv_ has the same _x_ -coordinate as _v_ . Similarly, let _Pv_ <sup>_′_</sup> <sup>denote</sup> <sup>the</sup> <sup>maximal</sup> <sup>path</sup> <sup>such</sup> <sup>that</sup> <sup>all</sup> <sup>edges</sup> <sup>of</sup> <sup>_Pv_</sup> <sup>are</sup> interior edges and each vertex in _Pv_ <sup>_′_</sup> <sup>has</sup> <sup>the</sup> <sup>same</sup> <sup>_y_</sup> <sup>-coordinate</sup> <sup>as</sup> <sup>_v_</sup> <sup>.</sup> <sup>A</sup> <sup>path</sup> <sup>_P_</sup> <sup>of</sup> <sup>_H_</sup> <sup>is</sup> <sup>a</sup> <sup>_red_</sup> _path_ if (i) there exists a _v_ _∈_ _V_ ( _H_ ) such that _P_ _∈{Pv, Pv_ <sup>_′_</sup> <sup>_}_</sup> <sup>and</sup> <sup>(ii)</sup> <sup>at</sup> <sup>least</sup> <sup>one</sup> <sup>end-vertex</sup> <sup>of</sup> _P_ is a cut-vertex or a vertex of degree 4. A vertex _v_ of _H_ is _red_ if _v_ lies on some red path. See Figure 3(b) for an example. - Definition 17. _A_ _subgraph_ _F_ _of_ _H_ _is_ _a_ _rectangular_ _block_ _if_ _F_ _satisfies_ _the_ _following_ _properties._ 1. _For any two vertices_ ( _a_ 1 _, b_ 1) _,_ ( _a_ 2 _, b_ 2) _of F_ _, we have that any pair_ ( _a_ 3 _, b_ 3) _with a_ 1 _≤_ _a_ 3 _≤_ _a_ 2 _and_ _b_ 1 _≤_ _b_ 3 _≤_ _b_ 2 _is_ _a_ _vertex_ _of_ _F_ _._ 2. _Let_ _a, a_ <sup>_′_</sup> _be_ _the_ _maximum_ _and_ _minimum_ _x-coordinates_ _of_ _the_ _vertices_ _in_ _F_ _._ _The_ _x-_ _coordinate_ _of_ _any_ _red_ _vertex_ _of_ _F_ _must_ _be_ _equal_ _to_ _a_ _or_ _a_ <sup>_′_</sup> _._ _Similarly,_ _let_ _b, b_ <sup>_′_</sup> _be_ _the_ _maximum_ _and_ _minimum_ _y-coordinates_ _of_ _the_ _vertices_ _in_ _F_ _._ _The_ _y-coordinate_ _of_ _any_ _red_ _vertex_ _of_ _F_ _must_ _be_ _equal_ _to_ _b_ _or_ _b_ <sup>_′_</sup> _._ Observe that _H_ can be decomposed into rectangular blocks such that each non-red vertex belongs to exactly one rectangular block. See Figure 3(b) for an example. Let _B_ 1 _, B_ 2 _, . . ., Bk_ be a decomposition of _H_ into rectangular blocks. Recall that _C_ ( _G_ ) is the set of corner vertices of _G_ and _S_ is the set of cut vertices of _G_ . We have the following lemma. - Lemma 18. _For_ _each_ 1 _≤_ _i ≤_ _k,_ _there_ _are_ _two_ _vertices_ _xi, yi_ _∈_ ( _C_ ( _G_ ) _∩_ _V_ ( _H_ )) _∪_ ( _S ∩_ _V_ ( _H_ )) _such_ _that_ _V_ ( _Bi_ ) _⊆_ _I_ ( _xi, yi_ ) _._ Proof. Let _X_ _∈{B_ 1 _, B_ 2 _, . . ., Bk}_ be an arbitrary rectangular block. A vertex _v_ of _X_ is a _northern_ vertex if the _y_ -coordinate of _v_ is maximum among all vertices of _X_ . Analogously, _western_ vertices, _eastern_ vertices and _southern_ vertices are defined. A vertex of _X_ is a boundary vertex if it is either northern, western, southern or an eastern vertex of _X_ . Let _nw_ ( _X_ ) be the vertex of _X_ which is both a northern vertex and a western vertex. Similarly, _ne_ ( _X_ ) denotes the vertex which is both northern vertex and eastern vertex, _sw_ ( _X_ ) denotes the vertex of _X_ which is both southern and western vertex and _se_ ( _X_ ) denotes the vertex of _X_ which is both southern and eastern vertex. First we prove the lemma assuming that all boundary vertices of _X_ are red vertices. Let _a_ (resp. _b_ ) denote the vertex with minimum _y_ -coordinate such that _Pa_ (resp. _Pb_ ) contains _sw_ ( _X_ ) (resp. _se_ ( _X_ )). Similarly, let _c_ (resp. _d_ ) denote the vertex with maximum _y_ -coordinate such that _Pc_ (resp. _Pd_ ) contains _nw_ ( _X_ ) (resp. _ne_ ( _X_ )). Let _a_ <sup>_′_</sup> (resp. _c_ <sup>_′_</sup> ) denote the vertex with minimum _x_ -coordinate such that _Pa_ <sup>_′_</sup> <sup>_′_</sup> <sup>(resp.</sup> <sup>_P ′_</sup> _b_ <sup>_′_</sup> <sup>)</sup> <sup>contains</sup> <sup>_sw_</sup> <sup>(</sup> <sup>_X_</sup> <sup>)</sup> <sup>(resp.</sup> <sup>_nw_</sup> <sup>(</sup> <sup>_X_</sup> <sup>)).</sup> <sup>Let</sup> <sup>_b′_</sup> _a_ <sup>_′_</sup> <sup>_′_</sup> <sup>(resp.</sup> <sup>_P ′_</sup> _b_ <sup>_′_</sup> _b_ <sup>_′_</sup> <sup>)</sup> <sup>contains</sup> <sup>_sw_</sup> <sup>(</sup> <sup>_X_</sup> <sup>)</sup> <sup>(resp.</sup> <sup>_nw_</sup> <sup>(</sup> <sup>_X_</sup> <sup>)).</sup> <sup>Let</sup> <sup>_b′_</sup> (resp. _d_ <sup>_′_</sup> ) denote the vertex with maximum _x_ -coordinate such that _Pb_ <sup>_′_</sup> _b_ <sup>_′′_</sup> <sup>(resp.</sup> <sup>_P ′_</sup> _d_ <sup>_′_</sup> _d_ <sup>_′_</sup> <sup>)</sup> <sup>contains</sup> CVIT 2016 23:10 Hardness and approximation for the geodetic set problem in some graph classes _se_ ( _X_ ) (resp. _ne_ ( _X_ )). Observe that the vertices _a_ <sup>_′_</sup> _, a, b, b_ <sup>_′_</sup> _, d_ <sup>_′_</sup> _, d, c, c_ <sup>_′_</sup> lie on the exterior face of the embedding. For two vertices _i, j_ _∈{a_ <sup>_′_</sup> _, a, b, b_ <sup>_′_</sup> _, d_ <sup>_′_</sup> _, d, c, c_ <sup>_′_</sup> _}_, let _Pij_ denote the path between _i, j_ that can be obtained by traversing the exterior face of the embedding in the counter-clockwise direction starting from _i_ . Observe that, if both _Pa′a_ and _Pd′d_ (resp. _Pbb′_ and _Pcc′_ ) contain a corner or cut vertex each, say _f, f_ <sup>_′_</sup>, then _{sw_ ( _X_ ) _, ne_ ( _X_ ) _} ⊆_ _I_ ( _f, f_ <sup>_′_</sup> ) (resp. _{nw_ ( _X_ ) _, se_ ( _X_ ) _} ⊆_ _I_ ( _f, f_ <sup>_′_</sup> )) and therefore _V_ ( _X_ ) _⊆_ _I_ ( _f, f_ <sup>_′_</sup> ). Now consider the case when at least one of the paths in _{Pa′a, Pd′d}_ does not contain any corner vertex or cut vertex and when at least one of the paths in _{Pb_ <sup>_′_</sup> _b, Pcc_ <sup>_′_</sup> _}_ does not contain any corner vertex or cut vertex. Due to symmetry of rotation and reflection on grids, without loss of generality we can assume that both _Pa′a_ and _Pbb′_ have no corner vertex or cut vertex. Observe that in this case there must be a corner vertex _f_ in _Pab_ whose _x_ -coordinate is the same as that of _b_ and therefore of _se_ ( _X_ ). If _Pcc′_ contains a corner vertex _f_ <sup>_′_</sup>, then _{nw_ ( _X_ ) _, se_ ( _X_ ) _} ⊆_ _I_ ( _f, f_ <sup>_′_</sup> )) and therefore _V_ ( _X_ ) _⊆_ _I_ ( _f, f_ <sup>_′_</sup> ). Otherwise, there must be a corner vertex _f_ <sup>_′_</sup> in _Pc′a′_ whose _y_ -coordinate is the same as that of _c_ <sup>_′_</sup> and therefore of _nw_ ( _X_ ). Hence we have _{nw_ ( _X_ ) _, se_ ( _X_ ) _} ⊆_ _I_ ( _f, f_ <sup>_′_</sup> ) and therefore _V_ ( _X_ ) _⊆_ _I_ ( _f, f_ <sup>_′_</sup> ) in this case also. Now we consider the case when there are some non-red boundary vertices of _X_ . Let _v_ be a non-red vertex of _X_ . Without loss of generality, we can assume that _v_ is a western vertex of _X_ . Now we redefine the vertices _a, a_ <sup>_′_</sup> _, b, b_ <sup>_′_</sup> _, c, c_ <sup>_′_</sup> _, d, d_ <sup>_′_</sup> as follows. Let _a_ <sup>_′_</sup> = _sw_ ( _X_ ), _c_ <sup>_′_</sup> = _nw_ ( _X_ ) and _a_ (resp. _b_ ) be the vertex with minimum _y_ -coordinate such that there is a path from _a_ to _sw_ ( _X_ ) (resp. from _b_ to _se_ ( _X_ )) containing vertices with the same _x_ -coordinate as that of _sw_ ( _X_ ) (resp. _se_ ( _X_ )). Similarly, let _c_ (resp. _d_ ) be the vertex with maximum _y_ -coordinate such that there is a path from _c_ to _nw_ ( _X_ ) (resp. from _d_ to _ne_ ( _X_ )) containing vertices with the same _x_ -coordinate as that of _nw_ ( _X_ ) (resp. _ne_ ( _X_ )). Finally, let _d_ <sup>_′_</sup> (resp. _b_ <sup>_′_</sup> ) be the vertex with maximum _x_ -coordinate such that there is a path from _d_ <sup>_′_</sup> to _ne_ ( _X_ ) (resp. from _b_ <sup>_′_</sup> to _se_ ( _X_ )) containing vertices with the same _y_ -coordinate as that of _ne_ ( _X_ ) (resp. _se_ ( _X_ )). Using similar arguments on the paths _Pij_ with _i, j_ _∈{a_ <sup>_′_</sup> _, a, b, b_ <sup>_′_</sup> _, d_ <sup>_′_</sup> _, d, c, c_ <sup>_′_</sup> _}_ as before, we can show that there exists corner vertices _f, f_ <sup>_′_</sup> such that _V_ ( _X_ ) _⊆_ _I_ ( _f, f_ <sup>_′_</sup> ). Thus we have the proof. By Observation D and Lemma 18, _C_ ( _G_ ) is a geodetic set of _G_ . Time complexity: If the grid embedding of _G_ is given as part of the input, then the set of corner vertices can be computed in _O_ ( _|V_ ( _G_ ) _|_ ) time by simply traversing the exterior face of the embedding. Otherwise, the set of corner vertices can be computed in _O_ ( _|V_ ( _G_ ) _|_ ) time as follows (we shall only describe the procedure to find corner vertices of degree two as the other case is trivial). Let _H_ be a biconnected component of _G_, _v_ be a vertex of _H_ having degree 2 and _u_ 0 _, x_ 0 be its neighbours. If both _u_ 0 and _x_ 0 have degree 4, then _v_ is not a corner vertex. Moreover, if at least one of _u_ 0 and _x_ 0 have degree 2 then _v_ is a corner vertex. Otherwise, apply the following procedure. Assume _u_ 0 has degree 3 and denote _v_ as _u−_ 1 for technical reasons. Set _i_ = 0. As _H_ is a biconnected solid grid graph, _ui_ and _xi_ must have exactly one common neighbour which is different from _ui−_ 1. Denote this vertex as _xi_ +1. Let _ui_ +1 be the neighbour of _ui_ different from both _xi_ +1 and _ui−_ 1. If _degH_ ( _ui_ +1) = 4 or _ui_ +1 is a cut vertex in _G_ then terminate. If _degG_ ( _ui_ +1) = 2 then _v_ is a corner vertex. Otherwise, set _i_ = _i_ + 1 and repeat the above steps. Observe that, when the above procedure terminates either we know that _v_ is a corner vertex or there is no corner path that contains both _u_ 0 and _v_ . Now swapping roles of _u_ 0 and _x_ 0 in the above procedure, we can decide if _v_ is a corner vertex. We can find all the corner vertices of _H_ by applying the above procedure to all vertices of degree 2 of _H_ . Similarly by applying the above procedure to all the biconnected components Chakraborty et al. 23:11 of _G_, we can find all corner vertices. Notice that, the total running time of the algorithm remains linear in the number of vertices of _G_ . This completes the proof of Theorem 5. <mark>4</mark> Conclusion In this paper, we studied the computational complexity of the MGS problem in various graph classes. We proved that the MGS problem remains NP-hard on planar graphs and line graphs. This motivates the following question. - Question 1. Are there constant factor approximation algorithms for the MGS problem on planar graphs and line graphs? We gave an _O_ ( <sup>_√_</sup> <sup>3</sup> _<u>n</u>_ log _n_ )-approximation algorithm for the MGS problem on general graphs and proved that unless P=NP, there is no polynomial time _o_ (log _n_ )-approximation algorithm for the MGS problem even on graphs with diameter 2. The following is a natural question in this direction. - Question 2. Is there a _O_ (log _n_ )-approximation algorithm for the MGS problem on general graphs ? ~~References~~ 1 M. Atici. Computational complexity of geodetic set. _International_ _journal_ _of_ _computer_ _mathematics_, 79(5):587–591, 2002. 2 F. Buckley and F. Harary. Geodetic games for graphs. _Quaestiones Mathematicae_, 8(4):321–334, 1985. 3 L.R. Bueno, L.D. Penso, F. Protti, V.R. Ramos, D. Rautenbach, and U.S. Souza. On the hardness of finding the geodetic number of a subcubic graph. _Information_ _Processing_ _Letters_, 135:22–27, 2018. 4 G. Călinescu, A. Dumitrescu, and J. Pach. Reconfigurations in graphs and grids. _SIAM_ _Journal_ _on_ _Discrete_ _Mathematics_, 22(1):124–138, 2008. 5 M. Chlebík and J. Chlebíková. Approximation hardness of dominating set problems in bounded degree graphs. _Information_ _and_ _Computation_, 206(11):1264–1275, 2008. 6 J. Chuzhoy and D.H.K Kim. On approximating node-disjoint paths in grids. In _APPROX/RAN-_ _DOM_, pages 187–211. Schloss Dagstuhl-Leibniz-Zentrum fuer Informatik, 2015. 7 I. Dinur and D. Steurer. Analytical approach to parallel repetition. In _STOC_, pages 624–633. ACM, 2014. 8 M.C. Dourado, F. Protti, D. Rautenbach, and J.L. Szwarcfiter. Some remarks on the geodetic number of a graph. _Discrete_ _Mathematics_, 310(4):832–837, 2010. 9 M.C. Dourado, F. Protti, and J.L. Szwarcfiter. On the complexity of the geodetic and convexity numbers of a graph. In _ICDM_, volume 7, pages 101–108. Ramanujan Mathematical Society, 2008. 10 T. Ekim and A. Erey. Block decomposition approach to compute a minimum geodetic set. _RAIRO-Operations_ _Research_, 48(4):497–507, 2014. 11 T. Ekim, A. Erey, P. Heggernes, P. van’t Hof, and D. Meister. Computing minimum geodetic sets of proper interval graphs. In _LATIN_, pages 279–290. Springer, 2012. 12 M. Farber and R.E. Jamison. Convexity in graphs and hypergraphs. _SIAM_ _Journal_ _on_ _Algebraic_ _Discrete_ _Methods_, 7(3):433–444, 1986. 13 M.R. Garey and D.S. Johnson. _Computers_ _and_ _intractability_, volume 29. W.H.Freeman New York, 2002. CVIT 2016 23:12 Hardness and approximation for the geodetic set problem in some graph classes 14 M.U. Gerber and V.V. Lozin. Robust algorithms for the stable set problem. _Graphs_ _and_ _Combinatorics_, 19(3):347–356, 2003. 15 O. Gerstel and S. Zaks. A new characterization of tree medians with applications to distributed sorting. _Networks_, 24(1):23–29, 1994. 16 A. Gregori. Unit-length embedding of binary trees on a square grid. _Information_ _Processing_ _Letters_, 31(4):167–173, 1989. 17 V. Guruswami. Maximum cut on line and total graphs. _Discrete_ _applied_ _mathematics_, 92(2-3):217–221, 1999. 18 F. Harary, E. Loukakis, and C. Tsouros. The geodetic number of a graph. _Mathematical_ _and_ _Computer_ _Modelling_, 17(11):89–95, 1993. 19 T.W Haynes, M. Henning, and C.A. Tiller. Geodetic achievement and avoidance games for graphs. _Quaestiones_ _Mathematicae_, 26(4):389–397, 2003. 20 A. Itai, C.H. Papadimitriou, and J.L. Szwarcfiter. Hamilton paths in grid graphs. _SIAM_ _Journal_ _on_ _Computing_, 11(4):676–686, 1982. 21 M. Mezzini. Polynomial time algorithm for computing a minimum geodetic set in outerplanar graphs. _Theoretical_ _Computer_ _Science_, 745:63–74, 2018. 22 S.L. Mitchell. Another characterization of the centroid of a tree. _Discrete_ _Mathematics_, 24(3):277–280, 1978. 23 A.A. Sardroud and A. Bagheri. An approximation algorithm for the longest cycle problem in solid grid graphs. _Discrete_ _Applied_ _Mathematics_, 204:6–12, 2016. 24 S. Tirodkar and S. Vishwanathan. On the approximability of the minimum rainbow subgraph problem and other related problems. _Algorithmica_, 79(3):909–924, 2017. 25 B.Y. Wu. A 7/6-approximation algorithm for the max-min connected bipartition problem on grid graphs. In _CGGA_, pages 188–194. Springer, 2010. 26 M. Yannakakis and F. Gavril. Edge dominating sets in graphs. _SIAM_ _Journal_ _on_ _Applied_ _Mathematics_, 38(3):364–372, 1980. 27 W. Zhang and Y. Liu. Approximating the longest paths in grid graphs. _Theoretical_ _Computer_ _Science_, 412(39):5340–5350, 2011.

섹션 본문

섹션 본문이 없습니다.

참고문헌

참고문헌 정보가 없습니다.