Another algorithm might be very good for bigger arrays. You may create a 'wrapper' for The 2 algorithms which supports the type operation but decides which algorithm to implement according to the array size.This state of affairs happens in significant organizations with several products that these items associated to each other very intently. Share