Блог пользователя code60

Автор code60, 12 лет назад, По-английски

Consider the n rows and m columns as n+m nodes in a graph. The cell (i,j) with regular (non-magic column) means there is an edge connecting node i to node n+j. A magic column at cell (i,j) means the path goes through the i->(n+j) edge. Now the problem is to find the shortest path from node 1 to node n.

Полный текст и комментарии »

  • Проголосовать: нравится
  • -20
  • Проголосовать: не нравится

Автор code60, 12 лет назад, По-английски

Consider all possible subset of the k important squares. There are at most 2^k <= 2^7 = 128 possibilities.

Полный текст и комментарии »

  • Проголосовать: нравится
  • 0
  • Проголосовать: не нравится