Discussion Board
Go to the previous messageThere are no next messages
Current Forum: Homework 2 Forum
Date: Sat Sep 22 2001 3:28 pm
Author: Bortz, Andrew S. <abortz@andrew.cmu.edu>
Subject: Re: Number of Walls to be knocked down vs Number of Rooms

Actually, his algorithm would be 'correct', as in giving a correct maze, since it would only add walls to the getDestroyed list if they passes the Union-Find test. Obviously the algorithm would waste time after adding n-1 walls to the getDestroyed list, because for each remaining wall, Union Find would return that the two connected rooms are in the same equivalence class and the algorithm would simply delete them from wallList and continue until all the walls in wallList are gone. Not a fast algorithm, but still correct.
Post response

Go to the previous messageThere are no next messages
Current Thread Detail:
Number of Walls to be knocked down vs ...      Chow, Jicai Jonathan      Thu Sep 13 2001 11:37 pm       
Re: Number of Walls to be knocked d...      Douglas, Keith      Fri Sep 14 2001 12:25 pm       
Re: Number of Walls to be knocked d...      Agarwal, Aditya      Fri Sep 14 2001 12:43 pm       
Re: Number of Walls to be knocke...      Han, Shanshan      Sat Sep 15 2001 10:01 am       
Re: Number of Walls to be kno...      Shi, Ying      Sat Sep 15 2001 12:09 pm       
Re: Number of Walls to be ...      Agarwal, Aditya      Sat Sep 15 2001 5:28 pm       
Re: Number of Walls to be kno...      Agarwal, Aditya      Sat Sep 15 2001 5:26 pm       
Re: Number of Walls to be ...      Cipriani, Jason A.      Sat Sep 22 2001 2:05 pm       
Re: Number of Walls to ...      Agarwal, Aditya      Sat Sep 22 2001 3:20 pm       
Re: Number of Walls ...      Bortz, Andrew S.      Sat Sep 22 2001 3:28 pm       

Back to previous screen