一:焊盘篇 解决办法:在Pcb editor中选择set→user preference→paths→Library→分别在padpath和psmpath中加入焊盘的路径(选中所对应的上层文件夹即可) 二:网表导入篇(Cadence中生成netlist失败的原因) 错误原因:allegro.cfg文 ...
分类:
其他好文 时间:
2019-10-07 17:33:22
阅读次数:
815
题目链接 题意: 有n个牧场,Bessie 要从一个牧场到另一个牧场,要求至少要有2条独立的路可以走。现已有m条路,求至少要新建多少条路,使得任何两个牧场之间至少有两条独立的路。两条独立的路是指:没有公共边的路,但可以经过同一个中间顶点。该图中为连通图 题解: 题意转换一下: 就是给了一个连通图,问 ...
分类:
其他好文 时间:
2019-10-07 16:13:31
阅读次数:
121
In computer science, a heap is a specialized tree-based data structure that satisfies the heap property: if P is a parent node of C, then the key (the ...
分类:
其他好文 时间:
2019-10-07 13:32:51
阅读次数:
120
多表关系一对一 一、多表关系 外键:建立表与表关联 的字段,通常 一个表的外键 是 另一个表的主键(唯一键也可以) 1. 一对一关系:外键在任何一方都可以,此时外键要设置 唯一键 2. 一对多关系:外键必须放在多的一方,此时外键值不唯一 3. 多对多关系:一定要创建第三张表(关系表),每一个外键值不 ...
分类:
其他好文 时间:
2019-10-07 13:31:51
阅读次数:
81
我想说说双联通分量还有割点和桥 1.割点(一个点,如果没有这一个点,图就会变得不连通) 2.桥(一条边,断开这条边就会让图不连通) 3.点双连通(没割点的图) 4.边双连通(没桥的图) 5.割点之间不一定有桥!!! 6.桥两端不一定是割点!!! 就像下图,圈住的是点双连通分量和边双连通分量 本题要把 ...
分类:
其他好文 时间:
2019-10-06 18:54:14
阅读次数:
99
一. make系列函数 (一)三个make函数 1. std::make_shared:用于创建shared_ptr。GCC编译器中,其内部是通过调用std::allocate_shared来实现的。 2. std::make_unique:C++14中加入标准库。 3. std::allocate ...
分类:
其他好文 时间:
2019-10-05 22:25:39
阅读次数:
129
Given an array of integers arr, write a function that returns true if and only if the number of occurrences of each value in the array is unique. Exam ...
分类:
其他好文 时间:
2019-10-05 10:24:33
阅读次数:
78
1 import collections 2 class Solution: 3 def uniqueOccurrences(self, arr: List[int]) -> bool: 4 obj = collections.Counter(arr).items() 5 dic = {} 6 fo... ...
分类:
其他好文 时间:
2019-10-04 17:23:23
阅读次数:
61
一. shared_ptr的基本用法 (一)与unique_ptr的比较 比较 shared_ptr unique_ptr 备注 初始化 ①shared_ptr<T> sp; sp.reset(new T()); ②shared_ptr<T> sp(new T()); ③shared_ptr<T> ...
分类:
其他好文 时间:
2019-10-04 16:52:00
阅读次数:
164
a. /etc/profile b. /etc/paths c. ~/.bash_profile d. ~/.bash_login e. ~/.profile f. ~/.bashrc 其中a和b是系统级别的,系统启动就会加载,其余是用户接别的。c,d,e按照从前往后的顺序读取,如果c文件存在,则后 ...
分类:
系统相关 时间:
2019-10-04 13:01:33
阅读次数:
81