Skip to content

Steiner tree problem in graphs. Package for Wolfram Mathematica

License

GPL-3.0, Unknown licenses found

Licenses found

GPL-3.0
LICENSE
Unknown
LICENCE.md
Notifications You must be signed in to change notification settings

spefk/wolfram_steiner

Repository files navigation

Wolfram Mathematica steiner tree problem solving package.

Package is under construction.

Usage

Notebook steiners_trees.nb contains exaples of package import and couple examples of usage of its functions.

It is important to modify your $Path variable, addind there a path to a "packages" directory, for correct work, as it is done in .nb.

Description:

Steiner tree problem in graphs:

Given graph G = (V, E) with real positive weights, and set of terminals T -- subset of V, one should find S -- a tree subgraph of G of minimal weight, containing set T.

Let n = #V, m = #E, t = #T.

Implemented algorithms:

Exact methods [1][2]:

  1. (DW) Dreyfus-Wagner algorithm, straight dynamic realisation O(3^t n + 2^t n^2)

Approximation [1][3][5]:

  1. (DNH) Kou-Markowsky-Berman 2-approximation algorithm O(t m log n).
  2. (DNHA) Mehlhorn 2-approximation algorithm O(m log n).

Greedy [4]:

  1. (SPH) Shortest path heuristic O(n m log(n)).
  2. (RSPH) Repeated shortest path heuristic O(n m log n).

Local-search [4]:

  1. (VI) Steiner-vertex insertion.
  2. (VE) Steiner-vertex elimination.
  3. (PE) Key-path exchange.

Some examples

Shortest path heuristic example (gif): sph-01

Local-search example (gif): mehlhorn-pevive-grid-01

References

  • [0] Datasets: http://steinlib.zib.de
  • [1] Корте Б. Комбинаторная оптимизация. Теория и Алгоритмы / Бернард Корте, Йенс Фиген ; перевод с англ. М.А. Бабенко ; - М. : МЦНМО ; 2015 - 720 с.
  • [2] Dreyfus S. The Steiner Problem in Graphs / S. Dreyfus, R. Wagner ; 1971
  • [3] Markowski G. A fast algorithm for steiner trees / G. Markowski, L. Kou, L. Berman ; 1981.
  • [4] Uchoa E. Fast Local Search for Steiner Trees in Graphs / E. Uchoa, R. Werneck ; 2010
  • [5] Mehlhorn K. A Faster Approximation Algorithm for the Steiner Tree Problem in Graphs / K. Mehlhorn ; 1988

Author's contacts:

Email: f.kurmazov.b@gmail.com

Telegram: @spefk

About

Steiner tree problem in graphs. Package for Wolfram Mathematica

Resources

License

GPL-3.0, Unknown licenses found

Licenses found

GPL-3.0
LICENSE
Unknown
LICENCE.md

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published