Pascal classic algorithm explanation - Knight travel problem

From , 5 Years ago, written in Delphi (Object Pascal), viewed 106 times.
URL https://pastebin.vip/view/a7b23e6e
  1. fillchar(map,sizeof(map),0);
  2. map[x1,y1]1
  3. for i←x1+1 to x2 do
  4.   for j←1 to m do
  5.      map[i,j]←map[i-1,j-2]+map[i-1,j+2]+map[i-2,j-1]+map[i-2,j+1];
  6. writeln(map[x2,y2]);
  7.  
  8.  

Reply to "Pascal classic algorithm explanation - Knight travel problem"

Here you can reply to the paste above

captcha

https://burned.cc - Burn After Reading Website