计算机算法导论_第2章.pptVIP

  • 3
  • 0
  • 约3.9千字
  • 约 66页
  • 2020-07-23 发布于浙江
  • 举报
Introduction to Algorithms 计算机算法导论 2007~2008年第一学期 Quiz(10 minutes) Question Suppose we are comparing implementations of insertion sort and merge sort on the same machine. For inputs of size n, insertion sort runs in 8n2 steps, while merge sort runs in 64nlgn steps. For which values of n does insertion sort beat merge sort? What is the smallest value of n such that an algorithm whose running time is 100n2 runs faster than an algorithm whose running time is 2n on the same machine? 2、Getting Started Question Introducing the insertion sort algorithm to solve the solving problem Analyzing its

文档评论(0)

1亿VIP精品文档

相关文档