PLEASE NOTE: this server,, will be unavailable on Monday 5th December, from 1pm until 4pm.
Web-based programs, such as csmarks, cssubmit, and the help fora, will all be unavailable.
  It's UWAweek 49


This forum is provided to promote discussion amongst students enrolled in CITS3001 Algorithms, Agents and Artificial Intelligence.

Please consider offering answers and suggestions to help other students! And if you fix a problem by following a suggestion here, it would be great if other interested students could see a short "Great, fixed it!"  followup message.

How do I ask a good question?
Displaying selected article
Showing 1 of 175 articles.
Currently 7 other people reading this forum.

 UWA week 33 (2nd semester, week 4) ↓
SVG not supported

Login to reply
2:08am Thu 18th Aug, Luke G.

So I have a question I want cleared up about Lab 2. I am aware the format of the input is the number of cities followed by the respective x and y axis of each city but what I am struggling to understand is how I even am meant to access this data. My current method is public static int[] tspnn(double[][] table) by default and so the parameters don't really fit. Am I meant to make another method that creates the table and if so what do I call it. Should I call it main(String arg) or something. Also am I meant to return the city number with the shortest length, the shortest length itself or just the path I took in array form.

The University of Western Australia

Computer Science and Software Engineering

CRICOS Code: 00126G
Written by [email protected]
Powered by history
Feedback always welcome - it makes our software better!
Last modified  1:17AM Sep 14 2022
Privacy policy