Skip to content

ameera3/Karger_Min_Cut

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Karger_Min_Cut

Usage

To compile, type "make". To run the program, type "./karger File" where File contains an adjacency list representation of a simple undirected graph.

Introduction

The command line program karger.cpp takes in one parameter, an input file name. The input file specified by the input file name should contain the adjacency list representation of a simple undirected graph. The program will output the minimum cut in the graph with high probability.

In order to output the minimum cut in the graph with high probability, the program implements Karger's randomized min cut algorithm. We use a union-find data structure to implement the edge contraction efficiently.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published