/
| 16 | |
| 17 | /*********************************************************/ |
| 18 | int get_next_index(int *B, int index, int N) |
| 19 | { int t; |
| 20 | |
| 21 | |
| 22 | t = index+1; |
| 23 | while ((t < N) && (B[t] == -1)) |
| 24 | t++; |
| 25 | if (t == N) |
| 26 | t--; |
| 27 | return t; |
| 28 | } |
| 29 | |
| 30 | /*********************************************************/ |
| 31 | int complete_seq(int *B, int Max, int N, int initial_direction) |