2024-12-07 19:23:45 +01:00
|
|
|
package solver
|
|
|
|
|
2025-01-25 19:45:31 +01:00
|
|
|
import (
|
|
|
|
"sync/atomic"
|
|
|
|
)
|
2025-01-25 19:08:31 +01:00
|
|
|
|
2025-01-27 18:41:15 +01:00
|
|
|
// Struct/Interface containing all the important variabes it functions need access to.
|
2024-12-07 19:23:45 +01:00
|
|
|
type Solver struct {
|
|
|
|
blocks []int
|
|
|
|
row1 string
|
|
|
|
row2 string
|
|
|
|
row3 string
|
|
|
|
row4 string
|
|
|
|
row5 string
|
|
|
|
row6 string
|
|
|
|
row7 string
|
|
|
|
row8 string
|
|
|
|
row9 string
|
|
|
|
row1s []int
|
|
|
|
row2s []int
|
|
|
|
row3s []int
|
|
|
|
row4s []int
|
|
|
|
row5s []int
|
|
|
|
row6s []int
|
|
|
|
row7s []int
|
|
|
|
row8s []int
|
|
|
|
row9s []int
|
2024-12-08 14:19:55 +01:00
|
|
|
iter int64
|
2025-01-25 19:08:31 +01:00
|
|
|
counter atomic.Int64
|
2024-12-07 19:23:45 +01:00
|
|
|
solutions []string
|
2025-01-25 14:34:51 +01:00
|
|
|
rates []int64
|
2025-01-27 19:40:24 +01:00
|
|
|
numCPUs int
|
2025-01-27 00:13:00 +01:00
|
|
|
split int
|
|
|
|
part int
|
2024-12-07 19:23:45 +01:00
|
|
|
}
|