SlideShare une entreprise Scribd logo
1  sur  23
Télécharger pour lire hors ligne
OUTLINE   LOCAL SEARCH FOR SOLVING CSP     A FRAMEWORK FOR LS   THE SUDOKU RESULTS   CONCLUSION




             A Generic Framework for Local Search :
               Application to the Sudoku Problem
                                 ICCS 2006, Reading, UK


                                         Tony LAMBERT

                               LINA, Université de Nantes, France

                               LERIA,Université d’Angers, France

                          Universidad Santa María, Valparaíso, Chile

                           joint work with E. Monfroy and F. Saubion


                                    Wed, 31 May, 2006


                                                                                           1 / 41
OUTLINE   LOCAL SEARCH FOR SOLVING CSP   A FRAMEWORK FOR LS   THE SUDOKU RESULTS       CONCLUSION



                                         Outline


                                                               6   9           2           1   4

                                                               3           6       9           8

                                                                       8               2
   • Local search for solving CSP                                  1       9       7       2

   • A framework for local search techniques                   9                               5

                                                                   8       4       6       7
   • Generic Iteration Algorithm with reduction
                                                                       9               5
      functions                                                2           3       5           1

   • Some results for the sudoku problem                       1   5           6           3   7


   • Conclusion                                                1   2   3   4   5   6   7   8   9




                                                                                               2 / 41
OUTLINE   LOCAL SEARCH FOR SOLVING CSP    A FRAMEWORK FOR LS   THE SUDOKU RESULTS   CONCLUSION



                Constraint satisfaction Problem (CSP)



                                 C2
                        Y
                 C1                   U
                                                                 Variables
            X
                        C4                 C5
                                                                  Constraints
                    Z                 T
                            C3




                                                                                          3 / 41
OUTLINE     LOCAL SEARCH FOR SOLVING CSP   A FRAMEWORK FOR LS   THE SUDOKU RESULTS   CONCLUSION



                                      Local search (1)

     Definition :
          • Explore a D1 × D2 × · · · × Dn search space
          • Move from neighbor to neighbor thanks to an evaluation
            function
               • Intensification
               • Diversification

     Properties :
          • focus on some “promising” parts of the search space
          • does not answer to unsat. problems
          • no guaranteed
          • “fast” to find a “good” solution



                                                                                           4 / 41
OUTLINE       LOCAL SEARCH FOR SOLVING CSP   A FRAMEWORK FOR LS   THE SUDOKU RESULTS   CONCLUSION



                                        Local search (2)
           • Search space : set of possible configurations
           • Tools : neighborhood and evaluation function




          Neighborhood
                                                                     Set of
          of s
                                                                     possible
                                                                     configurations




                                                                                             5 / 41
OUTLINE       LOCAL SEARCH FOR SOLVING CSP   A FRAMEWORK FOR LS   THE SUDOKU RESULTS   CONCLUSION



                                        Local search (3)
           • Search space : set of possible configurations
           • Tools : neighborhood and evaluation function




          Neighborhood
                                                                     Set of
          of s
                                                                     possible
                                                                     configurations




                                                                                             6 / 41
OUTLINE       LOCAL SEARCH FOR SOLVING CSP         A FRAMEWORK FOR LS   THE SUDOKU RESULTS                   CONCLUSION



                                          Local search (4)
           • Search space : set of possible configurations
           • Tools : neighborhood and evaluation function




          Neighborhood
                                                                           Set of
          of s
                                                                           possible
                                                                           configurations
                                                                         LS(p) = p’
                                                                         p=(      s 1 , s 2 , ...,   sn)
                                     s3                                  p’ = ( s 1 , s 2 , ...,     s n , s n+1 )
                                             s4
                                                     s6
                              s1   s2
                                              s5




                                                                                                                     7 / 41
OUTLINE     LOCAL SEARCH FOR SOLVING CSP   A FRAMEWORK FOR LS   THE SUDOKU RESULTS   CONCLUSION



                A framework for local search techniques




          • Idea :
              • Fine grain control
              • More strategies
          • Technique :
              • Decomposing local search resolution into basic functions
              • Adapting chaotic iterations




                                                                                           8 / 41
