• 2024-06-21Python 学习 第三册 第13章 动态规划
    ----用教授的方式学习目录13.1 又见斐波那契数列13.2 动态规划与 0/1 背包问题13.3 动态规划与分治算法13.1 又见斐波那契数列一个很直观的斐波那契数列的递归实现:deffib(n):    """假设n是非负整数返回第n个斐波那契数"""    ifn==0o
  • 2024-06-21Python 学习 第三册 第12章 图的最优化问题
    ----用教授的方式学习。目录12.1图的最优化问题12.1.1最短路径:深度优先搜索和广度优先搜索12.1图的最优化问题我们下面研究另一种最优化问题。假设你有一个航空公司航线的价格列表,其中包括美国任意两个城市之间的航班价格。假设有3个城市A、B和C,从A出发经过B到达C的价格
  • 2024-05-23新概念第三册 lession6-10
    Lesson6Smash-and-grab砸橱窗抢劫TheexpensiveshopsinafamousarcadenearPiccadillywerejustopening.Atthistimeofthemorning,thearcadewasalmostempty.Mr.Taylor,theownerofajewelleryshopwasadmiringanewwindowdisplay.Twoofhisassi
  • 2024-05-22新概念第三册 lession1
    Wheremustthepumahavecomefrom?Pumasarelarge,cat-likeanimalswhicharefoundinAmerica.WhenreportscameintoLondonZoothatawildpumahadbeenspottedforty-fivemilessouthofLondon,theywerenottakenseriously.However,astheeviden