Given a specific hardware constraint, how would you design an algorithm to minimize power consumption?