cosh9041 / Sheahan_CSCI2270_FinalProject

0 stars 2 forks source link

Print Function after two or more deletes #3

Open jacbart opened 9 years ago

jacbart commented 9 years ago

After deleting 2 or sometimes 3 cities from the original city list, and then printing the cities the program will spit out random gibberish.

585gabe commented 9 years ago

Example cases: delete Atlanta then Seattle, or just trying to delete Seattle at the begining.

jacbart commented 9 years ago

I did a couple to be sure but one example was deleting the first three then printing and another was Portland, Seattle and then print and it broke.

585gabe commented 9 years ago

The problem is in one of three different functions. We appreciate the input into the cases that cause the program to freak out, thanks!

jacbart commented 9 years ago

No Problem

585gabe commented 9 years ago

Well, the good news is that deletting Seattle is no longer a problem. The bad news, is that the fix involved not making a call to the rbDeleteFixup function. Therefore we will probably not worry about making it a red-black tree if the correct solution can't be found.

585gabe commented 9 years ago

Deleting the first three cities still causes a problem however . . .