Motivated by the quantum speedup for dynamic programming on the Boolean hypercube by Ambainis et al. (2019), we investigate which graphs admit a similar quantum advantage. In this paper, we examine a generalization of the Boolean hypercube graph, the n-dimensional lattice graph Q(D, n) with vertices in {0, 1, . . . , D} n . We study the complexity of the following problem: given a subgraph G of Q(D, n) via query access to the edges, determine whether there is a path from 0 n to D n . While the classical query complexity is Θ((D + 1) n ), we show a quantum algorithm with complexity O(T n D ), where T D < D + 1. The first few values of T D are T 1 ≈ 1.817, T 2 ≈ 2.660, T 3 ≈ 3.529, T 4 ≈ 4.421, T 5 ≈ 5.332 (the D = 1 case corresponds to the hypercube and replicates the result of Ambainis et al.).We then show an implementation of this algorithm with time complexity poly(n) log n T n D , and apply it to the Set Multicover problem. In this problem, m subsets of [n] are given, and the task is to find the smallest number of these subsets that cover each element of [n] at least D times. While the time complexity of the best known classical algorithm is O(m(D + 1) n ), the time complexity of our quantum algorithm is poly(m, n) log n T n D .1 f (n) = O(g(n)) if f (n) = O(log c (g(n))g(n)) for some constant c.