What's the difference between an Algorithm and a Design Pattern
问题 I was searching for "Undo/Redo algorithms" and found something marked as a duplicate, but the duplicate was a request for a "Undo Design Pattern". I'd really like an algorithm for this. I don't think I necessarily need a design pattern. Is there a fundamental difference between "Design Pattern" and "Algorithm" or is it OK that someone uses the two interchangeably? I'll hang up and take my answer off the air. Ok, forgive me for thinking design patterns were just abstractions of algorithms.