zoukankan      html  css  js  c++  java
  • 算法导论MIT笔记

    第一部分 Analysis of Algorithms

      算法分析是关于计算机程序性能(performance)和资源利用的理论研究

    1 What's more important than performance?

    |-Correctness正确性

    |-Simplicity简洁性

    |-Maintainability可维护性

    |-Robustness鲁棒性

    |-Features(Functionality、Modularity)

    |-Security

    |-Scalability可扩展性

    |-User-friendly

    2 Problem sorting Time= O(n2)

    2.1 Insertion sort

    ①Running time

    |-Depends on input

    |-Depends on input size

    ||-parameterize in input size

    -want upper bounds运行时间上界

    ②Kinds of analysis

    |-Worst case(usually)

    |-Average case(sometimes)

    ||-need assumption of statistical distribution of inputs

    |-Best case(bogus假象)

    ③Asymptotic analysis渐近分析

    |-忽略依赖于极其的常量

    |-关注运行时间的增长growth

    -渐近符号(补充)

    2.2 Merge sort归并排序 Time=O(nlgn)

    -Recursion tree 推导

  • 相关阅读:
    Spring浅谈
    struts浅谈
    Tomcat启动发生的那些事儿
    sizeof的用法
    栈应用之括号匹配
    条件编译
    MySQL数据库常用命令
    快速排序
    分页查询的那些坑和各种技巧
    国外程序员收集整理的 PHP 资源大全
  • 原文地址:https://www.cnblogs.com/bingxin/p/6169763.html
Copyright © 2011-2022 走看看