Time complexity of AC-3
n
CSP has n
2
directed
arcs
n
Each arc X
i
,X
j
has d
possible values.
For each value we
can reinsert the
neighboring arc
X
k
,X
i
at most d times because X
i
has d values
n
Checking an arc requires at most d
2
time
n
O(n
2
* d * d
2
) = O(n
2
d
3
)