Backtracking Maximal Clique - PowerPoint PPT Presentation

1 / 5
About This Presentation
Title:

Backtracking Maximal Clique

Description:

COSC 4P03 Week 6. 1. Backtracking Maximal Clique. Backtrack_Clique(X, l) { if (l == 0) ... Maximal Clique Example. 0. 5. 1. 2. 3. 4. 6. v. Av. Bv. 0. 1,3,6. 1, ... – PowerPoint PPT presentation

Number of Views:91
Avg rating:3.0/5.0
Slides: 6
Provided by: houg5
Category:

less

Transcript and Presenter's Notes

Title: Backtracking Maximal Clique


1
Backtracking Maximal Clique
Backtrack_Clique(X, l) if (l 0) Cl
V else Cl Cl-1 n Axl-1 n Bxl-1 for each x
in Cl xl x Nl1 Axl n Nl if(Nl1 !
) Backtrack_Clique(X, l1) else print(x
0, , xl)
2
Maximal Clique Example
3
Generic Backtrack Search
  • backtrack(X, c, n)
  • compute candidates for level c
  • for each candidate x
  • if(x1, , xc-1, x) is acceptable // point 1
  • xc x
  • if(c lt n)
  • backtrack(X, c1, n) // point 2
  • else
  • process solution // point 3

4
4-Queens Search Tree
5
Backtrack Estimation
  • Backtrack_estimate(x1,,xc-1, c, n)
  • compute candidates for level c
  • for each candidate x
  • if(x1, , xc-1, x) is acceptable
  • record(x)
  • dc
  • estimatec scale dc
  • scale scale dc
  • xc random acceptable candidate
  • if(c lt n)
  • backtrack_estimate(x1,,xc, c1, n)
  • else
  • process solution
Write a Comment
User Comments (0)
About PowerShow.com