lec2.pdf


文档分类:通信/电子 | 页数:约57页 举报非法文档有奖
1/57
下载提示
  • 1.该资料是网友上传的,本站提供全文预览,预览什么样,下载就什么样。
  • 2.下载该文档所得收入归上传者、原创者。
  • 3.下载的文档,不会出现我们的网址水印。
1/57
文档列表 文档介绍
September 12, 2005 Copyright ? 2001-5 Erik D. De maine and Charles E. Leiserson Introduction to Algorithms L ECTURE 2 Asymptotic Notation ? O -, ?-, and Θ-notation Recurrences ? Substitution method ? Iterating the recurrence ? Recursion tree ? Master method Prof. Erik Demaine September 12, 2005 Copyright ? 2001-5 Erik D. De maine and Charles E. Leiserson Asymptotic notation O -notation (upper bounds): We write f ( n ) = O ( g ( n )) if there exist constants c > 0, n 0 > 0 s uch that 0 ≤ f ( n ) ≤ cg ( n ) f or all n ≥ n 0 . We write f ( n ) = O ( g ( n )) if there exist constants c > 0 , n 0 > 0 such that 0 ≤ f ( n ) ≤ cg ( n ) for all n ≥ n 0 . September 12, 2005 Copyright ? 2001-5 Erik D. De maine and Charles E. Leiserson Asymptotic notation O -notation (upper bounds): We write f ( n ) = O ( g ( n )) if there exist constants c > 0, n 0 > 0 s uch that 0 ≤ f ( n ) ≤ cg ( n ) f or all n ≥ n 0 . We write f ( n ) = O ( g ( n )) if there exist constants c > 0 , n 0 > 0 such that 0 ≤ f ( n ) ≤ cg ( n ) for all n ≥ n 0 . E XAMPLE : 2 n 2 = O ( n 3 ) ( c = 1 , n 0 = 2 ) September 12, 2005 Copyright ? 2001-5 Erik D. De maine and Charles E. Leiserson Asymptotic notation O -notation (upper bounds): We write f ( n ) = O ( g ( n )) if there exist constants c > 0, n 0 > 0 s uch that 0 ≤ f ( n ) ≤ cg ( n ) f or all n ≥ n 0 . We write f ( n ) = O ( g ( n )) if there exist constants c > 0 , n 0 > 0 such that 0 ≤ f ( n ) ≤ cg ( n ) for all n ≥ n 0 . E XAMPLE : 2 n 2 = O ( n 3 ) ( c = 1 , n 0 = 2 ) functions, not values September 12, 2005 Copyright ? 2001-5 Erik D. De maine and Charles E. Leiserson Asymptotic notation O -notation (upper bounds): We write f ( n ) = O ( g ( n )) if there exist constants c > 0, n 0 > 0 s uch that 0 ≤ f ( n ) ≤ cg ( n ) f or all n ≥ n 0 . We write f ( n ) = O ( g ( n )) if there exist constants c > 0 , n 0 > 0 such that 0 ≤ f ( n ) ≤

lec2 来自淘豆网www.taodocs.com转载请标明出处.

相关文档 更多>>
非法内容举报中心
文档信息
  • 页数57
  • 收藏数0 收藏
  • 顶次数0
  • 上传人012luyin
  • 文件大小0 KB
  • 时间2016-04-15