Skip to content

Maximum independent set problem - greedy and brute force parallel algorithms

License

Notifications You must be signed in to change notification settings

DjGorillaz/maximum-independent-set-parallel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

78 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Parallel algorithms for the maximum independent set problem

Travis CI Appveyor

This program solves maximum independent set problem1 using parallel algorithms (brute force and greedy).

Built With

  • The Boost Graph Library
  • Boost Thread

Problem

Given an undirected graph graph, find the maximum-cardinality subset subset such that no two vertices in Qmax is adjacent.

Qmax_o,

where,

Example

mis-example

Maximal independent set is:

Algorithm

Brute force algorithm

For each subset (2^n) check adjacency matrix (n^2).

Complexity: O(n^2 * 2^n)

Amdahl's law:

sequential_part_brute

Amdahl_brute

where

  • f - sequential part of algorithm;
  • p - number of processors;
  • Sp - theoretical speedup of the whole task.

Greedy algorithm (approximate solution)

Start from each vertex of graph and make recursive calls for adjacency vertices.

Complexity: O(n^2)

Amdahl's law:

sequential_part_greedy

Amdahl_greedy