摘要: 参考: https://www.cnblogs.com/throwable/p/12046848.html#table%E6%A0%87%E7%AD%BE https://www.cnblogs.com/toutou/p/9771404.htm(注解版) maven配置 <plugins> <plu 阅读全文
posted @ 2022-02-03 17:25 economies 阅读(102) 评论(0) 推荐(0)
摘要: DI容器思想: DI容器底层最基本的设计思路就是基于工厂模式的。 DI容器相当于一个大的工厂类,负责在程序启动的时候,根据配置 (要创建哪些类对象,每个类对象的创建需要依赖哪些其他类对象)事先创建好对象。 当应用程序需要使用某个类对象的时候,直接从容器中获取即可。 工厂模式与DI容器的异同: 工厂模 阅读全文
posted @ 2022-02-01 22:11 economies 阅读(55) 评论(0) 推荐(0)
摘要: servlet-url如何定位到servlet程序 servlet生命周期 执行 servlet构造器 执行init 初始化方法 一二步,在第一次访问时调用 执行service 方法 每次访问都会调用 执行destroy 方法 web 工程停止时调用 阅读全文
posted @ 2022-02-01 20:15 economies 阅读(32) 评论(0) 推荐(0)
摘要: 动态规划的求解过程: (1) 划分子问题:将原问题划分为若干子问题,每个子问题对应一个决策阶段,并子问题之间有重叠关系。 (2) 确定动态规划函数:根据子问题之间重叠关系找到子问题满足的递推关系式。 (3) 填写表格:以自底向上的方式计算各个子问题的解并填表,实现动态规划。 上述过程可求出问题的最优 阅读全文
posted @ 2022-02-01 20:14 economies 阅读(84) 评论(0) 推荐(0)
摘要: 常用的设计模式(23种) 创建型: 1. 工厂方法模式 : Factory Method, 2. 抽象工厂模式 : Abstract Factory 3. 建造者模式 : Builder, 4. 原型模式 : Prototype, 5. 单例模式 : Singleton 结构型: 1. 适配器模式 阅读全文
posted @ 2022-02-01 20:09 economies 阅读(32) 评论(0) 推荐(0)
摘要: DefaultListableBeanFactory& XmlBeanDifinitionReader类图以及各个类与接口的作用 阅读全文
posted @ 2022-01-11 00:00 economies 阅读(38) 评论(0) 推荐(0)
摘要: MPI环境配置 HelloWorld 编译与运行指令: mpicc-o hello test.c mpirun -np 4 ./hello #include "mpi.h" int main(int argc, char ** argv) { int myid, numprocs; int name 阅读全文
posted @ 2020-11-05 20:20 economies 阅读(198) 评论(0) 推荐(0)
摘要: /*MPI进程间点对点非阻塞通信*/ #include "mpi.h" /*MPI头函数,提供了MPI函数和数据类型定义*/ #include <stdio.h> int main(int argc, char** argv) { int rank; //进程标识 int size; //进程总数 阅读全文
posted @ 2020-10-20 14:46 economies 阅读(293) 评论(0) 推荐(0)
摘要: 阻塞式点对点通信 #include <stdio.h> #include "mpi.h" #define n 1024 int main(int argc,char *argv[]){ int myrank,nprocs,i; double a[n],b[n]; MPI_Status status; 阅读全文
posted @ 2020-10-20 14:26 economies 阅读(215) 评论(0) 推荐(0)
摘要: 经典问题 198打家劫舍 213打家劫舍II 337打家劫舍III 树形dp 279完全平方数 343整数拆分 掌握空间优化写法,知道在一维表格下 01背包逆向、完全背包 正向填表的原因 01背包: 416. 分割等和子集 474. 一和零 494. 目标和 || 笔记 完全背包 322. 零钱兑换 阅读全文
posted @ 2020-10-18 22:58 economies 阅读(88) 评论(0) 推荐(0)