posted 16 years ago
Hi Tony,
Ultimatly the algorithm i have to use to search the array is the traveling salesman algorithim, As far as i know sorting the array is not an option and is not allowed to be used in the solution. When searching the array, and processing an object on the array, there is a flag variable that is set, depeding on the flag variable certain objects will take longer or shorter to process hence the time constrant but for the current excercies this is not really important i was just setting the scene as to why im learning 2d array searches
Im just starting off gettting to grips with the problem, so im looking to learn how to work with 2d arrays and multiple ways of searching them with basic searchs first, seacrhing by columns, rows, multiple columns at once etc to begin the learning process.
There is many other constraints etc involed with the problem, but as i said my only goal now is to work with basic 2darrays and multiple ways of searching / iterating through them. Any examples or web pages discussing 2d array searches would be great, as most things ive come accross so far have been just the type writer type search.
Best
Mark