OUTLINE     LOCAL SEARCH FOR SOLVING CSP   A FRAMEWORK FOR LS   THE SUDOKU RESULTS   CONCLUSION



                                       Our Purpose :




          • Use of an existing theoretical model for CSP solving
          • Definition of the solving process




                                                                                           9 / 41
OUTLINE   LOCAL SEARCH FOR SOLVING CSP   A FRAMEWORK FOR LS     THE SUDOKU RESULTS      CONCLUSION



                     Abstract Model K.R. Apt [CP99]

                                         Abstraction
                                                              Reduction functions
                          Constraint




                                                                                     Application
                                                                                     of functions
                                                                  CSP
                          Fixed point
                                          Partial Ordering




                                                                                                10 / 41
OUTLINE      LOCAL SEARCH FOR SOLVING CSP   A FRAMEWORK FOR LS   THE SUDOKU RESULTS   CONCLUSION



                                  A Generic Algorithm



     F = { set reduction functions}

          X = initial CSP
          G=F                                                     X=
          While G = ∅
                       choose g ∈ G
                       G = G − {g}
                       G = G ∪ update(G, g, X )
                       X = g(X )
          EndWhile




                                                                                           11 / 41
OUTLINE   LOCAL SEARCH FOR SOLVING CSP            A FRAMEWORK FOR LS     THE SUDOKU RESULTS        CONCLUSION



                The theoretical model for CSP solving

     Partial ordering :
                                                                p
                                                                    1
          Function to pass from one LS
          state to another
                                                      p
                                                          2

                 State of LS
                                          p
                                              3


                                                     p
                                                          4


                                                               p
                                                                    5


                                 Terminates with a fixed point : local minimum, maximum number of iteration




                                                                                                          12 / 41
OUTLINE     LOCAL SEARCH FOR SOLVING CSP     A FRAMEWORK FOR LS   THE SUDOKU RESULTS   CONCLUSION



                                           Ls Ordering



     Characteristics of a LS path
          • notion of solution
          • maximum length

     Operational (computational) point of view : path = samples
     A sample :
          • Depends on a CSP
          • Corresponds to a local search state




                                                                                            13 / 41
OUTLINE     LOCAL SEARCH FOR SOLVING CSP   A FRAMEWORK FOR LS   THE SUDOKU RESULTS       CONCLUSION



                    Neighborhood and Move functions

     Neighborhood :
          • FullNeighbor : V = {s ∈ D|s ∈ V }
          • TabuNeighbor : V = {s ∈ D| ∃k , n − l ≤ k ≤ n, sk = s}
          • DescentNeighbor : p = (s1 , . . . , sn ) and V = s ⊂ D s.t.
            ∃s ∈ V s.t eval(s ) < eval(sn )
     Move :
          • BestMove : p = p ⊕ s and eval(s ) = mins                  ∈V eval(s      )
          • ImproveMove : p = p ⊕ sn and p = p ⊕ s s.t.
            eval(s ) < eval(sn )
          • RandomMove : p = p ⊕ s and s ∈ V



                                                                                              14 / 41
OUTLINE     LOCAL SEARCH FOR SOLVING CSP   A FRAMEWORK FOR LS   THE SUDOKU RESULTS   CONCLUSION



                           Instantiate the GI algorithm

     We can precise here the input set of function F .
                                                     Random walk :
     Tabu search :
                                                        • FullNeighbor
          • TabuNeighbor
                                                        • BestNeighBor
          • BestNeighBor
                                                        • RandomNeighbor
     Random walk + Descent :
                                                     TabuSearch + Descent :
          • FullNeighbor
                                                        • TabuNeighbor
          • BestNeighBor
                                                        • DescentNeighbor
          • RandomNeighbor
                                                        • ImproveNeighBor
          • DescentNeighbor
                                                        • BestNeighBor
          • ImproveNeighBor


                                                                                          15 / 41
OUTLINE      LOCAL SEARCH FOR SOLVING CSP   A FRAMEWORK FOR LS   THE SUDOKU RESULTS           CONCLUSION



                                       Sudoku problem



                                                                  6   9           2           1   4

                                                                  3           6       9           8

                                                                          8               2

                                                                      1       9       7       2

   • n2 × n2 problem                                              9                               5


       n4
                                                                      8       4       6       7
   •        variables                                                     9               5

   • AllDiff constraints                                          2           3       5           1

                                                                  1   5           6           3   7




                                                                                                      16 / 41
