Optimizing GNNs: A Sampling-Based Solution to the k-Center Problem

To solve Eq. (6), we modify the standard 2-approximation greedy algorithm for the k-center problem into a sampling algorithm. The modification uses the distance as the probability of being sampled. The procedure runs in
𝑂
(
𝑘
)
O(k) when distances are precomputed, and
𝑂
(
𝑘
𝑛
)
O(kn) when distances need to be calculated for each step, where
𝑛
n is the number of vertices.


This content originally appeared on HackerNoon and was authored by Computational Technology for All

:::info Authors:

(1) Junwei Su, Department of Computer Science, the University of Hong Kong and jwsu@cs.hku.hk;

(2) Chuan Wu, Department of Computer Science, the University of Hong Kong and cwu@cs.hku.hk.

:::

Abstract and 1 Introduction

2 Related Work

3 Framework

4 Main Results

5 A Case Study on Shortest-Path Distance

6 Conclusion and Discussion, and References

7 Proof of Theorem 1

8 Proof of Theorem 2

9 Procedure for Solving Eq. (6)

10 Additional Experiments Details and Results

11 Other Potential Applications

9 Procedure for Solving Eq. (6)

First recall that the optimization problem we want to solve is as follows.

\

\ where k is the given initial set size and Ds(.) is given in Def. 2 with shortest path distance as the metric. Eq. 6 amounts to the well-known k-center problem [14] in graph theory and is NP-hard. For our experiment, we use Eq. 6 as guidance and modify the simple greedy algorithm, farthest-first traversal, to be a sampling method for obtaining a solution. We now describe how we modified the standard greedy algorithm into a sampling algorithm. We start with describing the standard greedy algorithm.

\

\ The procedure described above is a standard 2-approximation greedy algorithm for k-center problem. Next, we describe its sampling variant which use the distance as the chance of being sampled.

9.1 Running Time Complexity

It is obvious that the procedure above runs in O(k) if the distance between any pair of vertices is given and runs in O(kn) if the distance needed to be computed for each step, where n is the number of vertice.

\

:::info This paper is available on arxiv under CC BY 4.0 DEED license.

:::

\


This content originally appeared on HackerNoon and was authored by Computational Technology for All


Print Share Comment Cite Upload Translate Updates
APA

Computational Technology for All | Sciencx (2024-10-22T08:00:18+00:00) Optimizing GNNs: A Sampling-Based Solution to the k-Center Problem. Retrieved from https://www.scien.cx/2024/10/22/optimizing-gnns-a-sampling-based-solution-to-the-k-center-problem/

MLA
" » Optimizing GNNs: A Sampling-Based Solution to the k-Center Problem." Computational Technology for All | Sciencx - Tuesday October 22, 2024, https://www.scien.cx/2024/10/22/optimizing-gnns-a-sampling-based-solution-to-the-k-center-problem/
HARVARD
Computational Technology for All | Sciencx Tuesday October 22, 2024 » Optimizing GNNs: A Sampling-Based Solution to the k-Center Problem., viewed ,<https://www.scien.cx/2024/10/22/optimizing-gnns-a-sampling-based-solution-to-the-k-center-problem/>
VANCOUVER
Computational Technology for All | Sciencx - » Optimizing GNNs: A Sampling-Based Solution to the k-Center Problem. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2024/10/22/optimizing-gnns-a-sampling-based-solution-to-the-k-center-problem/
CHICAGO
" » Optimizing GNNs: A Sampling-Based Solution to the k-Center Problem." Computational Technology for All | Sciencx - Accessed . https://www.scien.cx/2024/10/22/optimizing-gnns-a-sampling-based-solution-to-the-k-center-problem/
IEEE
" » Optimizing GNNs: A Sampling-Based Solution to the k-Center Problem." Computational Technology for All | Sciencx [Online]. Available: https://www.scien.cx/2024/10/22/optimizing-gnns-a-sampling-based-solution-to-the-k-center-problem/. [Accessed: ]
rf:citation
» Optimizing GNNs: A Sampling-Based Solution to the k-Center Problem | Computational Technology for All | Sciencx | https://www.scien.cx/2024/10/22/optimizing-gnns-a-sampling-based-solution-to-the-k-center-problem/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.