The source code and dockerfile for the GSW2024 AI Lab.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

23 lines
711 B

4 weeks ago
  1. /* mincut.c */
  2. /* Written by Andrew Makhorin <mao@gnu.org>, October 2015. */
  3. #ifndef MINCUT_H
  4. #define MINCUT_H
  5. int min_cut(int nn, int ne, const int beg[/*1+ne*/],
  6. const int end[/*1+ne*/], const cap[/*1+ne*/], int cut[/*1+nn*/]);
  7. /* find min cut in undirected capacitated network */
  8. int min_st_cut(int nn, int ne, const int beg[/*1+ne*/],
  9. const int end[/*1+ne*/], const int cap[/*1+ne*/], int s, int t,
  10. const int x[/*1+ne*/], int cut[/*1+nn*/]);
  11. /* find min (s,t)-cut for known max flow */
  12. int min_cut_sw(int nn, int ne, const int beg[/*1+ne*/],
  13. const int end[/*1+ne*/], const cap[/*1+ne*/], int cut[/*1+nn*/]);
  14. /* find min cut with Stoer and Wagner algorithm */
  15. #endif
  16. /* eof */