OUTLINE   LOCAL SEARCH FOR SOLVING CSP       A FRAMEWORK FOR LS       THE SUDOKU RESULTS   CONCLUSION



                                    Sudoku problem


                              6    9              2               1   4

                              3    2     1    6        9              8

                                         8                  2         1

                                   1          9        7          2   3

                              9                                       5

                                   8          4        6          7   9

                              8    3     9                  5     6   2

                              2               3        5              1

                              1    5              6               3   7




                                                                                                17 / 41
OUTLINE   LOCAL SEARCH FOR SOLVING CSP       A FRAMEWORK FOR LS       THE SUDOKU RESULTS   CONCLUSION



                                    Sudoku problem


                              6    9     5    7   2    8    3     1   4

                              3    2     1    6   4    9    7     5   8

                              7    4     8                  2     9   1

                              4    1          9   5    7          2   3

                              9                                       5

                              5    8          4        6          7   9

                              8    3     9                  5     6   2

                              2               3   9    5              1

                              1    5     4        6         9     3   7




                                                                                                18 / 41
OUTLINE   LOCAL SEARCH FOR SOLVING CSP       A FRAMEWORK FOR LS       THE SUDOKU RESULTS   CONCLUSION



                                    Sudoku problem


                              6    9     5    7   2    8    3     1   4

                              3    2     1    6   4    9    7     5   8

                              7    4     8    5             2     9   1

                              4    1     6    9   5    7    8     2   3

                              9                             6     4   5

                              5    8          4        6          7   9

                              8    3     9                  5     6   2

                              2    6     7    3   9    5    4     8   1

                              1    5     4        6         9     3   7




                                                                                                19 / 41
OUTLINE   LOCAL SEARCH FOR SOLVING CSP       A FRAMEWORK FOR LS       THE SUDOKU RESULTS   CONCLUSION



                                    Sudoku problem


                              6    9     5    7   2    8    3     1   4

                              3    2     1    6   4    9    7     5   8

                              7    4     8    5   1    3    2     9   1

                              4    1     6    9   5    7    8     2   3

                              9    7     3    2   8    1    6     4   5

                              5    8     2    4   3    6    1     7   9

                              8    3     9    1   7   4     5     6   2

                              2    6     7    3   9    5    4     8   1

                              1    5     4    8   6    2    9     3   7




                                                                                                20 / 41
OUTLINE      LOCAL SEARCH FOR SOLVING CSP   A FRAMEWORK FOR LS     THE SUDOKU RESULTS   CONCLUSION




                                TabuSearch                             RandomWalk
            n2 x n2       16x16 25x25 36x36                      16x16 25x25 36x36
           cpu time        3,14 115,08 3289,8                     3,92 105,22 2495
          deviations       1,28    52,3   1347,4                  1,47    49,3   1099
             mvts          405     3240   22333                   443     2318  13975
                           Descent + TabuSearch                  Descent +RandomWalk
            n2 x n2       16x16 25x25 36x36                      16x16 25x25 36x36
           cpu time        2,34 111,81     2948                   2,41    82,94  2455
          deviations       1,42   55,04    1476                   1,11    36,99  1092
          mvts Avg         534     3666   20878                   544     2581  14908




                                                                                             21 / 41
OUTLINE     LOCAL SEARCH FOR SOLVING CSP   A FRAMEWORK FOR LS   THE SUDOKU RESULTS   CONCLUSION



                         Conclusion and Future works



          • A generic model local search methods
          • Design of strategies

          • Dynamic strategies learning
          • Providing more tools in a generic environment
          • A generic implementation




                                                                                          22 / 41
OUTLINE   LOCAL SEARCH FOR SOLVING CSP     A FRAMEWORK FOR LS   THE SUDOKU RESULTS   CONCLUSION




             A Generic Framework for Local Search :
               Application to the Sudoku Problem
                                 ICCS 2006, Reading, UK


                                         Tony LAMBERT

                               LINA, Université de Nantes, France

                               LERIA,Université d’Angers, France

                          Universidad Santa María, Valparaíso, Chile

                           joint work with E. Monfroy and F. Saubion


                                    Wed, 31 May, 2006


                                                                                          23 / 41

