Help: How to solve UVA 861 Little Bishops

Правка en6, от abhatter, 2020-12-31 00:19:53

Hello,

I am learning to apply memoization technique but not able to figure it out. My brute force recursive back tracking solution gives correct answer but then times out quickly. I tried to search answer to this question but then I am not able to understand anything. could you please help me in this regards? I have attached my solution

Problem link below...

Thanks in advance

Теги #memoization, #backtracking, #recursion

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en7 Английский abhatter 2020-12-31 00:20:18 29 Tiny change: 'regards?\nI have attached my solution\n\n\n[Pro' -> 'regards?\n\n\n[Pro'
en6 Английский abhatter 2020-12-31 00:19:53 1585
en5 Английский abhatter 2020-12-05 07:30:45 2 Tiny change: 'as below\n~~~~~\n#' -> 'as below\n\n~~~~~\n#'
en4 Английский abhatter 2020-12-05 07:30:11 20 Tiny change: 'dvance\n\n\n~~~~~\n#' -> 'dvance\n\nMy solution as below\n~~~~~\n#'
en3 Английский abhatter 2020-12-05 07:29:46 29
en2 Английский abhatter 2020-12-05 07:27:22 1537
en1 Английский abhatter 2020-12-05 07:26:14 535 Initial revision (published)