码迷,mamicode.com
首页 > 其他好文 > 详细

2.1.8

时间:2018-05-29 20:34:20      阅读:156      评论:0      收藏:0      [点我收藏+]

标签:value   one   running   time   array   run   question   random   The   

question:

Suppose that we use insertion sort on a randomly ordered array where elements hava only one of three values. Is the running time linear, quadratic or someting in between?

answer:

Quadratic //N^2

2.1.8

标签:value   one   running   time   array   run   question   random   The   

原文地址:https://www.cnblogs.com/w-j-c/p/9107418.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!