Contenu connexe

Similaire à Lambert Iccs2006 Slides

Point Cloud Processing: Estimating Normal Vectors and Curvature Indicators us...
Point Cloud Processing: Estimating Normal Vectors and Curvature Indicators us...Point Cloud Processing: Estimating Normal Vectors and Curvature Indicators us...
Point Cloud Processing: Estimating Normal Vectors and Curvature Indicators us...Pirouz Nourian
 
Elementary Landscape Decomposition of Combinatorial Optimization Problems
Elementary Landscape Decomposition of Combinatorial Optimization ProblemsElementary Landscape Decomposition of Combinatorial Optimization Problems
Elementary Landscape Decomposition of Combinatorial Optimization Problemsjfrchicanog
 
Optical modeling and design of freeform surfaces using anisotropic Radial Bas...
Optical modeling and design of freeform surfaces using anisotropic Radial Bas...Optical modeling and design of freeform surfaces using anisotropic Radial Bas...
Optical modeling and design of freeform surfaces using anisotropic Radial Bas...Milan Maksimovic
 
Caustic Object Construction Based on Multiple Caustic Patterns
Caustic Object Construction Based on Multiple Caustic PatternsCaustic Object Construction Based on Multiple Caustic Patterns
Caustic Object Construction Based on Multiple Caustic PatternsBudianto Tandianus
 
Neighborhood Component Analysis 20071108
Neighborhood Component Analysis 20071108Neighborhood Component Analysis 20071108
Neighborhood Component Analysis 20071108Ting-Shuo Yo
 
Parallel Distributed Image Stacking and Mosaicing with Hadoop__HadoopSummit2010
Parallel Distributed Image Stacking and Mosaicing with Hadoop__HadoopSummit2010Parallel Distributed Image Stacking and Mosaicing with Hadoop__HadoopSummit2010
Parallel Distributed Image Stacking and Mosaicing with Hadoop__HadoopSummit2010Yahoo Developer Network
 
CSBP: A Fast Circuit Similarity-Based Placement for FPGA Incremental Design a...
CSBP: A Fast Circuit Similarity-Based Placement for FPGA Incremental Design a...CSBP: A Fast Circuit Similarity-Based Placement for FPGA Incremental Design a...
CSBP: A Fast Circuit Similarity-Based Placement for FPGA Incremental Design a...Xiaoyu Shi
 
Lambert Roadef 2008
Lambert Roadef 2008Lambert Roadef 2008
Lambert Roadef 2008lamberttony
 
Spatially resolved pair correlation functions for point cloud data
Spatially resolved pair correlation functions for point cloud dataSpatially resolved pair correlation functions for point cloud data
Spatially resolved pair correlation functions for point cloud dataTony Fast
 
GECCO 2009 BBOB Workshop
GECCO 2009 BBOB WorkshopGECCO 2009 BBOB Workshop
GECCO 2009 BBOB WorkshopPetr Pošík
 

Similaire à Lambert Iccs2006 Slides (13)

Point Cloud Processing: Estimating Normal Vectors and Curvature Indicators us...
Point Cloud Processing: Estimating Normal Vectors and Curvature Indicators us...Point Cloud Processing: Estimating Normal Vectors and Curvature Indicators us...
Point Cloud Processing: Estimating Normal Vectors and Curvature Indicators us...
 
Elementary Landscape Decomposition of Combinatorial Optimization Problems
Elementary Landscape Decomposition of Combinatorial Optimization ProblemsElementary Landscape Decomposition of Combinatorial Optimization Problems
Elementary Landscape Decomposition of Combinatorial Optimization Problems
 
Optical modeling and design of freeform surfaces using anisotropic Radial Bas...
Optical modeling and design of freeform surfaces using anisotropic Radial Bas...Optical modeling and design of freeform surfaces using anisotropic Radial Bas...
Optical modeling and design of freeform surfaces using anisotropic Radial Bas...
 
