I currently have an NSMutableArray which stores a collection of Video objects.
Each Video object has an ID and TITLE.
I also have another NSMutableArray of video objects generated from parsing an XML API call.
When the user hits a 'synchronize' button, I want the system to be able to figure out the minimum number of operations needed (delete & add videos) to bring both lists in sync.
What is the optimal way of doing this? Does Objective-C define any methods of doing this? If not, is there a special algorithm I can implement?
(Personally, I'd rather not loop through each and every item in both lists)