Skip to content

Latest commit

 

History

History
62 lines (37 loc) · 2.47 KB

File metadata and controls

62 lines (37 loc) · 2.47 KB

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