Caustic Object Construction Based on Multiple Caustic Patterns
Caustic Object Construction Based on Multiple Caustic PatternsCaustic Object Construction Based on Multiple Caustic Patterns
Caustic Object Construction Based on Multiple Caustic Patterns
 
Neighborhood Component Analysis 20071108
Neighborhood Component Analysis 20071108Neighborhood Component Analysis 20071108
Neighborhood Component Analysis 20071108
 
Parallel Distributed Image Stacking and Mosaicing with Hadoop__HadoopSummit2010
Parallel Distributed Image Stacking and Mosaicing with Hadoop__HadoopSummit2010Parallel Distributed Image Stacking and Mosaicing with Hadoop__HadoopSummit2010
Parallel Distributed Image Stacking and Mosaicing with Hadoop__HadoopSummit2010
 
Shuronr
ShuronrShuronr
Shuronr
 
CSBP: A Fast Circuit Similarity-Based Placement for FPGA Incremental Design a...
CSBP: A Fast Circuit Similarity-Based Placement for FPGA Incremental Design a...CSBP: A Fast Circuit Similarity-Based Placement for FPGA Incremental Design a...
CSBP: A Fast Circuit Similarity-Based Placement for FPGA Incremental Design a...
 
Lambert Roadef 2008
Lambert Roadef 2008Lambert Roadef 2008
Lambert Roadef 2008
 
Fa18_P2.pptx
Fa18_P2.pptxFa18_P2.pptx
Fa18_P2.pptx
 
Surveys
SurveysSurveys
Surveys
 
Spatially resolved pair correlation functions for point cloud data
Spatially resolved pair correlation functions for point cloud dataSpatially resolved pair correlation functions for point cloud data
Spatially resolved pair correlation functions for point cloud data
 
GECCO 2009 BBOB Workshop
GECCO 2009 BBOB WorkshopGECCO 2009 BBOB Workshop
GECCO 2009 BBOB Workshop
 

