Divide and Conquer algorithm paradigm - Imperial coursework