自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(7)
  • 收藏
  • 关注

原创 [Computer Architecture] chapter 1

Parallelismparallelismfocuswho’s responsibilityinstruction-level parallelism (ILP)uniprocessorcompiler, hardwarethread-level parallelism (TLP)multiple processorsprogrammerdata-level parallelism (DLP)multiple processorsprogrammer

2020-08-22 11:08:47 122

原创 [Princeton Algorithms I] Union-Find

Union-Findhttps://algs4.cs.princeton.edu/15uf/Dynamic Connectivity Problema dynamic connectivity structure is a data structure that dynamically maintains information about the connected components of a graph.Union-Find APIImplementationsQuick-Find

2020-07-30 11:44:42 173

原创 [CS61B-Sp18] Packages and Access Control

Packages and Access ControlPackagesCreatingPut the package name at the top of every file in this packageStore the file in a folder that has the appropriate folder nameIn IntelliJ:File → New PackageChoose package name (i.e. “ug.joshh.animal”)

2020-07-13 20:48:06 89

原创 [CS61B-Sp18] Exceptions, Iterations, Object Methods

Exceptions, Iteratations, Object MethodsExceptionsSyntax: throw new ExceptionObject(parameter1, ...)example: throw new IllegalArgumentException("can't add null");IterationsEnhanced for loopSet<String> s = new HashSet<>();...for (St

2020-07-11 05:59:40 91

原创 [CS61B-Sp18] Java Syntax

Java SyntaxAutoboxingPrimitives and Wrapper classesJava can implicitly convert between primitive and wrapper classes.PrimitivesWrapper classesbyteByteshortShortintIntegerlongLongfloatFloatedoubleDoublebooleanBoolean

2020-07-10 23:22:31 100

原创 [CS61B-Sp18] OOP

InheritanceHypernym and HyponymInterface: the HypernymAll methods must be public, therefore public is redundant.All variables are public static final (value can never change)Cannot be instantiatedCan implement more than one interface per classInte

2020-07-09 00:12:15 329

原创 [CS61B-Sp18] lists

ListsSLListIntroAdd a middle man that supervise the listSentinel pointer always points to the dummy start node.Caching the size to avoid traversl when adding/removing.Caching the last pointer to avoid traversal when adding the last.Basic: SLList w

2020-07-08 22:05:16 101

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除