From fd8365e07cfdd340c7790fd9d4df95ca1b36f825 Mon Sep 17 00:00:00 2001 From: Leon Xu <6479451-leonxu260@users.noreply.gitlab.com> Date: Mon, 12 Jul 2021 17:49:15 -0700 Subject: [PATCH] doc: update contents on BigO --- source/_posts/BigO.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/_posts/BigO.md b/source/_posts/BigO.md index 4804ec1..f8af351 100644 --- a/source/_posts/BigO.md +++ b/source/_posts/BigO.md @@ -13,7 +13,7 @@ tags: - O(log n) - 对数时间,这样的算法包括二分查找。 - O(n) - 线性时间,这样的算法包括简单查找。 - O(n * log n) - 这样的算法包括快速排序——一种数独较快的排序算法。 -- O (n^2) - 这样的算法包括选择排序——一种速度较慢的排序算法。 +- O (n2) - 这样的算法包括选择排序——一种速度较慢的排序算法。 - O (n!) - 这种算法包括一些旅行商问题的解决方案——一种非常慢的算法。 -还有很多的一些大O的运行时间 \ No newline at end of file +还有很多的一些大O的运行时间,如果大家知道的话,可以写在评论区那里。 \ No newline at end of file