Original text: http://www.58maisui.com/2016/04/24/article-4/ In the preface, the classical algorithms are implemented through PHP, and the time consumption is calculated. You can compare the complexity of these algorithms through the time consumption. CODE $arr = ; for (…