摘要: 第四章 处理器体系结构 4.1 Y86-64指令集体系结构 我们定义了一个与X86相对应的y86-64指令集结构 4.1.1程序员可见的状态 RF:15个程序寄存器,每个程序寄存机都存储一个64位的字。 CC:包括三个一位的条件码,保存着最近的算术或逻辑指令所造成影响的有关信息. 分为ZF(零标志) 阅读全文
posted @ 2021-04-13 22:55 林舸 阅读(356) 评论(0) 推荐(0)
摘要: 有向图 有向图就是边是有方向的图,例如: Digraph API java implementation 只是修改了 addEdge方法 addEdge(v,w) 增加了一条从v指向w 的边 public class Digraph { private final int V; private in 阅读全文
posted @ 2021-03-07 21:36 林舸 阅读(204) 评论(0) 推荐(0)
摘要: 无向图 我们用邻接图来表示图 具体实现的代码 public class Graph { private final int V; private int E; private Bag<Integer>[] adj; public Graph(int V){ this.V = V; E = 0; ad 阅读全文
posted @ 2021-03-07 20:59 林舸 阅读(142) 评论(0) 推荐(0)
摘要: Percolation API public class Percolation { public Percolation(int n) // create n-by-n grid, with all sites blocked public void open(int row, int col) 阅读全文
posted @ 2021-02-15 11:27 林舸 阅读(23) 评论(0) 推荐(0)