Changes between Initial Version and Version 1 of Ticket #1834, comment 5
- Timestamp:
- 04/23/12 16:55:35 (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #1834, comment 5
initial v1 1 This was based on the assumption that the permutation doesn't change when you're moving all but one city, however the length of the movement isn't important, rather if it's being placed at 0 or at the end. You probably have also noticed that the check for placing at the end was also wrong in that it compared against length - 1, when it's actually the length of the part left when removing the part between index1 and index2.1 This was based on the assumption that the permutation doesn't change when you're moving all but one city, however the length of the movement isn't important, rather if it's being moved from first to last or vice versa. You probably have also noticed that the check for placing at the end was also wrong in that it compared against length - 1, when it's actually the length of the part left when removing the part between index1 and index2.


