« TA OfficeSyllabus for all sect | Main | Homework Syllabus for all sect »
January 11, 2006
Project #Syllabus for all sect
[TSP with Branch and Bound Homepage] The homepage includes a description of the database, some documentation for the algorithm and a sample database. This is not an easy lab. The entire algorithm is covered in the documentation and in class. Its a tricky algorithm to understand but really isn't that hard to code up once you get your head around it. Start early and learn the algorithm before you start coding.
Posted by jones at January 11, 2006 12:54 PM
Comments
Forced Memory Deallocation
I was having some problems with memory de-allocation in C#. After I was done with the queue and deleted everything, all the memory just "hung around." I did some googling and the solution is the following two lines:
GC.Collect();
GC.WaitForPendingFinalizers();
The first line forces the garbage collection to finalize any objects that have left scope. The second line forces execution to block until all de-allocation threads have finished. So if you have memory that won't go away, try these two lines.
Posted by: Matt Doyle at April 2, 2005 06:36 PM
Post a comment
Thanks for signing in, . Now you can comment. (sign out)
(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)