Lambert Iccs2006 Slides

  • 1. OUTLINE LOCAL SEARCH FOR SOLVING CSP A FRAMEWORK FOR LS THE SUDOKU RESULTS CONCLUSION A Generic Framework for Local Search : Application to the Sudoku Problem ICCS 2006, Reading, UK Tony LAMBERT LINA, Université de Nantes, France LERIA,Université d’Angers, France Universidad Santa María, Valparaíso, Chile joint work with E. Monfroy and F. Saubion Wed, 31 May, 2006 1 / 41
  • 2. OUTLINE LOCAL SEARCH FOR SOLVING CSP A FRAMEWORK FOR LS THE SUDOKU RESULTS CONCLUSION Outline 6 9 2 1 4 3 6 9 8 8 2 • Local search for solving CSP 1 9 7 2 • A framework for local search techniques 9 5 8 4 6 7 • Generic Iteration Algorithm with reduction 9 5 functions 2 3 5 1 • Some results for the sudoku problem 1 5 6 3 7 • Conclusion 1 2 3 4 5 6 7 8 9 2 / 41
  • 3. OUTLINE LOCAL SEARCH FOR SOLVING CSP A FRAMEWORK FOR LS THE SUDOKU RESULTS CONCLUSION Constraint satisfaction Problem (CSP) C2 Y C1 U Variables X C4 C5 Constraints Z T C3 3 / 41
  • 4. OUTLINE LOCAL SEARCH FOR SOLVING CSP A FRAMEWORK FOR LS THE SUDOKU RESULTS CONCLUSION Local search (1) Definition : • Explore a D1 × D2 × · · · × Dn search space • Move from neighbor to neighbor thanks to an evaluation function • Intensification • Diversification Properties : • focus on some “promising” parts of the search space • does not answer to unsat. problems • no guaranteed • “fast” to find a “good” solution 4 / 41
  • 5. OUTLINE LOCAL SEARCH FOR SOLVING CSP A FRAMEWORK FOR LS THE SUDOKU RESULTS CONCLUSION Local search (2) • Search space : set of possible configurations • Tools : neighborhood and evaluation function Neighborhood Set of of s possible configurations 5 / 41
  • 6. OUTLINE LOCAL SEARCH FOR SOLVING CSP A FRAMEWORK FOR LS THE SUDOKU RESULTS CONCLUSION Local search (3) • Search space : set of possible configurations • Tools : neighborhood and evaluation function Neighborhood Set of of s possible configurations 6 / 41
  • 7. OUTLINE LOCAL SEARCH FOR SOLVING CSP A FRAMEWORK FOR LS THE SUDOKU RESULTS CONCLUSION Local search (4) • Search space : set of possible configurations • Tools : neighborhood and evaluation function Neighborhood Set of of s possible configurations LS(p) = p’ p=( s 1 , s 2 , ..., sn) s3 p’ = ( s 1 , s 2 , ..., s n , s n+1 ) s4 s6 s1 s2 s5 7 / 41
  • 8. OUTLINE LOCAL SEARCH FOR SOLVING CSP A FRAMEWORK FOR LS THE SUDOKU RESULTS CONCLUSION A framework for local search techniques • Idea : • Fine grain control • More strategies • Technique : • Decomposing local search resolution into basic functions • Adapting chaotic iterations 8 / 41
  • 9. OUTLINE LOCAL SEARCH FOR SOLVING CSP A FRAMEWORK FOR LS THE SUDOKU RESULTS CONCLUSION Our Purpose : • Use of an existing theoretical model for CSP solving • Definition of the solving process 9 / 41
  • 10. OUTLINE LOCAL SEARCH FOR SOLVING CSP A FRAMEWORK FOR LS THE SUDOKU RESULTS CONCLUSION Abstract Model K.R. Apt [CP99] Abstraction Reduction functions Constraint Application of functions CSP Fixed point Partial Ordering 10 / 41
  • 11. OUTLINE LOCAL SEARCH FOR SOLVING CSP A FRAMEWORK FOR LS THE SUDOKU RESULTS CONCLUSION A Generic Algorithm F = { set reduction functions} X = initial CSP G=F X= While G = ∅ choose g ∈ G G = G − {g} G = G ∪ update(G, g, X ) X = g(X ) EndWhile 11 / 41
  • 12. OUTLINE LOCAL SEARCH FOR SOLVING CSP A FRAMEWORK FOR LS THE SUDOKU RESULTS CONCLUSION The theoretical model for CSP solving Partial ordering : p 1 Function to pass from one LS state to another p 2 State of LS p 3 p 4 p 5 Terminates with a fixed point : local minimum, maximum number of iteration 12 / 41
  • 13. OUTLINE LOCAL SEARCH FOR SOLVING CSP A FRAMEWORK FOR LS THE SUDOKU RESULTS CONCLUSION Ls Ordering Characteristics of a LS path • notion of solution • maximum length Operational (computational) point of view : path = samples A sample : • Depends on a CSP • Corresponds to a local search state 13 / 41
  • 14. OUTLINE LOCAL SEARCH FOR SOLVING CSP A FRAMEWORK FOR LS THE SUDOKU RESULTS CONCLUSION Neighborhood and Move functions Neighborhood : • FullNeighbor : V = {s ∈ D|s ∈ V } • TabuNeighbor : V = {s ∈ D| ∃k , n − l ≤ k ≤ n, sk = s} • DescentNeighbor : p = (s1 , . . . , sn ) and V = s ⊂ D s.t. ∃s ∈ V s.t eval(s ) < eval(sn ) Move : • BestMove : p = p ⊕ s and eval(s ) = mins ∈V eval(s ) • ImproveMove : p = p ⊕ sn and p = p ⊕ s s.t. eval(s ) < eval(sn ) • RandomMove : p = p ⊕ s and s ∈ V 14 / 41
  • 15. OUTLINE LOCAL SEARCH FOR SOLVING CSP A FRAMEWORK FOR LS THE SUDOKU RESULTS CONCLUSION Instantiate the GI algorithm We can precise here the input set of function F . Random walk : Tabu search : • FullNeighbor • TabuNeighbor • BestNeighBor • BestNeighBor • RandomNeighbor Random walk + Descent : TabuSearch + Descent : • FullNeighbor • TabuNeighbor • BestNeighBor • DescentNeighbor • RandomNeighbor • ImproveNeighBor • DescentNeighbor • BestNeighBor • ImproveNeighBor 15 / 41
  • 16. OUTLINE LOCAL SEARCH FOR SOLVING CSP A FRAMEWORK FOR LS THE SUDOKU RESULTS CONCLUSION Sudoku problem 6 9 2 1 4 3 6 9 8 8 2 1 9 7 2 • n2 × n2 problem 9 5 n4 8 4 6 7 • variables 9 5 • AllDiff constraints 2 3 5 1 1 5 6 3 7 16 / 41
  • 17. OUTLINE LOCAL SEARCH FOR SOLVING CSP A FRAMEWORK FOR LS THE SUDOKU RESULTS CONCLUSION Sudoku problem 6 9 2 1 4 3 2 1 6 9 8 8 2 1 1 9 7 2 3 9 5 8 4 6 7 9 8 3 9 5 6 2 2 3 5 1 1 5 6 3 7 17 / 41
  • 18. OUTLINE LOCAL SEARCH FOR SOLVING CSP A FRAMEWORK FOR LS THE SUDOKU RESULTS CONCLUSION Sudoku problem 6 9 5 7 2 8 3 1 4 3 2 1 6 4 9 7 5 8 7 4 8 2 9 1 4 1 9 5 7 2 3 9 5 5 8 4 6 7 9 8 3 9 5 6 2 2 3 9 5 1 1 5 4 6 9 3 7 18 / 41
  • 19. OUTLINE LOCAL SEARCH FOR SOLVING CSP A FRAMEWORK FOR LS THE SUDOKU RESULTS CONCLUSION Sudoku problem 6 9 5 7 2 8 3 1 4 3 2 1 6 4 9 7 5 8 7 4 8 5 2 9 1 4 1 6 9 5 7 8 2 3 9 6 4 5 5 8 4 6 7 9 8 3 9 5 6 2 2 6 7 3 9 5 4 8 1 1 5 4 6 9 3 7 19 / 41
  • 20. OUTLINE LOCAL SEARCH FOR SOLVING CSP A FRAMEWORK FOR LS THE SUDOKU RESULTS CONCLUSION Sudoku problem 6 9 5 7 2 8 3 1 4 3 2 1 6 4 9 7 5 8 7 4 8 5 1 3 2 9 1 4 1 6 9 5 7 8 2 3 9 7 3 2 8 1 6 4 5 5 8 2 4 3 6 1 7 9 8 3 9 1 7 4 5 6 2 2 6 7 3 9 5 4 8 1 1 5 4 8 6 2 9 3 7 20 / 41
  • 21. OUTLINE LOCAL SEARCH FOR SOLVING CSP A FRAMEWORK FOR LS THE SUDOKU RESULTS CONCLUSION TabuSearch RandomWalk n2 x n2 16x16 25x25 36x36 16x16 25x25 36x36 cpu time 3,14 115,08 3289,8 3,92 105,22 2495 deviations 1,28 52,3 1347,4 1,47 49,3 1099 mvts 405 3240 22333 443 2318 13975 Descent + TabuSearch Descent +RandomWalk n2 x n2 16x16 25x25 36x36 16x16 25x25 36x36 cpu time 2,34 111,81 2948 2,41 82,94 2455 deviations 1,42 55,04 1476 1,11 36,99 1092 mvts Avg 534 3666 20878 544 2581 14908 21 / 41
  • 22. OUTLINE LOCAL SEARCH FOR SOLVING CSP A FRAMEWORK FOR LS THE SUDOKU RESULTS CONCLUSION Conclusion and Future works • A generic model local search methods • Design of strategies • Dynamic strategies learning • Providing more tools in a generic environment • A generic implementation 22 / 41
  • 23. OUTLINE LOCAL SEARCH FOR SOLVING CSP A FRAMEWORK FOR LS THE SUDOKU RESULTS CONCLUSION A Generic Framework for Local Search : Application to the Sudoku Problem ICCS 2006, Reading, UK Tony LAMBERT LINA, Université de Nantes, France LERIA,Université d’Angers, France Universidad Santa María, Valparaíso, Chile joint work with E. Monfroy and F. Saubion Wed, 31 May, 2006 23 / 41